<div class='quotetop'>QUOTE </div>
--- Quote Start ---
Yes I saw the part of multiplication/division emulation. But in this case the branch is done automaticaly by the nios (exception interruption not implemented). So in the code, there are nowhere the instruction trap. right?[/b]
--- Quote End ---
I'm not sure if I follow you; the reason I gave mul as an example is that if your code calls "mul", and the hardware is physically not present, a software exception gets generated and you find you find yourself in the alt_exceptions.S code. The first thing done here is to decode the opcode to determine if its a trap, otherwise its an unimplmented instruction (where you get the mul emulation), or possibly illegal instruction (a feature recently added to aid if the system has corrupt memory and you get a bad opcode).
About traps: I have a limited understanding of this, but what I do know is that traps do put you into supervisor mode as you mention (this is all covered in the Nios CPU reference manual). This can be useful if you're running an (RT)OS.
About this site: This forum is not an Altera support channel nor is it officially run by Altera
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif If you need specific help on an Altera product of any sort there are FAEs, distributors, and the Altera mySupport which are designed for this. However, you'll see that a number of us post replies to various questions here, time permitting... it is encouraging to see a lot of people using the forum because that means people in the community helping answer others' questions.