|
Quartus II 使用modelsim仿真,如果testbench文件不止一个应该怎么办?
[复制链接]
比如我的testbench由 tb_bin_gen.v,
tb_bin_monitor.v
tb_bin_counter_top.v
三个verilog文件构成,其中tb_bin_counter_top.v是testbench的顶层文件。
在Quartus II 的Setting页面中,找到Simuation 设置为ModelSim仿真,
然后在Compile test bench 添加 测试模块的顶层文件 tb_bin_counter_top.v
编译没有出错,然后从QuartusII 运行RTL 仿真,自动打开ModelSim之后,出现报错
** Error: C:/Users/Z/Desktop/FPGA_Test_Only/bin_counter/tb_bin_counter_top.v(41): Module 'tb_bin_gen' is not defined.
# ** Error: (vopt-7) Failed to open info file "work/_info" in read mode.
#
# No such file or directory. (errno = ENOENT)
# ** Error: C:/Users/Z/Desktop/FPGA_Test_Only/bin_counter/tb_bin_counter_top.v(59): Module 'tb_bin_monitor' is not defined.
# Optimization failed
# Error loading design
# Error: Error loading design
# Pausing macro execution
# MACRO ./univ_bin_counter_run_msim_rtl_verilog.do PAUSED at line 40
怎么解决呀?
|
|