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–6 Altera Corporation
Nios II Processor Reference Handbook October 2007
Nios II/f Core
addi r1, r1, 100 ; r1 = r1 + 100 (Depends on result of mul)
Shift and Rotate Performance
The performance of shift operations depends on the hardware multiply
option. When a hardware multiplier is present, the ALU achieves shift
and rotate operations in one or two clock cycles. Otherwise, the ALU
includes dedicated shift circuitry that achieves one-bit-per-cycle shift and
rotate performance. Refer to Table 5–6 on page 5–11 for details.
Memory Access
The Nios II/f core provides optional instruction and data caches. The
cache size for each is user-definable, between 512 bytes and 64 KBytes.
The Nios II/f core supports the bit-31 cache bypass method for accessing
I/O on the data master port. Addresses are 31 bits wide to accommodate
the bit-31 cache bypass method.
Instruction and Data Master Ports
The instruction master port is a pipelined Avalon
®
-MM master port. If the
core includes data cache with a line size greater than four bytes, then the
data master port is a pipelined Avalon-MM master port. Otherwise, the
data master port is not pipelined.
The instruction and data master ports on the Nios II/f core are optional.
A master port can be excluded, as long as the core includes at least one
tightly-coupled memory to take the place of the missing master port.
1 Although the Nios II processor can operate entirely out of
tightly-coupled memory without the need for Avalon-MM
instruction or data masters, software debug is not possible when
either the Avalon-MM instruction or data master is omitted.
Support for pipelined Avalon-MM transfers minimizes the impact of
synchronous memory with pipeline latency. The pipelined instruction
and data master ports can issue successive read requests before prior
requests complete.
Instruction and Data Caches
This section first describes the similar characteristics of the instruction
and data cache memories, and then describes the differences.