Forum Discussion
Altera_Forum
Honored Contributor
15 years agoİnitialization Ram with VHDL
Hi,
As you know, in Verilog, initialize $readmemh code is initialized Ram simply. I searched a VHDL code like this but i can't get. Do you help me to find this code? If you know a sample, can you share with me ? Thanks.11 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- If this is for simulation purpose, then initialize the memory content when u create them, but you need to use simulator like ModelSim If this is an actual circuit then you MUST use mif file to initialize memory content. The programmer tool will initialize the memory when it programs the FPGA. --- Quote End --- can you elaborate why you must use a .mif in Quartus? i use initialized contents after declaring the RAM/ROM specifically because it works in synthesis and simulation. the Quartus II HDL templates are also built this way