Forum Discussion
jozephka99
Contributor
5 years agoRAM initialization with .mif using logic elements?
I write a ram module with Intel's template. It is working fine amd not uses any logic elements without initializing it. But when I initialize it with a .mif file that I created, it uses logic element...
sstrell
Super Contributor
5 years agoI'm not sure why it would use memory blocks when you're not initializing it but use logic when you do initialize it, but I wouldn't use "natural" for a logic design like this. Everything should be std_logic or std_logic_vector.
In the Quartus text editor, check out the templates for inferring a RAM with initialization. Maybe you'll get a clue about what's happening from there. Or you can add the RAM as an IP from the IP Catalog.