Search code examples
scalariscvchiselrocket

Adding uncore package to a Chisel project


There is a file rocc.scala in rocket repo which describes rocc interface, I want to build its verilog code and see the code. My problem is that I don't know how I can import other packages to my project such as "uncore." or "Util." and run SBT.

Right now for building a new project I just use build.sbt and chisel-dependent.sbt files located in chisel-tutorial/problems folder

Thanks


Solution

  • Although chisel may be unfamiliar, it will probably be much more readable than the verilog generated by it. If you are curious about the RoCC interface, I recommend checking out the slides from the last RISC-V workshop.

    If you really want to look at the generated verilog for these components, I would actually recommend starting with the Rocket-Chip repo. From within that repo, clone the rocc-template and change to the sha3 branch. The Rocket-Chip repo will automatically detect the submodule, and attach it to the RoCC interface. You can also look at the template repo for an example of how to instantiate a project to be incorporated into Rocket-Chip.