Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

Altera MIF file format from MATLAB MIF format for cyclone M4K

Altera_Forum
Honored Contributor II
1,897 Views

Hi all.  

I'm a beginner and i'm trying to save a picture on the M4K blocks (cyclone 2, on DE2) and read it out to the VGA DAC. 

 

The vga part works, but i'm having problems with the MIF file for the M4K which i have generated with MATLAB. It won't display anything, it displays a black screen. 

 

When i'm generating a MIF file with qurtus and randomly puts '1's in the array, it does displays on screen. but if i put the MIF file from matlab, again, just black screen.  

 

if someone knows how to address this issue, i will by grateful.  

 

THANK YOU!!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
949 Views

Check the warnings from Quartus when you compile with your MIF file. If there is an error in the MIF format, Quartus will just generate a warning instead of an error and possibly just fill the memory with 0's instead.

0 Kudos
Altera_Forum
Honored Contributor II
949 Views

First of all be sure that u add the Memory block correctly in the design revice the width and depth parameters in the plug-in-manager. Then try to open the .mif file using quartus file>open. you may find that the memory contents are all 0's or 1's.

0 Kudos
Reply