用Modelsim与ISE联和仿真的时候出现了以下错误
错误1
复制出来就是:
** Error: (vopt-19) Failed to access library ‘D:_FPGA_AX309_Learning\Xilinx\Xilinx_lib/xilinxcorelib_ver’ at “D:_FPGA_AX309_Learning\Xilinx\Xilinx_lib/xilinxcorelib_ver”.
No such file or directory. (errno = ENOENT)
** Error: …/…/sim/tb/flow_led_tb.v(1): Library xilinxcorelib_ver not found.
** Warning: …/…/sim/tb/flow_led_tb.v(1): (vopt-2669) Unable to find library ‘xilinxcorelib_ver’.
** Error: (vopt-19) Failed to access library ‘D:_FPGA_AX309_Learning\Xilinx\Xilinx_lib/unisims_ver’ at “D:_FPGA_AX309_Learning\Xilinx\Xilinx_lib/unisims_ver”.
No such file or directory. (errno = ENOENT)
** Error: …/…/sim/tb/flow_led_tb.v(1): Library unisims_ver not found.
** Warning: …/…/sim/tb/flow_led_tb.v(1): (vopt-2669) Unable to find library ‘unisims_ver’.
** Error: (vopt-19) Failed to access library ‘D:_FPGA_AX309_Learning\Xilinx\Xilinx_lib/unimacro_ver’ at “D:_FPGA_AX309_Learning\Xilinx\Xilinx_lib/unimacro_ver”.
No such file or directory. (errno = ENOENT)
** Error: …/…/sim/tb/flow_led_tb.v(1): Library unimacro_ver not found.
** Warning: …/…/sim/tb/flow_led_tb.v(1): (vopt-2669) Unable to find library ‘unimacro_ver’.
** Error: (vopt-19) Failed to access library ‘D:_FPGA_AX309_Learning\Xilinx\Xilinx_lib/secureip’ at “D:_FPGA_AX309_Learning\Xilinx\Xilinx_lib/secureip”.
No such file or directory. (errno = ENOENT)
** Error: …/…/sim/tb/flow_led_tb.v(1): Library secureip not found.
** Warning: …/…/sim/tb/flow_led_tb.v(1): (vopt-2669) Unable to find library ‘secureip’.
Optimization failed
Error loading design
Error: Error loading design
Pausing macro execution
MACRO ./flow_led_tb.fdo PAUSED at line 29
,最终解决就是
错误 2
The path specified in the “Compiled Library Directory” property (“C:/Xilinx/Xilinx_lib”) does not exist.
解决
这两个错误其实是Modelsim与ISE的仿真时候,Xilinx的库的位置不对,所以重新联和仿真,也就是需要重新编译库Simulation Library Compilation(具体网上很多教程),然后选择一个位置
选择好之后,继续执行,然后按照教程完成即可。
联和完成之后,需要选择在仿真模式下选中tb文件
然后打开菜单栏中的Process Properties ,
将路径修改为之前设置的路径即可。
(注意,主要是针对问题2 需要修改路径。而问题1 呢,一般在问题2 修改完成之后,问题1 就解决了,问题1 的路径就是上图中的路径)