Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Altera MIF file format from MATLAB MIF format for cyclone M4K

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!!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.