Field
Description
Access
Reset
Availabl
e
DTCM1
Inject ECC error in DTCM1. Injection occurs on next store instruction
that writes this DTCM.
Read/Write
0
DTCM2
Inject ECC error in DTCM2. Injection occurs on next store instruction
that writes this DTCM.
Read/Write
0
DTCM3
Inject ECC error in DTCM3. Injection occurs on next store instruction
that writes this DTCM.
Read/Write
0
DC WB
Inject ECC error in data cache victim line buffer RAM. Injection occurs
on the first word written into the victim buffer RAM when a dirty line is
being written back.
Read/Write
0
Refer to “Working with ECC” for more information about when errors are injected.
Related Information
Working with ECC
on page 69
3.4.3. Shadow Register Sets
The Nios II processor can optionally have one or more shadow register sets. A shadow
register set is a complete alternate set of Nios II general-purpose registers, which can
be used to maintain a separate runtime context for an interrupt service routine (ISR).
When shadow register sets are implemented,
status.CRS
indicates the register set
currently in use. A Nios II core can have up to 63 shadow register sets. If n is the
configured number of shadow register sets, the shadow register sets are numbered
from 1 to n. Register set 0 is the normal register set.
A shadow register set behaves precisely the same as the normal register set. The
register set currently in use can only be determined by examining
status.CRS
.
Note:
When shadow register sets and the EIC interface are implemented on the Nios II core,
you must ensure that your software is built with the Nios II EDS version 9.0 or later.
Earlier versions have an implementation of the
eret
instruction that is incompatible
with shadow register sets.
Shadow register sets are typically used in conjunction with the EIC interface. This
combination can substantially reduce interrupt latency.
For details of EIC interface usage, refer to the Exception Processing section.
System software can read from and write to any shadow register set by setting
status.PRS
and using the
rdprs
and
wrprs
instructions.
For details of the
rdprs
and
wrprs
instructions, refer to the Instruction Set
Reference chapter of the Nios II Processor Reference Handbook.
Related Information
•
Instruction Set Reference
on page 169
•
Exception Processing
on page 74
3. Programming Model
NII-PRG | 2018.04.18
Nios II Processor Reference Guide
65