Excalibur electronic A-MNL-NIOSPROG-01.1 用户手册
Altera Corporation
vii
Contents
How to Contact Altera ................................................................................................................... iv
Typographic Conventions ...............................................................................................................v
Typographic Conventions ...............................................................................................................v
Nios CPU Overview .........................................................................................................................1
Instruction Set ...................................................................................................................................2
Register Overview ............................................................................................................................2
Instruction Set ...................................................................................................................................2
Register Overview ............................................................................................................................2
General-Purpose Registers ......................................................................................................2
The K Register ...........................................................................................................................4
The Program Counter...............................................................................................................4
Control Registers.......................................................................................................................4
The K Register ...........................................................................................................................4
The Program Counter...............................................................................................................4
Control Registers.......................................................................................................................4
Reading from Memory (or Peripherals) ........................................................................8
Writing to Memory (or Peripherals) ..............................................................................9
Writing to Memory (or Peripherals) ..............................................................................9
5/16-bit Immediate Value .....................................................................................................10
Full Width Register-Indirect..................................................................................................12
Partial Width Register-Indirect .............................................................................................12
Full Width Register-Indirect with Offset.............................................................................13
Partial Width Register-Indirect with Offset ........................................................................13
Full Width Register-Indirect..................................................................................................12
Partial Width Register-Indirect .............................................................................................12
Full Width Register-Indirect with Offset.............................................................................13
Partial Width Register-Indirect with Offset ........................................................................13
Relative-Branch Instructions .................................................................................................14
Absolute-Jump Instructions ..................................................................................................15
Trap Instructions.....................................................................................................................15
Conditional Instructions ........................................................................................................15
Absolute-Jump Instructions ..................................................................................................15
Trap Instructions.....................................................................................................................15
Conditional Instructions ........................................................................................................15
Exception Handling Overview .............................................................................................16
Exception Vector Table ..........................................................................................................16
External Hardware Interrupt Sources..................................................................................17
Internal Exception Sources ....................................................................................................17
Exception Vector Table ..........................................................................................................16
External Hardware Interrupt Sources..................................................................................17
Internal Exception Sources ....................................................................................................17
Register Window Underflow ........................................................................................17
Register Window Overflow...........................................................................................18
Register Window Overflow...........................................................................................18
Altera Corporation
#
Contents