简体   繁体   English

将非核心包添加到Chisel项目

[英]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. 火箭rocc.scala中有一个文件rocc.scala ,它描述了rocc接口,我想构建它的verilog代码并查看代码。 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 . 我的问题是我不知道如何将其他软件包(例如“ uncore。 ”或“ Util。 ”)导入到项目中并运行SBT

Right now for building a new project I just use build.sbt and chisel-dependent.sbt files located in chisel-tutorial/problems folder 现在,要构建一个新项目,我只使用位于chisel-tutorial / problems文件夹中的build.sbtchisel-dependent.sbt文件

Thanks 谢谢

Although chisel may be unfamiliar, it will probably be much more readable than the verilog generated by it. 尽管凿子可能不熟悉,但它可能比其生成的Verilog更具可读性。 If you are curious about the RoCC interface, I recommend checking out the slides from the last RISC-V workshop. 如果您对RoCC接口感到好奇,建议您查看上一个RISC-V研讨会的幻灯片

If you really want to look at the generated verilog for these components, I would actually recommend starting with the Rocket-Chip repo. 如果您真的想查看为这些组件生成的Verilog,我实际上建议您从Rocket-Chip回购开始。 From within that repo, clone the rocc-template and change to the sha3 branch . 从该存储库中,克隆rocc-template并更改为sha3分支 The Rocket-Chip repo will automatically detect the submodule, and attach it to the RoCC interface. Rocket-Chip存储库将自动检测子模块,并将其附加到RoCC接口。 You can also look at the template repo for an example of how to instantiate a project to be incorporated into Rocket-Chip. 您还可以查看模板存储库,以获取有关如何实例化要集成到Rocket-Chip中的项目的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM