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

2–10 Altera Corporation
Nios II Processor Reference Handbook October 2007
Memory and I/O Organization
Memory and Peripheral Access
The Nios II architecture provides memory-mapped I/O access. Both data
memory and peripherals are mapped into the address space of the data
master port. The Nios II architecture is little endian. Words and halfwords
are stored in memory with the more-significant bytes at higher addresses.
The Nios II architecture does not specify anything about the existence of
memory and peripherals; the quantity, type, and connection of memory
and peripherals are system-dependent. Typically, Nios II processor
systems contain a mix of fast on-chip memory and slower off-chip
memory. Peripherals typically reside on-chip, although interfaces to off-
chip peripherals also exist.
Instruction Master Port
The Nios II instruction bus is implemented as a 32-bit Avalon-MM master
port. The instruction master port performs a single function: it fetches
instructions to be executed by the processor. The instruction master port
does not perform any write operations.
The instruction master port is a pipelined Avalon-MM master port.
Support for pipelined Avalon-MM transfers minimizes the impact of
synchronous memory with pipeline latency and increases the overall
f
MAX
of the system. The instruction master port can issue successive read
requests before data has returned from prior requests. The Nios II
processor can prefetch sequential instructions and perform branch
prediction to keep the instruction pipe as active as possible.
The instruction master port always retrieves 32 bits of data. The
instruction master port relies on dynamic bus-sizing logic contained in
the system interconnect fabric. By virtue of dynamic bus sizing, every
instruction fetch returns a full instruction word, regardless of the width
of the target memory. Consequently, programs do not need to be aware of
the widths of memory in the Nios II processor system.
The Nios II architecture supports on-chip cache memory for improving
average instruction fetch performance when accessing slower memory.
See “Cache Memory” on page 2–11 for details. The Nios II architecture
supports tightly-coupled memory, which provides guaranteed low-
latency access to on-chip memory. See “Tightly-Coupled Memory” on
page 2–13 for details.