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

Help needed using a different version of rocket #206

Open
SteBruening opened this issue Feb 9, 2024 · 3 comments
Open

Help needed using a different version of rocket #206

SteBruening opened this issue Feb 9, 2024 · 3 comments

Comments

@SteBruening
Copy link

SteBruening commented Feb 9, 2024

Hello I am a student using chipyard v1.10.0 for my thesis.

I am using a modified rocket-core branched from version rocket-chip @ 47f7b71. I having trouble building a bitstream for the nexys video using this version.

I was able to build the bitstream with the default rocket versions in your repository v3.5.0, v3.6.0 and main. When trying this with my version of rocket (replacing the rocket submodule with my version in v3.6.0) I run into errors:

[info] set current project to vivado (in build file:/net/heap/bruening/vivado-risc-v/)
[warn] Multiple main classes detected.  Run 'show discoveredMainClasses' to see the list
[info] running freechips.rocketchip.system.Generator -td workspace/rocket64b2/tmp -T Vivado.RocketSystem -C Vivado.Rocket64b2
------------------------------------------------------------------------------
Error: Option --top-module failed when given 'Vivado.RocketSystem'. chisel3/internal/sourceinfo/SourceInfo
Try --help for more information.
------------------------------------------------------------------------------

Exception: sbt.TrapExitSecurityException thrown from the UncaughtExceptionHandler in thread "run-main-0"
[error] Nonzero exit code: 1
[error] (Compile / runMain) Nonzero exit code: 1
[error] Total time: 6 s, completed Feb 9, 2024 5:16:38 PM
make: *** [Makefile:139: workspace/rocket64b2/system.dts] Error 1

Can you give me any instructions to make this repo work with rocket-chip @ 47f7b71.

Help would be greatly appreciated.

@eugene-tarassov
Copy link
Owner

The error is caused by incompatibility between selected versions of RocketChip and Chisel. The releases of this repo use versions of RocketChip and other components that were carefully selected and thoroughly tested to make sure that they build and work fine. I recommend to rebase your changes to one of those RocketChip versions.

@SteBruening
Copy link
Author

Thank you for your suggestion, i will try that. However then i will have to make that RocketChip version work with Chipyard 1.10.0 aswell, since i need the simulator from Chipyard.
I found that Chipyard 1.11.0 and your repo use a version of RocketChip only 4 commits different. The problem with that is that Chipyard 1.11.0 requires a newer Version of GLIBC that my Institute Computers don't have. I cannot make any changes to the systems here.

@SteBruening
Copy link
Author

The Chisel version was the problem. I have downgraded to 3.5.6 and was able to build the bitstream with that version. Debain boot was successful on the FPGA.

Thank you for your work and for pointing me into the right direction.

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

2 participants