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

3–14 Altera Corporation
Nios II Processor Reference Handbook October 2007
Memory and Peripheral Access
On the other hand, hardware interrupt exceptions must resume execution
from the interrupted instruction itself. In this case, the exception handler
must subtract 4 from ea to point to the interrupted instruction.
Memory and
Peripheral
Access
Nios II addresses are 32 bits, allowing access up to a 4 gigabyte address
space. However, many Nios II core implementations restrict addresses to
31 bits or fewer.
f For details, refer to the Nios II Core Implementation Details chapter of the
Nios II Processor Reference Handbook.
Peripherals, data memory, and program memory are mapped into the
same address space. The locations of memory and peripherals within the
address space are determined at system generation time. Reading or
writing to an address that does not map to a memory or peripheral
produces an undefined result.
The processor’s data bus is 32 bits wide. Instructions are available to read
and write byte, half-word (16-bit), or word (32-bit) data.
The Nios II architecture is little endian. For data wider than 8-bits stored
in memory, the more-significant bits are located in higher addresses.
The Nios II architecture supports register+immediate addressing.
Cache Memory
The Nios II architecture and instruction set accommodate the presence of
data cache and instruction cache memories. Cache management is
implemented in software by using cache management instructions.
Instructions are provided to initialize the cache, flush the caches
whenever necessary, and to bypass the data cache to properly access
memory-mapped peripherals.
The Nios II architecture provides a mechanism called bit-31 cache bypass
to bypass the cache depending on the value of the most-significant bit of
the address. The address space of processor cores that implement bit-31
cache bypass is 2 GBytes, and the high bit of the address controls the
caching of data memory accesses.
f Refer to the Nios II Core Implementation Details chapter of the Nios II
Processor Reference Handbook for details of which processor cores
implement bit-31 cache bypass.