eugene-tarassov / vivado-risc-v

Xilinx Vivado block designs for FPGA RISC-V SoC running Debian Linux distro
821 stars 186 forks source link

Help needed using a different version of rocket #206

Open SteBruening opened 7 months ago

SteBruening commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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.