Forum Discussion

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

mif, customized RAM, initialize

Hi all,

Due to some constraints, I need to design a customized RAM for my project. It works pretty well but here got a little problem. I initialize the content of RAM by giving initial value in simulation waveforms. I find that this is not a efficient way and therefore I came across a Memory Initialization File (.mif). Then created a .mif file.

Is that anyone knows how to initialize the RAM using this .mif file?

Thanks and Regards

ty6

1 Reply

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

    It depends on what you mean by RAM

    1) in case it is external RAM to your FPGA you will need to initialize it from your FPGA design, by upload circuits or by a embedded processor like a NIOS-II or (in case your board provides this) by a monitor program supplied by the board manufacturer.

    2) in case it is on-chip RAM you created by means of MegaWizard, you can specify the .mif file during one of the dialog menus in the Wizard.

    Hope this helps.