Forum Discussion
Altera_Forum
Honored Contributor
12 years agoI will share what I have done in my working project:
I am using Quartus II ver12.1 web edition with NIOS II Eclipse 12.1, first, for NIOS II processor system, I have the the setup in Qsys tool as shown in img1.https://www.alteraforum.com/forum/attachment.php?attachmentid=8209 then I build my C source project in NIOS IDE, and created the required memory initialization file for the on-chip memory (connected to both instruction and data master of NIOS processor) in the following default location: C:\altera\cryosystem\software\cryosystem1040\mem_init.hex along with meminit.qip and meminit.spd these files are generated by Eclipse and are not included in Quartus project at this point. What I do next is go back to Quartus, and open the hex file in quartus, as shown in img2.https://www.alteraforum.com/forum/attachment.php?attachmentid=8206 I change that to 32, then you get correct memory boundaries as shown in img3.https://www.alteraforum.com/forum/attachment.php?attachmentid=8207 Then you can save and replace the original hex file, checked that the saved file is included in the project, as in img3. Finally when the quartus project is compiled, you can look at the compilation report as shown in img4.https://www.alteraforum.com/forum/attachment.php?attachmentid=8208 My on-chip memory component will be initialized with the hex file when the generated sof is loaded. I hope this answer some of your questions.