Setting up Altera libraries in ModelSim SE
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