Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20640 Discussions

information about the NIOS II processor operations after program computation

Altera_Forum
Honored Contributor II
1,012 Views

Hi, can someone explain me what the NIOS II processod do (if it do someting) after the execution of a program. 

For example let's suppose that we execute an hello word program on the processor; 

After the execution of the program what does the processor do?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
213 Views

? It's going to execute your code. If it's just a hello world it will print "hello world" and stay idle for ever

0 Kudos
Altera_Forum
Honored Contributor II
213 Views

There is an infinite loop that is entered after main runs to completion. The loop will get cached and after an iteration you should see the Nios II masters idle (not access memory). 

 

In the BSP/syslib settings is an option to remove this loop. This is done by turning off the 'clean exit' option but I wouldn't recommend doing so since you will not know how it'll behave after main exits. If you have a main that can't exit then in my opinion it is safe to disable this. 

 

Also for Nios II questions I recommend posting in one of these sections instead: http://www.alteraforum.com/forum/forumdisplay.php?f=37 You'll have more Nios II experts see your post that way :)
0 Kudos
Reply