Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

information about the NIOS II processor operations after program computation

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?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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 :)