错误信息如下:
# Loading /lib/pcnt.lib/swiftpli_mti.dll
# ** Error: (vsim-3193) Load of "/lib/pcnt.lib/swiftpli_mti.dll" failed: File not found.
# ** Error: (vsim-PLI-3002) Failed to load PLI object file "/lib/pcnt.lib/swiftpli_mti.dll".
# Region: /
# Loading work.tb
# Error loading design
原因:swiftpli_mti文件没有找到
解决方法:
1.设置环境变量
LMC_HOME ----> D:\Xilinx\10.1\ISE\smartmodel\nt\installed_nt
PATH ----> %LMC_HOME%\lib\pcnt.lib
2.修改"X:\Modeltech_6.1f\modelsim.ini"
注意:先把只读属性去掉再修改。
(1)"Resolution = ns" ----> "Resolution = ps"
(2)"PathSeparator = /" 行前加分号注释掉
(3)添加下面一行
Veriuser = $LMC_HOME\lib\pcnt.lib\swiftpli_mti.dll
如果调用novas生成fsdb波形,还需要添加下面一行
Veriuser = novas.dll
(4)把下面两行前面的分号去掉
"libsm = $MODEL_TECH/libsm.dll"
"libswift = $LMC_HOME/lib/pcnt.lib/libswift.dll"
3.下面就可以打开ISE工程,调用modelsim进行仿真了。
(1)仿真工具设置为model-SE verilog
(2)Compile HDL Simulation Libraries
(3)Simulate Behavioral Model
右键可以设置属性(VLOG,VSIM,VCOM,仿真时间等)
如:
VLOG: +define+SIMULATION
VSIM: -pli novas.dll
文章评论(0条评论)
登录后参与讨论