简体   繁体   English

如何在VCS中测试Chisel生成的verilog模块? vpi_uer.cc如何在凿子中工作?

[英]How to test the verilog module generated by Chisel in VCS ? How does vpi_uer.cc work in chisel?

In chisel-tutorial ,after I ran 在凿子教程中,我跑了之后

sbt "run Hello --backend v --compile --test --genHarness --vcd"

I got the Hello.v ,Hello-harness.v ,vpi_user.cc files 我得到了Hello.v,Hello-harness.v,vpi_user.cc文件

  • How can I test the Hello.v file? 如何测试Hello.v文件?
  • What is the usage of vpi_user.cc? vpi_user.cc的用途是什么?

To test your design in VCS you can use the two verilog files generated: 要在VCS中测试设计,可以使用生成的两个Verilog文件:

  • Hello.v : Your Chisel design generated in Verilog Hello.v:您在Verilog中生成的凿子设计
  • Hello-harness.v : Your testbench code in Verilog (generated by --genHarness option). Hello-harness.v:您在Verilog中的测试平台代码(由--genHarness选项生成)。 Of course you have to modify it to improve your test. 当然,您必须对其进行修改以改善您的测试。

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

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