Closed srishti-sr closed 5 months ago
You need to have firtool installed since that's what's doing the verilog generation. The project has moved to using nix for it's dependencies/environment management so you should try getting that set up.
I have set up nix in my system but how can I install firtool
run nix develop
, it will probably download and build tools which is necessary and includes firtool, if you want to download firtool binaries explicitly, download it from circt releases.
I have similar troubles - got the latest firtool binaries from circt, and getting an error because option -dedup does not exist there, just -no-dedup. Removing -dedup from build.sc allows
make verilog
to not error out, but the next one form the README
make verilog CONFIG=DefaultSmallConfig
still errors out with
[build.sc] [47/53] zincReportCachedProblems
Cannot resolve emulator[freechips.rocketchip.system.TestHarness,DefaultSmallConfig].mfccompiler.compile. Try mill resolve emulator._
or mill resolve __.compile
to see what's available.
Would be great if the README was more up to date (firtool is not mentioned at all).
make verilog CONFIG = freechips.rocketchip.system.DefaultSmallConfig
would not error out. Because when you write make verilog CONFIG=DefaultSmallConfig
it looks for [freechips.rocketchip.system.TestHarness,DefaultSmallConfig]
but it should look for [freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultSmallConfig]
installing firtool helped thank you.
nix
how to cofigre nix
installing firtool helped thank you.
I have similar troubles ,how to installing firtool/circt from nix,how to input commond
Beginners to rocket-chip should refer to chipyard for an integrated development environment https://github.com/ucb-bar/chipyard
I followed this tutorial =》https://github.com/ucb-bar/chipyard =》 ./build-setup.sh riscv-tools # or esp-tools
Completed the following steps: -s 1 initializing Conda environment
-s 2 initializing Chipyard submodules
-s 3 initializing toolchain collateral (Spike, PK, tests, libgloss)
-s 4 initializing ctags
-s 5 pre-compiling Chipyard Scala sources
when I make verilog in (base) hang@vm:~/work/lx002/chipyard/generators/rocket-chip$ make verilog
=>I have similar troubles too,How can I solve this problem
(base) hang@vm:~/work/lx002/chipyard/generators/rocket-chip$ make verilog cd /home/hang/work/lx002/chipyard/generators/rocket-chip && mill emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile
.......
Beginners to rocket-chip should refer to chipyard for an integrated development environment https://github.com/ucb-bar/chipyard
[216/219] emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].generator.elaborate
Beginners to rocket-chip should refer to chipyard for an integrated development environment https://github.com/ucb-bar/chipyard
I have similar troubles ,how to installing firtool/circt from nix,how to input commond
installing firtool helped thank you.
I have similar troubles ,how to installing firtool/circt from nix,how to input commond,thank you very much
I am a beginner working with rocket chip generator for my project but I am not able to generate the verilog file for it and facing this error. I am using an apple M1 chip macOS. I started with cloning the repository,installing the rocket tools for Mac (https://github.com/riscv-software-src/homebrew-riscv), jdk 17.0.10, sbt 1.9.9, Mill 0.11.7 and tried to generate the verilog. how can I resolve these errors?
srishtisharma@Srishtis-MacBook-Pro ~ % cd rocket-chip srishtisharma@Srishtis-MacBook-Pro rocket-chip % make verilog cd /Users/srishtisharma/rocket-chip && mill emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile [172/172] emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile 1 targets failed emulator[freechips.rocketchip.system.TestHarness,freechips.rocketchip.system.DefaultConfig].mfccompiler.compile java.io.IOException: Cannot run program "firtool" (in directory "/Users/srishtisharma/rocket-chip/out/emulator/freechips.rocketchip.system.TestHarness/freechips.rocketchip.system.DefaultConfig/mfccompiler/compile.dest"): error=2, No such file or directory java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170) java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089) os.proc.proc$lzycompute$1(ProcessOps.scala:123) os.proc.proc$1(ProcessOps.scala:122) os.proc.spawn(ProcessOps.scala:129) os.proc.call(ProcessOps.scala:87) millbuild.build$Emulator$mfccompiler$.$anonfun$compile$3(build.sc:151) java.io.IOException: error=2, No such file or directory java.base/java.lang.ProcessImpl.forkAndExec(Native Method) java.base/java.lang.ProcessImpl.(ProcessImpl.java:295)
java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)
java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
os.proc.proc$lzycompute$1(ProcessOps.scala:123)
os.proc.proc$1(ProcessOps.scala:122)
os.proc.spawn(ProcessOps.scala:129)
os.proc.call(ProcessOps.scala:87)
millbuild.build$Emulator$mfccompiler$.$anonfun$compile$3(build.sc:151)
make: *** [verilog] Error 1
srishtisharma@Srishtis-MacBook-Pro rocket-chip %