Forum Discussion
Altera_Forum
Honored Contributor
15 years agokevin, I do what you told me to do.
I used "Update Memory Initialization File" option on the Quartus "Processing" menu to recompile my project, but the result of nios code is remain the same. But several days ago when do this, the result is changed. That is to say, the situation is not stable, maybe sometimes it works, but sometimes it does not work. I don't know why, thanks very much. All the best. --- Quote Start --- The initial contents of the FPGAs internal block RAM is stored in the .sof file. If your NIOS code is being stored in internal block RAM, then your compiled code will be part of the .sof file. If you change your C code, you will then obviously need to also regenerate the .sof file. Using the "Update Memory Initialization File" option on the Quartus "Processing" menu can be a short cut to recompiling the entire Quartus project. While developing, you can also download updated NIOS code using JTAG to save having to generate a new .sof file every time. For example, from the Nios II Command Shell you can do "nios2-download -g filename.elf". Once you are happy with the results, you can then generate a new .sof file to make the changes more permanent. --- Quote End ---