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++
12616 Discussions

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

Altera_Forum
Honored Contributor II
1,440 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
434 Views

Recompile the quartus project after the mif file changed.

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