Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

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

Altera_Forum
Honored Contributor II
1,803 Views

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!!!
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
797 Views

Recompile the quartus project after the mif file changed.

0 Kudos
Altera_Forum
Honored Contributor II
797 Views

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

Simply select Update Memory Initialization File in Quartus processing menu. 

 

Cris
0 Kudos
Altera_Forum
Honored Contributor II
797 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
797 Views

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,
0 Kudos
Reply