- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I' am trying to make a *.mif (memory initialization file) from a picture(gray scale) and initialize it with memory i have create in fpga. The memory is reg [7:0] ram[76799:0] // 320X240 My question is how to create the file an how to initialize it with ram? Thank you A.ALink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The mif format is explained in Quartus Help when you look up "mif". It's a rather simple format and you can probably write a script or small software on your PC that reads the bmp file and writes the contents to a text file to generate the mif. Alternatively you can use a hex conversion program such as srecord (http://srecord.sourceforge.net/) that knows how to export to the MIF format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I create the mif file from Quartus.
How to connect it with verilog and initial memory ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The easiest way is to use the megawizard to create a ROM/RAM block. Then you can specify the .mif file to use for the block contents.

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