代码拉取完成,页面将自动刷新
同步操作将从 王小菊/rocket-chip 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
global def hardfloatScalaModule =
makeScalaModuleFromJSON here "hardfloat"
| setScalaModuleRootDir "hardfloat"
| setScalaModuleDeps (chisel3ScalaModule, Nil)
| setScalaModuleScalacOptions ("-Xsource:2.11", Nil)
global def rocketchipMacros =
makeScalaModuleFromJSON here "rocketchipMacros"
| setScalaModuleRootDir "rocket-chip/macros"
| addMacrosParadiseCompilerPlugin
global def rocketchipScalaModule =
def deps =
rocketchipMacros,
hardfloatScalaModule,
hardfloatScalaModule,
apiConfigChipsallianceScalaModule,
Nil
makeScalaModuleFromJSON here "rocketchip"
| setScalaModuleRootDir "rocket-chip"
| setScalaModuleDeps deps
| setScalaModuleScalacOptions ("-Xsource:2.11", Nil)
| addMacrosParadiseCompilerPlugin
def vlsi_mem_gen = source "rocket-chip/scripts/vlsi_mem_gen"
def vlsi_rom_gen = source "rocket-chip/scripts/vlsi_rom_gen"
tuple VLSIRomGenOptions =
global ConfFile: Path
global HexFile: String
global OutputFile: String
global def makeVLSIRomGenOptions confFile hexFile outputFile = VLSIRomGenOptions confFile hexFile outputFile
global def rocket_vlsi_rom_gen options =
def cmdline =
def confFile = options.getVLSIRomGenOptionsConfFile.getPathName
def hexFile = options.getVLSIRomGenOptionsHexFile
vlsi_rom_gen.getPathName, confFile, hexFile, Nil
def inputs =
def confFile = options.getVLSIRomGenOptionsConfFile
def outputFile = options.getVLSIRomGenOptionsOutputFile
def outputDir = simplify "{outputFile}/.." | mkdir
vlsi_rom_gen, confFile, outputDir, Nil
def outputFile = options.getVLSIRomGenOptionsOutputFile
match (job cmdline inputs | getJobStdout)
Pass content = write outputFile content
Fail error = makeBadPath error
tuple VLSIMemGenOptions =
global BlackBox: Boolean
global ConfFile: Path
global OutputFile: String
global def makeVLSIMemGenOptions confFile outputFile = VLSIMemGenOptions False confFile outputFile
global def rocket_vlsi_mem_gen options =
def cmdline =
def blackBox = if options.getVLSIMemGenOptionsBlackBox then "-b", Nil else Nil
def outputFile = "-o", options.getVLSIMemGenOptionsOutputFile, Nil
def confFile = options.getVLSIMemGenOptionsConfFile.getPathName, Nil
vlsi_mem_gen.getPathName, (blackBox ++ outputFile ++ confFile)
def inputs =
def confFile = options.getVLSIMemGenOptionsConfFile
def outputFile = options.getVLSIMemGenOptionsOutputFile
def outputDir = simplify "{outputFile}/.." | mkdir
vlsi_mem_gen, confFile, outputDir, Nil
job cmdline inputs | getJobOutput
tuple RocketChipGeneratorOptions =
global Jars: List Path
global TargetDir: Path
global TopModuleName: String
global ConfigNames: List String
global ExtraSources: List Path
global BaseFileName: Option String
global def makeRocketChipGeneratorOptions jars targetDir topModule configs =
RocketChipGeneratorOptions jars targetDir topModule configs Nil None
tuple RocketChipGeneratorOutputs =
DTS_: Path
FirrtlFile_: Path
FirrtlAnnoFile_: Path
RomConf_: Path
AllOutputs_: List Path
InputOptions_: RocketChipGeneratorOptions
OMFile_: Option Path
global def getRocketChipGeneratorOutputsDTS = getRocketChipGeneratorOutputsDTS_
global def getRocketChipGeneratorOutputsFirrtlFile = getRocketChipGeneratorOutputsFirrtlFile_
global def getRocketChipGeneratorOutputsFirrtlAnnoFile = getRocketChipGeneratorOutputsFirrtlAnnoFile_
global def getRocketChipGeneratorOutputsRomConf = getRocketChipGeneratorOutputsRomConf_
global def getRocketChipGeneratorOutputsAllOutputs = getRocketChipGeneratorOutputsAllOutputs_
global def getRocketChipGeneratorOutputsInputOptions = getRocketChipGeneratorOutputsInputOptions_
global def getRocketChipGeneratorOutputsObjectModelFile = getRocketChipGeneratorOutputsOMFile_
global def runRocketChipGenerator options =
def jars = options.getRocketChipGeneratorOptionsJars
def runDir = "rocket-chip"
def targetDir = options.getRocketChipGeneratorOptionsTargetDir
def cmdline =
def rootPackage = "_root_"
def main = "freechips.rocketchip.system.Generator"
def configs = catWith "_" options.getRocketChipGeneratorOptionsConfigNames
def topModule = options.getRocketChipGeneratorOptionsTopModuleName
def relJars = jars | map getPathName | map (relative runDir)
def classpath = catWith ":" relJars
def relTargetDir = relative runDir targetDir.getPathName
def baseFileName = match options.getRocketChipGeneratorOptionsBaseFileName
Some name = name, Nil
None = Nil
which "java", "-cp", classpath, main,
relTargetDir,
rootPackage, topModule,
rootPackage, configs,
baseFileName
def inputs =
def bootrom = source 'rocket-chip/bootrom/bootrom.img'
def extras = options.getRocketChipGeneratorOptionsExtraSources
(bootrom, targetDir, extras) ++ jars
def generatorJob =
makePlan cmdline inputs
| setPlanDirectory runDir
| runJob
def filterFiles regex = filter (matches regex _.getPathName) allOutputs
def getFile regex = filterFiles regex | head | getOrElse (makeBadPath (makeError "File not found"))
def getFileOpt regex = match (filterFiles regex)
Nil = None
head, tail = Some head
def allOutputs = generatorJob.getJobOutputs
def annoFile = getFile `.*\.anno\.json`
def firrtlFile = getFile `.*\.fir`
def romConfFile = getFile `.*\.rom\.conf`
def dtsFile = getFile `.*\.dts`
def omFile = getFileOpt `.*\.objectModel\.json`
RocketChipGeneratorOutputs dtsFile firrtlFile annoFile romConfFile allOutputs options omFile
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。