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

iv Altera Corporation
Nios II Processor Reference Handbook
Contents
Memory and I/O Organization ........................................................................................................... 2–8
Instruction and Data Buses ............................................................................................................. 2–9
Cache Memory ................................................................................................................................ 2–11
Tightly-Coupled Memory ............................................................................................................. 2–13
Address Map ................................................................................................................................... 2–14
JTAG Debug Module .......................................................................................................................... 2–15
JTAG Target Connection ............................................................................................................... 2–15
Download and Execute Software ................................................................................................. 2–16
Software Breakpoints ..................................................................................................................... 2–16
Hardware Breakpoints .................................................................................................................. 2–16
Hardware Triggers ......................................................................................................................... 2–16
Trace Capture .................................................................................................................................. 2–18
Referenced Documents ....................................................................................................................... 2–19
Document Revision History ............................................................................................................... 2–20
Chapter 3. Programming Model
Introduction ............................................................................................................................................ 3–1
General-Purpose Registers ................................................................................................................... 3–1
Control Registers ................................................................................................................................... 3–2
Operating Modes ................................................................................................................................... 3–4
Normal Mode .................................................................................................................................... 3–5
Debug Mode ...................................................................................................................................... 3–5
Changing Modes .............................................................................................................................. 3–5
Exception Processing ............................................................................................................................. 3–5
Reset Exceptions ............................................................................................................................... 3–6
Break Exceptions .............................................................................................................................. 3–7
Interrupt Exceptions ........................................................................................................................ 3–8
Instruction-Related Exceptions .................................................................................................... 3–10
Processing Interrupt and Instruction-Related Exceptions ....................................................... 3–11
Determining the Cause of Interrupt and Instruction-Related Exceptions ............................. 3–12
Returning From Interrupt and Instruction-Related Exceptions .............................................. 3–13
Memory and Peripheral Access ......................................................................................................... 3–14
Cache Memory ................................................................................................................................ 3–14
Instruction Set Categories ................................................................................................................... 3–15
Data Transfer Instructions ............................................................................................................ 3–15
Arithmetic and Logical Instructions ............................................................................................ 3–16
Move Instructions ........................................................................................................................... 3–17
Comparison Instructions ............................................................................................................... 3–17
Shift and Rotate Instructions ........................................................................................................ 3–18
Program Control Instructions ....................................................................................................... 3–19
Other Control Instructions ............................................................................................................ 3–20
Custom Instructions ....................................................................................................................... 3–21
No-Operation Instruction ............................................................................................................. 3–21
Potential Unimplemented Instructions ....................................................................................... 3–21
Referenced Documents ....................................................................................................................... 3–21
Document Revision History ............................................................................................................... 3–22