简体   繁体   English

如何为RISC-V火箭芯片创建SystemC代码?

[英]How to create SystemC code for RISC-V Rocket-Chip?

Using the Rocket-Chip generator I can create Verilog output and the C++ emulator using the built version of Verilator. 使用Rocket-Chip生成器,我可以使用内置的Verilator版本创建Verilog输出和C ++模拟器。

I'd like to use Verilator to generate SystemC code using the default config Verilog output but getting errors. 我想使用Verilator使用默认的配置Verilog输出生成SystemC代码,但会出错。

I'm using the simple command line; 我正在使用简单的命令行;

verilator -Wall -sc freechips.rocketchip.system.DefaultConfig.v 验证程序-Wall -sc freechips.rocketchip.system.DefaultConfig.v

And seeing errors like; 并看到类似的错误;

Cannot find file containing module: AsyncResetReg This may be because there's no search path specified with -I. 找不到包含模块的文件:AsyncResetReg这可能是因为没有使用-I指定搜索路径。 Cannot find file containing module: plusarg_reader ... 找不到包含模块的文件:plusarg_reader ...

Has anyone done this or know what I'm missing? 有没有人做过这个或知道我缺少什么? (include path?) (包括路径?)

Thanks 谢谢

您可以在src/main/resources/vsrc找到其他verilog源文件。

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

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