Forum Discussion
KLohr
Occasional Contributor
7 years agoHow do you initialize a ROM for simulation?
I am using a 1-Port ROM in a max 10 device. When I configured the IP I selected and generated an intel hex file for memory content data. But during simulation the values are all 0. Is there a way ...
IDeyn
Contributor
7 years agoHi KLohr!
First of all, I would like to recommend using *.mif file instead of hex file for simulation of initial content in ROM.
Hope that helps.
--
Best regards,
Ivan
- KLohr7 years ago
Occasional Contributor
OK, so I switched to using *.mif file and I still get all 0's in my simulation. Any further ideas? The ROM .v file has the following line in it. But it doesn't seem to be looking at it:
altsyncram_component.init_file = "lookuptable.mif",