Forum Discussion

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

How to update .mif data from on chip ram????

Hi,

I have create avalon-MM slavo part for my 1 port RAM and I use .mif file as my memory file for my 1 port RAM. When I run in Nios2 IDE software, I can read all the .mif data successfully.

But, when I change the data in .mif file, and rerun again in Nios2 IDE software, I still get previous .mif data.

May I know how to update my .mif data?

thanks!!!

4 Replies

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

    You don't need to recompile the whole Quartus project.

    Simply select Update Memory Initialization File in Quartus processing menu.

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

    And do not forget to re-run the assembler after that.

    Basically:

    1. change .mif file(s)

    2. select Update Memory Initialization File in Quartus processing menu

    3. run the assembly step
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi

    I am trying above two steps to update the contents of my .mif files, but output always shows results from first .mif files. any suggestions, what i might be doing wrong?

    Thanks,