Difference between revisions of "Setting up Altera libraries in ModelSim SE"

From MCEWiki
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
When loading my mpf file from older ModelSim revisions, any compile would fail with error message: Error: library std not found. After contacting Mentor Graphics, it turns out that the path to some directories were previously hardcoded and not anymore. The solution is add the following line to either modelsim.ini (or project.mpf):
+
{{Related|Development Tools}}
 +
When loading my mpf file from older ModelSim revisions into v6.6c, any compile would fail with error message: ''Error: library std not found.'' After contacting Mentor Graphics, it turns out that the path to some directories were previously hardcoded and not anymore. The solution is add the following line to either modelsim.ini (or project.mpf):
 
std =  $MODEL_TECH/../std
 
std =  $MODEL_TECH/../std
 
+
== ==
Now, one needs to recreate libraries as follows:
+
When installing or upgrading Modelsim, one has to recreate libraries as follows:
 
Altera libraries:
 
Altera libraries:
  
 
altera
 
altera
 +
 
lpm
 
lpm
  
Line 11: Line 13:
  
 
sys_param     
 
sys_param     
 +
 
components
 
components
 +
 
work
 
work
  
Line 20: Line 24:
  
 
After you compile these once, you may change them to "do not compile".
 
After you compile these once, you may change them to "do not compile".
 +
== ==
 +
If you are loading an old project and compiled all files and simulations still don't come up, you may need to disable the optimizaion option on the simulation setup and then execute. Then you can Enable Optimization again for future runs. This does not sound logical though!!
  
 
Good Luck
 
Good Luck
 +
 +
[[Category:Development Tools]]

Latest revision as of 19:29, 31 August 2016

When loading my mpf file from older ModelSim revisions into v6.6c, any compile would fail with error message: Error: library std not found. After contacting Mentor Graphics, it turns out that the path to some directories were previously hardcoded and not anymore. The solution is add the following line to either modelsim.ini (or project.mpf): std = $MODEL_TECH/../std

When installing or upgrading Modelsim, one has to recreate libraries as follows: Altera libraries:

altera

lpm

and our own libraries:

sys_param

components

work

Now we need to compile all the models. The source files for Altera models are located in: altera/10.0/quartus/eda/sim_lib/. You need to compile the following:

220model.vhd , 220pack.vhd into lpm library altera_mf_components.vhd, altera_mf.vhd, altera_primitives.vhd into altera

After you compile these once, you may change them to "do not compile".

If you are loading an old project and compiled all files and simulations still don't come up, you may need to disable the optimizaion option on the simulation setup and then execute. Then you can Enable Optimization again for future runs. This does not sound logical though!!

Good Luck