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

做~自己de王妃 提交于 2019-12-12 05:30:35

问题


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

  • How can I test the Hello.v file?
  • What is the usage of vpi_user.cc?

回答1:


To test your design in VCS you can use the two verilog files generated:

  • Hello.v : Your Chisel design generated in Verilog
  • Hello-harness.v : Your testbench code in Verilog (generated by --genHarness option). Of course you have to modify it to improve your test.


来源:https://stackoverflow.com/questions/31444699/how-to-test-the-verilog-module-generated-by-chisel-in-vcs-how-does-vpi-uer-cc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!