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

Altera Corporation 2–13
October 2007 Nios II Processor Reference Handbook
Processor Architecture
If an application always requires certain data or sections of code to be
located in cache memory for performance reasons, the tightly-coupled
memory feature might provide a more appropriate solution. Refer to
“Tightly-Coupled Memory” on page 2–13 for details.
Cache Bypass Methods
The Nios II architecture provides the following methods for bypassing
the data cache:
■ I/O load and store instructions
■ Bit-31 cache bypass
I/O Load and Store Instructions Method
The load and store I/O instructions such as ldio and stio bypass the
data cache and force an Avalon-MM data transfer to a specified address.
The Bit-31 Cache Bypass Method
The bit-31 cache bypass method on the data master port uses bit 31 of the
address as a tag that indicates whether the processor should transfer data
to/from cache, or bypass it. This is a convenience for software, which
might need to cache certain addresses and bypass others. Software can
pass addresses as parameters between functions, without having to
specify any further information about whether the addressed data is
cached or not.
f To determine which cores implement which cache bypass methods, refer
to the Nios II Core Implementation Details chapter of the Nios II Processor
Reference Handbook.
Tightly-Coupled Memory
Tightly-coupled memory provides guaranteed low-latency memory
access for performance-critical applications. Compared to cache memory,
tightly-coupled memory provides the following benefits:
■ Performance similar to cache memory
■ Software can guarantee that performance-critical code or data is
located in tightly-coupled memory
■ No real-time caching overhead, such as loading, invalidating, or
flushing memory
Physically, a tightly-coupled memory port is a separate master port on the
Nios II processor core, similar to the instruction or data master port. A
Nios II core can have zero, one, or multiple tightly-coupled memories.
The Nios II architecture supports tightly-coupled memories for both