Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
16004 Discussions

Error while creating a Memory Initialization file in Quartus

Mathiazhagan
Novice
720 Views

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, 1F4, 14D, 0FA, 0C8, 0A6, 08E, 07D, 06F, 064, 05A, 053, 04C, 047, 042, 03E, 03A, 037, 034, 032, 02F, 02D, 02B, 029, 028, 026, 025, 023, 022, 021, 020, 01F, 01E, 01D, 01C, 01B, 01B, 01A, 019, 019, 018, 017, 017, 016, 016, 015, 15, 014, 014, 014, 013, 013, 012, 012, 012, 011, 011, 011, 010, 010, 010, 010 00F, 00F, 00F, 00F, 00E, 00E, 00E, 00E, 00E, 00D, 00D, 00D, 00D, 00D, 00C, 00C, 00C, 00C, 00C, 00C, 00C, 00B, 00B, 00B, 00B, 00B, 00B, 00B, 00A, 00A, 00A, 00A, 00A, 00A, 00A, 00A, 00A, 00A, 009, 009, 009, 009, 009, 009, 009, 009, 009, 009, 009, 008, 008, 008, 008, 008, 008, 008, 008, 008, 008, 008, 008, 008, 008, 007, 007, 007, 007, 007, 007, 007, 007, 007, 007, 007, 007, 007, 007, 007, 007, 007, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 006, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 005, 004, 004, 004 ;

END ; 

 

But am getting a error as Error (113000): Memory Initialization File or Hexadecimal (Intel-Format) File "radmem.mif" contains illegal syntax at line 9, Could anyone please help me out on how to resolve this issue what is the error it is showing 

Thanks in advance 

0 Kudos
1 Solution
YEan
Employee
670 Views

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.

View solution in original post

5 Replies
YEan
Employee
699 Views

Hi,

 

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

Mathiazhagan
Novice
689 Views

Hi Ean,

 

Thanks for replying for all my queries, I would like to bring your kind notice that i was able to create the .MIF file for the same program mentioned above with 45 datas but i could not create a .mif file for the above mentioned code with more data's. Moreover i went through the addressing of the .MIF file i created the file in that format but could not create, herewith i attach the snap shot of the addressing that is given in online.

Mathiazhagan_0-1646202173137.png

 

YEan
Employee
671 Views

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.

Mathiazhagan
Novice
666 Views

Dear YEan,

Thanks a lot  

YEan
Employee
660 Views

Most Welcome.

Reply