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

5–12 Altera Corporation
Nios II Processor Reference Handbook October 2007
Nios II/s Core
JTAG Debug Module
The Nios II/f core supports the JTAG debug module to provide a JTAG
interface to software debugging tools. The Nios II/f core supports an
optional enhanced interface that allows real-time trace data to be routed
out of the processor and stored in an external debug probe.
Unsupported Features
The Nios II/f core does not handle the execution of instructions with
undefined opcodes. If the processor issues an instruction word with an
undefined opcode, the resulting behavior is undefined.
Nios II/s Core
The Nios II/s “standard” core is designed for small core size. On-chip
logic and memory resources are conserved at the expense of execution
performance. The Nios II/s core uses approximately 20% less logic than
the Nios II/f core, but execution performance also drops by roughly 40%.
Altera designed the Nios II/s core with the following design goals in
mind:
■ Do not cripple performance for the sake of size.
■ Remove hardware features that have the highest ratio of resource
usage to performance impact.
The resulting core is optimal for cost-sensitive, medium-performance
applications. This includes applications with large amounts of code
and/or data, such as systems running an operating system where
performance is not the highest priority.
Overview
The Nios II/s core:
■ Has instruction cache, but no data cache
■ Can access up to 2 Gbytes of external address space
■ Supports optional tightly-coupled memory for instructions
■ Employs a 5-stage pipeline
■ Performs static branch prediction
■ Provides hardware multiply, divide, and shift options to improve
arithmetic performance
■ Supports the addition of custom instructions
■ Supports the JTAG debug module
■ Supports optional JTAG debug module enhancements, including
hardware breakpoints and real-time trace