Forum Discussion
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- And it's clear on the ModelSim simulator that the memory is initialized with zeros not 'X', where a memory initialization file (.MIF) is created for this purpose during synthesis to altsyncram --- Quote End --- If you are using a Megafunction with a memory initialization file, then yes. The simulation library provided by Altera will take of that. If you are using a Megafunction without an explicit memory file, then the simulation library is supposed to initialize the memory to zero, but I remember I had some issues with this. OTOH, if you are using inferred memory, then definitely not. You must initialize the memory yourself, you can do that with simulation-only code. The difference between hardware and simulation regarding the default power-up applies actually to every register, not just to memory. However it's typical to explicitely reset registers, but obviously registers only, not memory, on the hardware.