- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I'm trying to simulate a simple floating point calculation in ModelSim Altera 6.6c. I am using the ALTFP_DIV megafunction to do the calculation. When I compile my verilog files together with the altera_mf.v file and the testbench file in ModelSim, everything works fine.
But when I start the simulation, it comes up with an error: 'Instantiation of 'lpm_add_sub' failed. The design unit was not found.' The same message applies to lpm_compare and lpm_mult too. I thought the altera_mf would take care of all those Altera specific libraries. Could someone please tell me where I am going wrong and help me get this simulation working? ThanksLink kopiert
5 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
the lpm blocks are in the LPM library. you need to add the lpm library in modelsim:
right click on the libraries window goto new -> library select map to existing library name : LPM find the 220model folder- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Thank you very much Tricky. I can simulate the lpm functions now.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
--- Quote Start --- the lpm blocks are in the LPM library. you need to add the lpm library in modelsim: right click on the libraries window goto new -> library select map to existing library name : LPM find the 220model folder --- Quote End --- Hi Tricky, I am trying to implement the a 16 bit adder using LPMs as described in the Using_Library_Modules.pdf from the Altera website. I followed the exact steps the project compiled fine. but, when I try to simulate it, I get the same error 'Instantiation of 'lpm_add_sub' failed. The design unit was not found.' Tried to use the solution you gave in the earlier post, but, still not getting it to work. screenshot after mapping the library is attached for your reference. Please suggest. ------------------------------------ Later I was able to resolve this issue by including the 220model directory under the library tab after selecting 'Start Simulation' from the menu. But, now i am getting another error 'Unresolved defparam reference to 'lpm_add_sub_component' in lpm_add_sub_component.lpm_direction' Please suggest a solution. Screenshot for the same is also attached.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
hi all,
it has been a year since hartejpal's last post, so i presumme that this problem of his has long gone. but right now i'm facing this problem. i've performed the suggestions given in this thread, i.e.: 1. created new libraries, mapped to existing libraries 220model, altera, altera_mf 2. clicked the simulate button, under the Design tab i chose the design file i wanted to simulate and under the Libraries tab i added the new libraries i have created earlier still i am getting the vsim 3033 error.."Instantiation of 'LPM_RAM_DQ' failed. The design unit was not found." i am using modelsim altera starter edition..what are other solutions that i can try..pls help, thanx..- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
i've solved this vsim 3033 error by copying the 220model.v found in C:\altera\13.0sp1\quartus\eda\sim_lib into my modelsim working directory (for e.g. resource_library as in the Modelsim Tutorial pdf file - chapter 5 working with multiple libraries).
besides the parts_lib folder, i also created lpm_lib (optional and arbitrary name ) folder under the same resource_library folder to segregate my custom modules and altera lpm modules. i then compiled the 220model.v in the resource_library directory into the lpm_lib library. it should be clearer if you refer to the tutorial pdf file page 39. maybe it's not the proper method but it works for me.
Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite