写好源文件和测试文件后。
进行第三方工具设置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,