altera12.1编译modelsim中10.2使用的库altera_lnsim.sv出错
时间:10-02
整理:3721RD
点击:
我使用quartus ii 12.1sp1自带的EDA simulation Library compiler 编译modelsim中仿真使用的库的时候编译出错了:提示
Error: # ** Error: d:/altera/12.1sp1/quartus/eda/sim_lib/altera_lnsim.sv(1158): (vlog-2244) Variable 'mega' is implicitly static. You must explicitly declare it as static or automatic.
** Error: D:/altera/12.1sp1/quartus/eda/sim_lib/altera_lnsim.sv(1670): Could not find the package (altera_lnsim_functions). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
** Error: D:/altera/12.1sp1/quartus/eda/sim_lib/altera_lnsim.sv(1789): (vlog-2730) Undefined variable: 'MAX_NUMBER_OF_CLOCKS'.等等总计有13个错误都是关于altera_lnsim.sv的,安装后我又没有改过这个文件理应来说没有错才对啊,事什么导致的这种情况啊?
Error: # ** Error: d:/altera/12.1sp1/quartus/eda/sim_lib/altera_lnsim.sv(1158): (vlog-2244) Variable 'mega' is implicitly static. You must explicitly declare it as static or automatic.
** Error: D:/altera/12.1sp1/quartus/eda/sim_lib/altera_lnsim.sv(1670): Could not find the package (altera_lnsim_functions). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
** Error: D:/altera/12.1sp1/quartus/eda/sim_lib/altera_lnsim.sv(1789): (vlog-2730) Undefined variable: 'MAX_NUMBER_OF_CLOCKS'.等等总计有13个错误都是关于altera_lnsim.sv的,安装后我又没有改过这个文件理应来说没有错才对啊,事什么导致的这种情况啊?
quartus 12.1 sp1只支持到modelsim10.1b,你用modelsim 10.2是会有这个错误。
如果一定要使用modelsim 10.2,可以更改altera_lnsim.sv后编译。
详细请看
http://www.altera.com.cn/support ... rd04172013_537.html
quartus是有这个限制,可以查看这个官网的说明
