Forum Discussion
12 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- Hello sir can you please tell me how to create and run test benches in QUARTUS II --- Quote End --- You don't. Rather, you create and run a testbench in Modelsim (Altera Starter Edition). Here's an example testbench to get you started (modelsim_example.zip): http://www.alteraforum.com/forum/showthread.php?t=32386 Cheers, Dave - Altera_Forum
Honored Contributor
Sir.
I have written a project in vhdl which is compiling in Quartus-ii and generating a RTL Now i want to simulate this project ..so i imported this files in MOdelsim.. it is not compiling in Modelsim...what could be the problem... thank you - Altera_Forum
Honored Contributor
what errors are you getting?
- Altera_Forum
Honored Contributor
sir
it says lpm library is not found in modelsim.... what is the path for lpm library in modelsim and can i copy the same lpm library which is there in Quartus II to modelsim thank you - Altera_Forum
Honored Contributor
--- Quote Start --- it says lpm library is not found in modelsim.... what is the path for lpm library in modelsim and can i copy the same lpm library which is there in Quartus II to modelsim --- Quote End --- Which version of Modelsim are you using? Modelsim Altera Start Edition should know about the lpm library already, type vmap to see the library mappings. For example Modelsim 6.6c has the mapping: # "lpm" maps to directory C:\software\altera\11.0sp1\modelsim_ase\win32aloem/../altera/vhdl/220model. Perhaps you have managed to mess up your environment setting? If you are using a full-edition version of Modelsim, then you need to compile the library. I can help with that, if that is the case. Cheers, Dave - Altera_Forum
Honored Contributor
Sir
thank you very much for the reply .... I am using separate Modelsim PE Edition 10.0d....of Mentor Graphics.. i have two separately installed software Quartus II of altera and Modelsim of Mentor Graphics i have written a project in Quartus II and is compiling and creating RTL.... but when i am compiling this files in Modelsim it is giving me error lpm library is not found..... please can you tell me where can i find lpm library in Modelsim PE Edition 10.0d. this. - Altera_Forum
Honored Contributor
--- Quote Start --- I am using separate Modelsim PE Edition 10.0d....of Mentor Graphics.. i have two separately installed software Quartus II of altera and Modelsim of Mentor Graphics i have written a project in Quartus II and is compiling and creating RTL.... but when i am compiling this files in Modelsim it is giving me error lpm library is not found..... please can you tell me where can i find lpm library in Modelsim PE Edition 10.0d. this. --- Quote End --- The library is located in: $env(QUARTUS_ROOTDIR)/eda/sim_lib You can set it up via: vlib lpm vmap lpm [pwd]/lpm vcom $env(QUARTUS_ROOTDIR)/eda/sim_lib/220pack.vhd vcom $env(QUARTUS_ROOTDIR)/eda/sim_lib/220model.vhd (I'm just typing this from memory, so if it doesn't work, let me know, and I'll check for the correct syntax). Cheers, Dave - Altera_Forum
Honored Contributor
sir
i have typed as u said in the command promp of modelsim my pwd is c:\ Modeltech_pe_edu_10.0d\examples were my project is stored vlib lpm vmap lpm c:\ Modeltech_pe_edu_10.0d\examples/lpm# Modifying C:/Modeltech_pe_edu_10.0d/examples/voq_switch_2.mpf# ** Error: (vmap-20) Cannot access file "c:Modeltech_pe_edu_10.0dexamples/lpm".# No such file or directory. (errno = ENOENT) this are the errors i get....... thank you - Altera_Forum
Honored Contributor
if you have spaces in your path, you need to enclose it in quotes ""
you can also map to a library right right clicking in the libraries window and selecting "add library -> map to existing library" - Altera_Forum
Honored Contributor
--- Quote Start --- i have typed as u said in the command promp of modelsim --- Quote End --- You need to use forward slashes in Tcl (and no space as Tricky commented)
Cheers, Davevlib lpm vmap lpm c:/Modeltech_pe_edu_10.0d/examples/lpm