Closed reitowo closed 5 months ago
I think the best way is to create a new repo and include this repo as submodule. In your repo, you can add your own Scala files to extend RocketChip functionality, setup SBT project, add Makefile, etc. You should not need to modify anything in the submodule, you can just refer to it from SBT and Makefile.
I also learned something named RoCC, is that the same as Gemmini accelerator?
RoCC is RocketChip interface for adding processor extensions, Gemmini is an example of such extension that uses RoCC.
Thanks, I'll try figure it out
Does this sound right?
/src/main/scala/rocket.scala
, but define class of my own. For example extend one of Rocket32s1/Rocket64b2/etc..Yes.
One more thing: Scala is built by SBT (Scala Build Tool), so you will need SBT config files: build.sbt
, project/build.properties
and project/plugins.sbt
.
Thank you very much!
Hi, sorry to bother you!
I'm very new to RISCV, and I want to add my custom instructions to this project, and I found RocketChip has something useful: https://github.com/chipsalliance/rocket-chip/blob/master/src/main/scala/scie/SCIE.scala . Is it possible to modify this file in the middle of make, or should I specify a fork of the whole rocket-chip design with my own modification?
I also learned something named RoCC, is that the same as
Gemmini accelerator
? How do I modify the Makefile to add a custom RoCC to the design?I don't know how to easily integrate to this project, and make everything work, do you have related suggestions?
Thank you!