I just needed to confirm what I am doing is correct wrt writing a verilog code for RAM and initialising its memory contents. I am having no luck even after following these steps:
1. .v file for a dual port RAM according to Recommended HDL Coding Styles.
2. Have added this attribute : (* ram_init_file = "my_memory_blocks.hex" *) reg [7:0] mem [255:0];
3. I have changed the path of convert_hex2ver.dll in the modelsim.ini file :
Veriuser =
C:\altera\11.1\modelsim_ase\win32aloem\convert_hex2ver.dll 4. All the design files and the .hex file are in my project folder.
I am not gettin any output when I am trying to read from the memory :( . It would be of great help to me if somebody could tell me if I am going wrong somewhere.
Looking forward for a reply. Thanks.