Forum Discussion
Mathiazhagan
Occasional Contributor
4 years agoError while creating a Memory Initialization file in Quartus
Hi there,
I created a text file and named it as .mif MIF file in the format as shown below
DEPTH = 256; WIDTH = 16; ADDRESS_RADIX = HEX; DATA_RADIX = HEX; CONTENT BEGIN 0 : 400, 400,...
- 4 years ago
Yup, you can use the format given online. However, the format you used was wrong, you should not include comma in the content. I'm able to add this .mif file after I had removed all of the comma.
YEan
Contributor
4 years agoHi,
You have stored too many data in an address. Here is an example:
DEPTH = 32; -- The size of memory in words WIDTH = 8; -- The size of data in bits ADDRESS_RADIX = HEX; -- The radix for address values DATA_RADIX = BIN; -- The radix for data values CONTENT -- start of (address : data pairs) BEGIN 00 : 00000000; -- memory address : data 01 : 00000001; 02 : 00000010;
.
.
.
END;
Thanks and regards,
Ean