Forum Discussion

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

simulation of megafunction with modelsim

Hi All,

I am using a altsyncram memory (megafunction wizard) in my project . I used .mif file to initialize the memory. Now I am trying to simulate it with Modelsim Altera 6.1g but I get an error " invalid file name during simulation.

Can anybody tell me the steps that I need to follow to simulate a a megafunction in Modelsim?

Regards,

Asmita

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ModelSim supports only *.hex initialization files. They can be used with Quartus as well. If *.hex files don't work with ModelSim, you most likely didn't place them in the expected directory.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ModelSim probably only reads .hex directly, but the altera_mf library does include a mif reading function which ModelSim understands