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

mif, customized RAM, initialize

Altera_Forum
Honored Contributor II
1,256 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
435 Views

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