软件环境:
ISE13.1+System
Generator
Matlab2010b
Modelsim SE 10.0
已编译Xilinx器件的Modlsim仿真库
现象:在System
Generator做了点仿真,验证成功之后,自动生成了testbench文件,然后在ISE中打开生成的工程,调用Modelsim选择behavior仿真,在Modelsim打开之后总是没完没了的提示
Error: (vsim-19) Failed to access library 'work' at
"work".,把我折腾了两个小时啊;用ISIM仿真没有问题,但是ISIM没有analog模拟显示波形的功能,还是得用Modelsim。
没办法,在ISE中观测工程的仿真属性,发现ISE在调用仿真软件时用到了System
Generator生成的pn_behavioral.do仿真脚本。用记事本打开pn_behavioral.do,看到如下内容:
-- If you see error messages concerning missing libraries for
--
XilinxCoreLib, unisims, or simprims, you may not have set
-- up your ModelSim
environment correctly. See the Xilinx
-- Support Website for instructions
telling how to compile
-- these libraries.
vlib work
vlog D:/Xilinx/13.1/ISE_DS/ISE/verilog/src/glbl.v
vlog
sdft_paper_sg2.v
vlog sdft_paper_sg2_cw.v
vlog sdft_paper_sg2_tb.v
vsim
+nowarnTFMPC -L work -L UNISIMS_VER -L SIMPRIMS_VER -L XILINXCORELIB_VER
work.glbl -t ps sdft_paper_sg2_tb
view wave
add wave *
view
structure
view signals
run 55000275.000000 ns |