Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- 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.