Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make verilog Error #3657

Open
Krishnakumarmohanraj opened this issue Jul 24, 2024 · 4 comments
Open

Make verilog Error #3657

Krishnakumarmohanraj opened this issue Jul 24, 2024 · 4 comments

Comments

@Krishnakumarmohanraj
Copy link

Hi Team,

we installed rocket tools and chisel in machine and set the path, when we run the cmd "make verilog" in rocket-chip we are geeting attached error. Can you help me on this issue please
rocket-chip error

@nhuynh368
Copy link

Same here. It seems like firtool isn't being built properly and I narrowed down the error portion to this specific piece of code in the build.sc file:

object mfccompiler extends Module {
    def compile = T {
      os.proc("firtool",
        generator.chirrtl().path,
        s"--annotation-file=${generator.chiselAnno().path}",
        "--disable-annotation-unknown",
        "-dedup",
        "-O=debug",
        "--split-verilog",
        "--preserve-values=named",
        "--output-annotation-file=mfc.anno.json",
        s"-o=${T.dest}"
      ).call(T.dest)
      PathRef(T.dest)
    }

@yulong-lan
Copy link

yulong-lan commented Aug 5, 2024

so what is debup? I have firtool installed and when i run make verilog, the following error occurs:

`No mill version specified.
You should provide a version via '.mill-version' file or --mill-version option.
Using mill version 0.11.11
[189/189] emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile 
firtool: Unknown command line argument '-dedup'.  Try: 'firtool --help'
firtool: Did you mean '--no-dedup'?
1 targets failed
emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile os.SubprocessException: Result of firtool…: 1
    os.proc.call(ProcessOps.scala:95)
    millbuild.build$Emulator$mfccompiler$.$anonfun$compile$3(build.sc:151)
make: *** [Makefile:11: verilog] Error 1`

@jerryz123
Copy link
Contributor

To generate Verilog from rocket-chip, I recommend using Chipyard. The rocket-chip repo is intended to be used as a library by more complex projects.

@Zou1c
Copy link

Zou1c commented Aug 10, 2024

so what is debup? I have firtool installed and when i run make verilog, the following error occurs:

`No mill version specified.
You should provide a version via '.mill-version' file or --mill-version option.
Using mill version 0.11.11
[189/189] emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile 
firtool: Unknown command line argument '-dedup'.  Try: 'firtool --help'
firtool: Did you mean '--no-dedup'?
1 targets failed
emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile os.SubprocessException: Result of firtool…: 1
    os.proc.call(ProcessOps.scala:95)
    millbuild.build$Emulator$mfccompiler$.$anonfun$compile$3(build.sc:151)
make: *** [Makefile:11: verilog] Error 1`

@yulong-lan
Maybe you can modify build.sc, about line 145 in object mfccompiler, change the parameter "-dedup" to "--no-dedup". I guess it's due to the update of firtool.(and my firtool version is 1.62.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants