Skip to content

Rocket-chip generate.sh is outdated, does not work #6

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

Open
KasperHesse opened this issue Sep 19, 2022 · 3 comments · May be fixed by #39
Open

Rocket-chip generate.sh is outdated, does not work #6

KasperHesse opened this issue Sep 19, 2022 · 3 comments · May be fixed by #39

Comments

@KasperHesse
Copy link

generate.sh in cores/rocket seems to be outdated, as it cannot be used to build the Rocket chip and use RVFI on it.

The first culprit is the line git clone --recurse-submodules [email protected]:sifive/rocket-chip-grand-central.git rocket-chip, as the repository sifive/rocket-chip-grand-central does not exist. I haven't been able to track down the repo on archive.org / via a google search either. Is it related to the LLVM Grand Central API?

Secondly, the riscv-tools setup is broken, as the riscv-tools hash included in chipsalliance/rocket-chip does not map to any known commit on riscv-tools.

  • I have attempted to fix this by simply fetching the newest version of the tools.

By using the two "fixes" mentioned above, I am able to start building the rocket chip. However, after compiling all Scala sources, the following error is generated

cd /home/kasper/riscv-formal/cores/rocket/rocket-chip && java -Xmx2G -Xss8M -cp /home/kasper/riscv-formal/cores/rocket/rocket-chip/rocketchip.jar freechips.rocketchip.system.Generator -td /home/kasper/riscv-formal/cores/rocket/rocket-chip/vsim/generated-src -T freechips.rocketchip.system.TestHarness -C DefaultConfigWithRVFIMonitors
[ERROR HERE -->] Exception in thread "main" java.lang.Exception: Unable to find part "DefaultConfigWithRVFIMonitors" from "ArrayBuffer(DefaultConfigWithRVFIMonitors)", did you misspell it or specify the wrong package path?

It seems that the config with RVFI monitors was specified in the grand-central version of rocket-chip, but is not included in the current release?

@SeddonShen
Copy link

I also meet this problem now, are you find github.com:sifive/rocket-chip-grand-central.git finally?

@SeddonShen
Copy link

you can see this: SymbioticEDA/riscv-formal#17 , it's a private repo...

@SeddonShen
Copy link

before it became a private repo, latest public can be seen at RVFI branch: https://github.com/chipsalliance/rocket-chip/commits/RVFI/

good luck to you!

@KrystalDelusion KrystalDelusion linked a pull request May 1, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants