Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12435 Discussions

How to permanently store NIOS code into FPGA

Altera_Forum
Honored Contributor II
842 Views

I have a NIOS II hardware system and 'C' code. How does one store it permanently into the FPGA 

so that on power-up the embedded processor will begin to execute it? 

Does one create a ROM and store it there? Somehow it seems the code will have to be given to 

Quartus. 

 

Thanks, 

Swimteam
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
109 Views

It depends on the size of the code, the amount of memory (on chip and off) that you've allocated to Nios II and where you want that code to run. Where does the Nios II start running code from? 

 

Typically, you have some sort of flash device that stores the FPGA image. You could use that same flash to store the Nios II code either as a separate image that would get loaded by the Nios II into RAM on power on/reset. If the Nios II code is small enough, you could also make it reside in an on chip memory...in this case it could be pulled into Quartus II via a hex file. 

 

There are instructions for doing this multiple places on both Altera's site(s) and the inter-web, in general. 

 

Good luck! 

 

slacker
Reply