Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20810 Discussions

How to simulate Megawizard functions in altera modelsim

Altera_Forum
Honored Contributor II
1,540 Views

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, 

Ranjan
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
597 Views
0 Kudos
Altera_Forum
Honored Contributor II
597 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
597 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
597 Views

Did you 'add' the simulation library? 

 

E.g.: 

vsim -L lpm_ver work.lpm_shiftreg_test
0 Kudos
Altera_Forum
Honored Contributor II
597 Views

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
0 Kudos
Reply