Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow to simulate Megawizard functions in altera modelsim
Hello,
I am trying to simulate megawizard functionalities in altera-modelsim but I get an error saying device is not instantiated. I know that I have to add libraries like 200.v and few others which are specified in the EDA section of the Megafunction. The problem is I do not know how to add those libraries. Can someone please suggest a method? Regards, Ranjan5 Replies
- Altera_Forum
Honored Contributor
Refer to the below link for details steps:
http://www.altera.com/support/examples/modelsim/simulation-manual-howto.html - Altera_Forum
Honored Contributor
Hello,
Thanks a lot for providing the link. I followed the instructuons and it worked immediately. I am very much thankful for the help provided. Regards, Ranjan - Altera_Forum
Honored Contributor
I am also having trouble with the megawizard libraries. I am getting the error "Failed to instantiate shiftreg."
I followed the instructions in the link and compiled 220model.v but it still does not work. I need some more hints. -John - Altera_Forum
Honored Contributor
Did you 'add' the simulation library?
E.g.: vsim -L lpm_ver work.lpm_shiftreg_test - Altera_Forum
Honored Contributor
Hello,
Make sure that the compiled library is within your work folder. Once that is done then in your simulation tab you should be able to see a lot of modules from the compiled library. Select the testbench (which you had coded) and simulate that.Hope it helps. Regards, Ranjan