Forum Discussion
RichardT_altera
Super Contributor
6 years agoYou can try to study the RAM VHDL design code in Quartus. In the new VHDL file, right-click and "insert template". Find VHDL > Full Designs > RAMs and ROMs > Single-Port RAM with Initial Contents.
There is a part of the design code on how to use .mif file. Or you can instantiate it using the Quartus IP Catalog. Hope it helps.
ADufl
New Contributor
6 years agoThank you for your answer but this template covers the case of using a *.mif file to set the initial state of an explicitly instantiated RAM block. My issue is about doing so when the RAM blocks have been instantiated using a "generate" statement.
Thank you for your support.