解决方法:
前提是安装了 xilinx ise14.7 和modelsim se 10.1a
1〉从Windows的Start Menu开始,Xilinx ISE Design Suite 14.7 —〉EDK —〉Tools —〉Compile Simulation Libraries
按照提示编译好library,编译的library输出目录是: D:\Xilinx\14.7\ISE_DS\EDK ,编译需要一定的时间的。
2〉从Process菜单,选择Process Properties...,设置Compiled Libraey Directory
3〉set the Enviroment variables(http://forums.xilinx.com/t5/Installation-and-Licensing/solved-Failed-to-get-the-pre-compiled-simulation-library/td-p/72635) :
- MODELSIM environment variable to point to the modelsim.ini file
- WD_MGC environment variable to point to the directory containing the modelsim.ini file
注意:是指 安装modelsim.ini 软件目录下面的modelsim.ini, 比如我的安装目录是 D:\modeltech_10.1a
4〉复制 \Xilinx\14.7\ISE_DS\EDKmodelsim.ini里的[Library]节中的下列行到 \modeltech_10.1a\modelsim.ini 里的 [Library] 节下
secureip = D:\Xilinx\14.7\ISE_DS\EDK/secureip
unisim = D:\Xilinx\14.7\ISE_DS\EDK/unisim
unimacro = D:\Xilinx\14.7\ISE_DS\EDK/unimacro
unisims_ver = D:\Xilinx\14.7\ISE_DS\EDK/unisims_ver
unimacro_ver = D:\Xilinx\14.7\ISE_DS\EDK/unimacro_ver
simprim = D:\Xilinx\14.7\ISE_DS\EDK/simprim
simprims_ver = D:\Xilinx\14.7\ISE_DS\EDK/simprims_ver
xilinxcorelib = D:\Xilinx\14.7\ISE_DS\EDK/xilinxcorelib
xilinxcorelib_ver = D:\Xilinx\14.7\ISE_DS\EDK/xilinxcorelib_ver
uni9000_ver = D:\Xilinx\14.7\ISE_DS\EDK/uni9000_ver
cpld = D:\Xilinx\14.7\ISE_DS\EDK/cpld
cpld_ver = D:\Xilinx\14.7\ISE_DS\EDK/cpld_ver
edk = D:\Xilinx\14.7\ISE_DS\EDK/edk