Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

Error while creating a Memory Initialization file in Quartus

Mathiazhagan
Novice
3,572 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
3,522 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

0 Kudos
5 Replies
YEan
Employee
3,551 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

0 Kudos
Mathiazhagan
Novice
3,541 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

 

0 Kudos
YEan
Employee
3,523 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.

0 Kudos
Mathiazhagan
Novice
3,518 Views

Dear YEan,

Thanks a lot  

0 Kudos
YEan
Employee
3,512 Views

Most Welcome.

0 Kudos
Reply