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

Altera Modelsim Starter Edition Libraries

Altera_Forum
Honored Contributor II
2,027 Views

According to the handbook/instructions, Altera Modelsim is suppose to have all the libraries ready to go for simulating designs. I can see these libraries in the library viewer in modelsim, however when I go to run my simulation modelsim can't seem to find them. 

E.g. 

 

 

--- Quote Start ---  

# ** Error: (vsim-3033) C:/Users/Jack Hodgson/Desktop/FPGA_Dev/FIRadd.v(2117): Instantiation of 'lpm_compare' failed. The design unit was not found. 

# Region: /Testbench/testy/c1/m3/add10/FIRadd_altfp_add_sub_a6k_component 

# Searched libraries: 

# C:\Users\Jack Hodgson\Desktop\FPGA_Dev\simulation\modelsim\rtl_work 

# Loading work.wavelet_Ddb1 

# ** Error: (vsim-3033) C:/Users/Jack Hodgson/Desktop/FPGA_Dev/wavelet_Ddb1.v(88): Instantiation of 'altsyncram' failed. The design unit was not found. 

# Region: /Testbench/testy/r3 

# Searched libraries: 

# C:\Users\Jack Hodgson\Desktop\FPGA_Dev\simulation\modelsim\rtl_work 

--- Quote End ---  

 

 

 

I've tried compiling those libraries into my work library, but then I get a long list of errors such as: 

 

 

--- Quote Start ---  

# ** Error: (vsim-10000) C:/Users/Jack Hodgson/Desktop/FPGA_Dev/InputReg.v(77): Unresolved defparam reference to 'LPM_SHIFTREG_component' in LPM_SHIFTREG_component.lpm_type. 

# Region: /Testbench/testy/r0/b0 

# ** Error: (vsim-10000) C:/Users/Jack Hodgson/Desktop/FPGA_Dev/InputReg.v(78): Unresolved defparam reference to 'LPM_SHIFTREG_component' in LPM_SHIFTREG_component.lpm_width. 

# Region: /Testbench/testy/r0/b0 

--- Quote End ---  

 

 

 

Apparently I shouldn't need to compile those libraries in the first place, but evidently I'm missing a trick as Modelsim can't find them at all. I've tried reinstalling all the Altera software (and Windows 7!) in order to see if that works, and I can't seem to find the answer when I google it. Any ideas?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
1,079 Views

It appears I was being an idiot. I'd previously developed in ModelSim so to simulate I would just double click on my testbench in the library view. 

 

I needed to add the library search paths. For others who might have this problem: When simulating, go to Simulate --- > Run Simulation. Under the libraries tab, add in the libraries you need (I needed altera, altera_mf, 220model, cyclone_iii). I found these in C:\altera\11.1\modelsim_ase\altera
0 Kudos
Altera_Forum
Honored Contributor II
1,079 Views

Thanks, jacki2ya. Run into the same problem and your post helped me :)

0 Kudos
Altera_Forum
Honored Contributor II
1,079 Views

thnx jacki2ya, it really helped...!!

0 Kudos
Reply