3.2.17 CPU STATUS Register(1)

Note:
  1. The CPU STATUS register is not memory-mapped.
Table 3-17. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Gray cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
CWrite to clearSSoftware settable bitxChannel number
Name: SR

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
 VF    CTX[2:0] 
Access RRRR 
Reset 0000 
Bit 15141312111098 
 OAOBSASBOABSAB IPL3 
Access R/WR/WR/WR/WRR/CR/C 
Reset 0000000 
Bit 76543210 
 IPL[2:0]RANOVZC 
Access R/WR/WR/WRR/WR/WR/WR/W 
Reset 00000000 

Bit 23 – VF Vector (Fetch) Fail Status bit

ValueDescription
1

Indicates to the bus error handler that the source of the bus error is a vector fetch. The vector data read will be substituted with the contents of the Vector Fail Address (VFA) SFR.

0Indicates to the bus error handler that the source of the bus error is not a vector fetch.

Bits 18:16 – CTX[2:0] Current (W register) Context Identifier bits

ValueDescription
111Context 7 is currently in use
110Context 6 is currently in use
101Context 5 is currently in use
100Context 4 is currently in use
011Context 3 is currently in use
010Context 2 is currently in use
001Context 1 is currently in use
000Context 0 is currently in use

Bit 15 – OA Accumulator A Fractional Overflow Status bit

ValueDescription
1Accumulator A fractional overflow has occurred (its contents can no longer be represented as a 1.31 fractional value)
0Accumulator A not overflowed

Bit 14 – OB Accumulator B Fractional Overflow Status bit

ValueDescription
1Accumulator B fractional overflow has occurred (its contents can no longer be represented as a 1.31 fractional value)
0Accumulator B not overflowed

Bit 13 – SA Accumulator A Saturation/Sign Overflow ‘Sticky’ Status bit

ValueDescription
1Accumulator A is saturated, or has been saturated at some time, or has overflowed into bit 71 (if saturation is disabled)
0Accumulator A is not saturated or has not overflowed into bit 71 (if saturation is disabled)

Bit 12 – SB Accumulator B Saturation/Sign Overflow ‘Sticky’ Status bit

ValueDescription
1Accumulator B is saturated, or has been saturated at some time, or has overflowed into bit 71 (if saturation is disabled)
0Accumulator B is not saturated or has not overflowed into bit 71 (if saturation is disabled)

Bit 11 – OAB OA || OB Combined Accumulator Fractional Overflow Status bit

ValueDescription
1Accumulators A or B fractional overflow has occurred (one or both of their contents can no longer be represented as a 1.31 fractional value)
0Neither Accumulators A nor B have overflowed

Bit 10 – SAB SA || SB Combined Accumulator ‘Sticky’ Status bit

ValueDescription
1Accumulators A or B are saturated, or have been saturated at some time, or have overflowed into bit 71 (if saturation is disabled)
0Neither Accumulator A nor B are saturated or have overflowed into bit 71 (if saturation is disabled)

Bit 8 – IPL3 MS-bit of CPU Priority Level Nibble bit

ValueDescription
1CPU Priority ≥ 8 (trap exception underway)
0CPU Priority < 8 (no trap exception underway)

Bits 7:5 – IPL[2:0] CPU Interrupt Priority Level status bits

User Mode: This bit is R/C-0 (read only if Supervisor Mode supported) and will reset to 1’b0.

Supervisor Mode: This bit is R/C-0 (CPU will reset into Supervisor Mode).

ValueDescription
111All interrupts disabled
110Level 7 interrupts enabled
101Level 6 and 7 interrupts enabled
100Level 5 through 7 interrupts enabled
011Level 4 through 7 interrupts enabled
010Level 3 through 7 interrupts enabled
001Level 2 through 7 interrupts enabled
000Level 1 through 7 interrupts enabled

Bit 4 – RA REPEAT Loop Active bit

ValueDescription
1REPEAT loop in progress
0REPEAT loop not in progress

Bit 3 – N ALU Negative bit

Bit 2 – OV ALU Overflow bit

Bit 1 – Z ALU ‘Sticky’ Zero bit

ValueDescription
1An operation which effects the Z bit has set it at some time in the past
0The most recent operation which effects the Z bit has cleared it (i.e. a non-zero result)

Bit 0 – C  ALU Carry/Borrow bit

SR[31:0] is stacked during exception processing, preserving context.