Register File - Altera Nios II User Manual

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

Chapter 2: Processor Architecture

Register File

Implementation variables generally fit one of three trade-off patterns: more or less of a
feature; inclusion or exclusion of a feature; hardware implementation or software
emulation of a feature. An example of each trade-off follows:
More or less of a feature—For example, to fine-tune performance, you can increase or
decrease the amount of instruction cache memory. A larger cache increases
execution speed of large programs, while a smaller cache conserves on-chip
memory resources.
Inclusion or exclusion of a feature—For example, to reduce cost, you can choose to
omit the JTAG debug module. This decision conserves on-chip logic and memory
resources, but it eliminates the ability to use a software debugger to debug
applications.
Hardware implementation or software emulation—For example, in control applications
that rarely perform complex arithmetic, you can choose for the division instruction
to be emulated in software. Removing the divide hardware conserves on-chip
resources but increases the execution time of division operations.
f
For information about which Nios II cores supports what features, refer to the
Core Implementation Details
For complete details about user-selectable parameters for the Nios II processor, refer
to the
Handbook.
Register File
The Nios II architecture supports a flat register file, consisting of thirty-two 32-bit
general-purpose integer registers, and up to thirty-two 32-bit control registers. The
architecture supports supervisor and user modes that allow system code to protect
the control registers from errant applications.
The Nios II processor can optionally have one or more shadow register sets. A
shadow register set is a complete set of Nios II general-purpose registers. When
shadow register sets are implemented, the CRS field of the status register indicates
which register set is currently in use. An instruction access to a general-purpose
register uses whichever register set is active.
A typical use of shadow register sets is to accelerate context switching. When shadow
register sets are implemented, the Nios II processor has two special instructions,
rdprs and wrprs, for moving data between register sets. Shadow register sets are
typically manipulated by an operating system kernel, and are transparent to
application code. A Nios II processor can have up to 63 shadow register sets.
f
For details about shadow register set implementation and usage, refer to "Registers"
and "Exception Processing" in the
Reference Handbook.
For details about the rdprs and wrprs instructions, refer to the
chapter of the Nios II Processor Reference Handbook.
The Nios II architecture allows for the future addition of floating-point registers.
February 2014 Altera Corporation
chapter of the Nios II Processor Reference Handbook.
Instantiating the Nios II Processor
chapter of the Nios II Processor Reference
Programming Model
chapter of the Nios II Processor
Nios II Processor Reference Handbook
2–3
Nios II
Instruction Set Reference

Advertisement

Table of Contents
loading

Table of Contents