- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear YEan,
Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Most Welcome.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page