Quartus II 15.0与Modelsim联合操作

写好源文件和测试文件后。

进行第三方工具设置setting,编译测试平台。

设置Time scale 为1ns

添加一个新的Test bench测试平台。

test bench ---add new----命名-----添加测试仿真代码test bench and simulation files, 找到事先写好的测试文件,添加成功后,就ok了。重新编译project


compile test bench,添加自己的项目的测试平台。设置test bench name为测试文件的名字 counter_tb,top level module in test bench: counter_tb就是测试平台的顶层模块。design instance name in the test bench为I1_counter(测试平台中实例化被测试模块的实例名)。在File name中添加counter_bt.v文件即可。点击ok后,在进行编译


与modelsim进行软件仿真软件关联

Tools----options---modelsim,在出现的对话框中设置安装ModelSim的路径 一定要指向找到能有ModelSim.exe文件的文件夹



D:\modeltech64_10.4\win64\

我当时关联的时候以为关联的时modelsim-alter ,但实际上我安装的是modelsim,所以后来又把关联EDA tool option给改为modelsim,并添加modelsim.exe的路径。才成功的。

我的测试文件是提前写好的,counter_tb.v,可直接使用了

猜你喜欢

转载自blog.csdn.net/yxswhy/article/details/79650798