Specifications
Table Of Contents
- Nios II Processor Reference Handbook
- Contents
- Chapter Revision Dates
- About This Handbook
- Section I. Nios II Processor
- 1. Introduction
- 2. Processor Architecture
- 3. Programming Model
- Introduction
- General- Purpose Registers
- Control Registers
- Operating Modes
- Exception Processing
- Memory and Peripheral Access
- Instruction Set Categories
- Referenced Documents
- Document Revision History
- 4. Instantiating the Nios II Processor in SOPC Builder
- Section II. Appendices
- 5. Nios II Core Implementation Details
- Introduction
- Device Family Support
- Nios II/f Core
- Nios II/s Core
- Nios II/e Core
- Referenced Documents
- Document Revision History
- 6. Nios II Processor Revision History
- 7. Application Binary Interface
- 8. Instruction Set Reference
- Introduction
- Word Formats
- Instruction Opcodes
- Assembler Pseudo- instructions
- Assembler Macros
- Instruction Set Reference
- add
- addi
- and
- andhi
- andi
- beq
- bge
- bgeu
- bgt
- bgtu
- ble
- bleu
- blt
- bltu
- bne
- br
- break
- bret
- call
- callr
- cmpeq
- cmpeqi
- cmpge
- cmpgei
- cmpgeu
- cmpgeui
- cmpgt
- cmpgti
- cmpgtu
- cmpgtui
- cmple
- cmplei
- cmpleu
- cmpleui
- cmplt
- cmplti
- cmpltu
- cmpltui
- cmpne
- cmpnei
- custom
- div
- divu
- eret
- flushd
- flushda
- flushi
- flushp
- initd
- initi
- jmp
- jmpi
- ldb / ldbio
- ldbu / ldbuio
- ldh / ldhio
- ldhu / ldhuio
- ldw / ldwio
- mov
- movhi
- movi
- movia
- movui
- mul
- muli
- mulxss
- mulxsu
- mulxuu
- nextpc
- nop
- nor
- or
- orhi
- ori
- rdctl
- ret
- rol
- roli
- ror
- sll
- slli
- sra
- srai
- srl
- srli
- stb / stbio
- sth / sthio
- stw / stwio
- sub
- subi
- sync
- trap
- wrctl
- xor
- xorhi
- xori
- Referenced Documents
- Document Revision History

4–18 Altera Corporation
Nios II Processor Reference Handbook October 2007
Custom Instructions Page
Figure 4–6. Nios II Floating Point Hardware Dialog Box
Turn on Use floating point division hardware to include floating-point
division hardware. The floating-point division hardware requires more
resources than the other instructions, so you might wish to omit it if your
application does not make heavy use of floating-point division.
Click Finish to add the floating point custom instructions to the Nios II
processor.
f For details on floating-point instruction usage in the Nios II Embedded
Design Suite (EDS), see the Using Nios II Floating-Point Custom
Instructions tutorial.
Endian Converter Custom Instruction
The Nios II processor core offers an endian converter custom instruction
to reduce the time spent performing byte reversal operations.
To add the endian converter custom instruction to the Nios II processor,
select Endian Converter from the list, and click Add.
The endian converter custom instruction takes a 32 bit value and converts
the endianness in a single clock cycle. The Nios II processor core supports
little endian so this custom instruction allows you to convert data shared
with a big endian processor core. It is important to note that this custom
instruction does not convert the Nios II processor core to big endian
architecture, it only converts big endian data to little endian and visa
versa.