-
Notifications
You must be signed in to change notification settings - Fork 144
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
Error when compiling gemmini #117
Comments
I want to generate verilog files of gemmini merely. After modifying 'build.sbt' according to https://stackoverflow.com/questions/58365679/value-is-not-a-member-of-chisel3-bundle, there remain 42 errors. username0@Ubuntu:~/Chipyard/chipyard/generators/gemmini$ sbt compile How can I import Testchipip? |
This is unusual. Which command are you using to build Gemmini? Also, have you setup Chipyard? I believe Testchipip is a part of Chipyard. |
I use the command "sbt compile" in directory "chipyard/generators/gemmini", but the Testchipip is not in gemmini's default package path. "import testchipip.TLHelper" results in errors. |
Oh, I see. That's not how you should build Gemmini. Gemmini needs to be built as part of Chipyard. You can set up Chipyard by following the instructions here: https://chipyard.readthedocs.io/en/latest/Chipyard-Basics/Initial-Repo-Setup.html#initial-repository-setup Afterwards, you can build Gemmini by following the instructions here: https://chipyard.readthedocs.io/en/latest/Generators/Gemmini.html |
Thanks! Follow your guide, "chipyard.TestHarness.GemminiRocketConfig.top.v" is generated. Is it the overall verilog file including all components of Gemmini and RocketChip that can be synthesized later? |
Yes, although there is also a file called |
Closing the issue for now. Feel free to re-open if you have more questions about the verilog files |
When I try to compile gemmini to get .v files, I try the compiling command but have the following errors, which seems about syntax.
username0@Ubuntu:~/Chipyard/chipyard/generators/gemmini$ sbt compile
[info] welcome to sbt 1.3.13 (Ubuntu Java 11.0.10)
[info] loading settings for project gemmini-build from plugins.sbt ...
[info] loading project definition from /home/username0/Chipyard/chipyard/generators/gemmini/project
[info] loading settings for project gemmini from build.sbt ...
[info] set current project to gemmini (in build file:/home/username0/Chipyard/chipyard/generators/gemmini/)
[info] Compiling 43 Scala sources to /home/username0/Chipyard/chipyard/generators/gemmini/target/scala-2.12/classes ...
[error] /home/username0/Chipyard/chipyard/generators/gemmini/src/main/scala/gemmini/AccumulatorMem.scala:79:39: value rdata is not a member of chisel3.Bundle
[error] val w_sum = VecInit((RegNext(mem.io.rdata) zip wdata_buf).map { case (rv, wv) =>
[error] ^
[error] /home/username0/Chipyard/chipyard/generators/gemmini/src/main/scala/gemmini/AccumulatorMem.scala:80:17: value zip is not a member of Any
[error] VecInit((rv zip wv).map(t => t._1 + t._2))
[error] ^
[error] /home/username0/Chipyard/chipyard/generators/gemmini/src/main/scala/gemmini/AccumulatorMem.scala:83:10: value waddr is not a member of chisel3.Bundle
[error] mem.io.waddr := waddr_buf
[error] ^
[error] /home/username0/Chipyard/chipyard/generators/gemmini/src/main/scala/gemmini/AccumulatorMem.scala:84:10: value wen is not a member of chisel3.Bundle
[error] mem.io.wen := w_buf_valid
[error] ^
[error] /home/username0/Chipyard/chipyard/generators/gemmini/src/main/scala/gemmini/AccumulatorMem.scala:85:10: value wdata is not a member of chisel3.Bundle
[error] mem.io.wdata := Mux(acc_buf, w_sum, wdata_buf)
[error] ^
[error] /home/username0/Chipyard/chipyard/generators/gemmini/src/main/scala/gemmini/AccumulatorMem.scala:86:10: value mask is not a member of chisel3.Bundle
[error] mem.io.mask := mask_buf
[error] ^
...
[error] 1399 errors found
[error] (Compile / compileIncremental) Compilation failed
What is the cause? How can I fix it?
The text was updated successfully, but these errors were encountered: