Forum Discussion

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

rams in Quartus

Hi,everyone.

I want to use ram in my design. I find some types in Quartus.

I don't know what's the detailed differences among them and how to use them, such as how to initialize them.For example, "lpm_ram_dq" , I create it and leave it blank, now i want to use it , how to write " _.mif " to it , can it ? or I have to initialize it when i create it?:confused:

Thanks everyone!

11 Replies

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

    You may also want to look at the Quartus II templates under Edit -> Insert Template. The Full Designs category has a sub-category for inferred RAMs and ROMs. I prefer to infer when I can and instantiate a megafunction when I must. The software will automatically create a MIF to model the initial contents specified by your HDL. However, the Update Memory Initialization File feature doesn't work with inferred RAMs as far as I know. That is, you can't edit the auto-generated MIF and invoke this feature to update the programming file with the new memory contents. You must edit your HDL and recompile.