Specifications

Table Of Contents
Altera Corporation 3–21
October 2007 Nios II Processor Reference Handbook
Programming Model
Custom Instructions
The custom instruction provides low-level access to custom instruction
logic. The inclusion of custom instructions is specified at system
generation time, and the function implemented by custom instruction
logic is design dependent.
f For further details, see the “Custom Instructions” section of the Processor
Architecture chapter of the Nios II Processor Reference Handbook and the
Nios II Custom Instruction User Guide.
Machine-generated C functions and assembly macros provide access to
custom instructions, and hide implementation details from the user.
Therefore, most software developers never use the custom assembly
instruction directly.
No-Operation Instruction
The Nios II assembler provides a no-operation instruction, nop.
Potential Unimplemented Instructions
Some Nios II processor cores do not support all instructions in hardware.
In this case, the processor generates an exception after issuing an
unimplemented instruction. Only the following instructions can generate
an unimplemented instruction exception:
mul
muli
mulxss
mulxsu
mulxuu
div
divu
All other instructions are guaranteed not to generate an unimplemented
instruction exception.
An exception routine must exercise caution if it uses these instructions,
because they could generate another exception before the previous
exception is properly handled. See “Unimplemented Instruction” on
page 3–10 for details regarding unimplemented instruction processing.
Referenced
Documents
This chapter references the following documents:
Nios II Software Developers Handbook