IPR-NIOS Altera, IPR-NIOS Datasheet - Page 287

no-image

IPR-NIOS

Manufacturer Part Number
IPR-NIOS
Description
IP NIOS II MEGACORE RENEW
Manufacturer
Altera
Type
MegaCorer
Datasheet

Specifications of IPR-NIOS

License
Renewal License
Lead Free Status / RoHS Status
Not applicable / Not applicable
Chapter 8: Instruction Set Reference
Instruction Set Reference
wrprs
December 2010 Altera Corporation
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Exceptions:
Instruction Type:
Instruction Fields:
31
30
29
A
28
27
26
25
24
0
prs.rC ← rA
wrprs rC, rA
wrprs r6, r7
Copies the value of rA in the current register set to rC in the previous register set. This
instruction can set r0 to 0 in a shadow register set.
The previous register set is specified by status.PRS. By default, status.PRS indicates
the register set in use before an exception, such as an external interrupt, caused a
register set change.
To write to an arbitrary register set, software can insert the desired register set number in
status.PRS prior to executing wrprs.
System software must use wrprs to initialize r0 to 0 in each shadow register set before using
that register set.
If shadow register sets are not implemented on the Nios II core, wrprs is an illegal instruction.
Supervisor-only instruction
Illegal instruction
R
A = Register index of operand rA
C = Register index of operand rC
23
22
21
20
19
C
18
17
16
15
14
0x14
13
12
11
10
write to previous register set
9
0
8
Nios II Processor Reference Handbook
7
6
5
4
0x3a
3
2
1
8–101
0

Related parts for IPR-NIOS