使用ISE调用modelsim进行工程仿真时报错:Library std not found

在ise建立的工程使用modelsim se 10.1c仿真时报错:

# ** Error: Library std not found.
# ** Error: VHDL Compiler exiting
# D:\Applications\Modelsim SE_64_10.1c\win64\vcom failed.

看到这种问题很无助啊,首先库已经被编译过了,而且环境变量已经设置成功了,但是为什么还会出现这类问题那

经过谷歌后终于明白其中的猫腻:

报错说没找到 Library std 所以编译器不能对当前工程进行编译和仿真,所以编译器退出

These errors occur because the std library is not mapped correctly in the "modelsim.ini" file. This usually occurs when a "modelsim.ini" file generatedby COMPXLIB is copied into theModelSim installation directory to replace the original one.

There are some basic library mappings in the original "modelsim.ini" file under the ModelSim installation directory, as follows:

[Library]
std = $MODEL_TECH/../std
ieee = $MODEL_TECH/../ieee
verilog = $MODEL_TECH/../verilog

......
vital2000 = $MODEL_TECH/../vital2000
std_developerskit = $MODEL_TECH/../std_developerskit
synopsys = $MODEL_TECH/../synopsys
modelsim_lib = $MODEL_TECH/../modelsim_lib
sv_std = $MODEL_TECH/../sv_std
mtiAvm = $MODEL_TECH/../avm
mtiOvm = $MODEL_TECH/../ovm-2.1.1
mtiUPF = $MODEL_TECH/../upf_lib
mtiPA = $MODEL_TECH/../pa_lib
floatfixlib = $MODEL_TECH/../floatfixlib
mc2_lib = $MODEL_TECH/../mc2_lib

The "modelsim.ini" file generated by COMPXLIB does not have the above library mappings, but has the following single line instead:

others = $MODEL_TECH/../modelsim.ini

So, when youreplace the original "modelsim.ini" file with the one generated by COMPXLIB, you lose the basic library mappings.

To resolve this problem:

  1. Add the above basic library mappings to the "modelsim.ini" file that is currently using the following [Library].
  2. Close ModelSim and reopen it to run the simulation again.

你可能感兴趣的:(使用ISE调用modelsim进行工程仿真时报错:Library std not found)