Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

Library lpm not found

Altera_Forum
Honored Contributor II
4,394 Views

Hello  

 

We are investigating simulating NIOSII with Modelsim. 

We are using Quartus II 10.1sp1 web edition , modelsim ASE (Starter). 

 

I have created a NIOSII with SOPC and generated the sim file (through SOPC). 

Then I use ECLIPSE to generate a flashing LED. (It work on hardware). 

 

I am then trying to run configuration => Modelsim Configuration 

Modelsim ASE opens, but when I use the "s" command (Loads all design files into modelsim work library) , I was missing ALTERA_MF, SGATE, 220MODEL , I have included them (I found them on my computer at C:\altera\10.1sp1\modelsim_ase\altera\vhdl\) 

 

Now the tool seems happy with those lib added , but the Library lpm is not found .I have tried to add the path C:\altera\10.1sp1\quartus\libraries\vhdl\lpm (this is the only place on my computer that I can find the folder lpm). The tools tells me the lib is not available. The folder is there , with only one file in it : lpm_pack.vhd) 

 

1) Why are all the file not included in my sim folder created by SOPC ? 

I can see others related simulation files in there but not Altera_mf...) 

 

2) Any idea how I can keep going ? 

 

Is it related to the fact I am using the free version of the tools ? (Modesim starter , Quartus web ). 

 

Thanks a lot for your help. 

 

Regards 

 

Benoit
0 Kudos
10 Replies
Altera_Forum
Honored Contributor II
3,030 Views

look for a folder in the modelsim directory called 220model. That is the LPM library for modelsim.

0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

Hello Tricky 

 

Thanks for your reply. 

 

220MODEL is included in my library path (add new lib...). I know there is files starting with lpm in there but none are lpm only. (lpm_abs, lpm_add_sub...) 

 

I have an on_chip_mem that refer to Library lpm : 

on_chip_mem.vhd (generated by SOPC) 

 

Library lpm 

use lpm.all; 

 

Modeslim tells me he cannot find it. : Library lpm not found. 

 

Regards 

 

Benoit
0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

when you map to the directory, you need to name the library as lpm, not 220model.

0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

Thanks a lot Tricky 

 

It does the trick. 

 

Regards 

 

Ben
0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

Hi Ben, 

 

I'm having the same problem as you concerning the lpm library not found. Could you please tell me the exact commands or steps you did to map to the lpm library? I'm trying to use Tricky's advice of renaming 220model to lpm but no luck so far. 

 

 

--- Quote Start ---  

Thanks a lot Tricky 

 

It does the trick. 

 

Regards 

 

Ben 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

in modelsim - right click in the libraries window 

goto new -> library 

 

select map to an existing library. 

Library name LPM 

find the 220model directory.
0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

Hello mate, 

 

Am using modelsim, but i still can't find the 220model folder..... any help please
0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

Hello 

 

The folder should be there (under your modelsim folder) 

x:\ ..\modelsim_ase\altera\vhdl\220model
0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

its the modelsim pe student version......... i still cant find it mate.......... you said you installed it separately?.........

0 Kudos
Altera_Forum
Honored Contributor II
3,030 Views

I am using Modelsim_ase (Altera edition ) , all library are pre-compiled. 

 

If I remember well (I use PE a long time ago with Xilinx ) , for PE you need to recompile the lib. 

The source of those lib should be under your altera folder: 

x:\ \altera\ \quartus\eda\sim_lib  

You compile them for the specific modelsim version you are using. 

 

I Can't remember the exact command (compile + mapping..) , but you should be able to find info if you Google it. 

 

Ben
0 Kudos
Reply