Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

How 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,

Ranjan

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Did you 'add' the simulation library?

    E.g.:

    vsim -L lpm_ver work.lpm_shiftreg_test
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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