modelsim 仿真xilinx fir ip

到现在不管fir ip 用的对不对,但是在使用modelsim是可以仿真fir ip的。

具体步骤:

1、仿真库,添加到modelsim目录配置文件:

2、将这个文件中的:

;List of dynamically loaded objects for Verilog PLI applications
;Veriuser = D:/modeltech64_10.2c/convert_hex2ver.dll

改成如下:

List of dynamically loaded objects for Verilog PLI applications
Veriuser = D:/modeltech64_10.2c/convert_hex2ver.dll                  

这样的目标是完成 mif 到 hex文件的转换。   前提是convert_hex2ver.dll 文件, 存放在D:/modeltech64_10.2c/ 目录下。

3、将调用 ip 时产生的 mif 文件,拷贝到 modelsim 的工作目录下。

4、单独编译 .vhd 文件,因为用下面的代码无法编译 .vhd 文件。也不知道是什么问题?????????错误提示如下:

5、再加上如下的代码:

destroy .wave
quit -sim
vlib work
vmap work work
#编译上上层目录中的SRC目录下的所有.V文件
vlog -cover bces -incr {../../SRC/*.v}
#编译上层目录中的所有.v文件
vlog -nocoverage -incr {../*.v}

#vlog -nocoverage -incr {../../ISE/pulse_shape/ipcore_dir_test/*.vhd}
#-L unifast_ver -L unifast
vsim +ALL_TESTCASE -coverage -novopt -L unisims_ver -L unisim -L unimacro_ver -L unimacro -L simprims_ver -L secureip work.testcase
#vsim +UT_TESTCASE_001 -coverage work.testcase
#vsim +UT_TESTCASE_002 -coverage work.testcase
#vsim +UT_TESTCASE_003 -coverage work.testcase
do wave.do
# 此处在保持wave.do后有效
#simulates all signals including hidden signals
log -r *
run 1ms
coverage report -recursive -select bces -file Coverage.txt
coverage report -totals -file CoverageResult.txt
coverage report -lines -byinstance -select bces -file CoverageDetail.txt

完成:

原文地址:https://www.cnblogs.com/cornhill/p/4600956.html