vxsat
Vector Fixed-Point Saturate Flag
Indicates if a fixed-point instruction has had to saturate an output value to fit into a destination format
Attributes
Requirement |
|||
|---|---|---|---|
Defining extensions |
|
||
CSR Address |
0x9 |
||
Length |
* 32 when CSR[misa].MXL == 0 * 64 when CSR[misa].MXL == 1 |
||
Privilege Mode |
U |
Format
This CSR format changes dynamically.
Field Summary
| Name | Location | Type | Reset Value |
|---|---|---|---|
* 31:0 when CSR[mstatus].UXL == 0 * 63:0 when CSR[mstatus].UXL == 1 |
RW-H |
UNDEFINED_LEGAL |
Fields
VALUE
- Location
-
-
31:0 when CSR[mstatus].UXL == 0
-
63:0 when CSR[mstatus].UXL == 1
-
- Description
-
The vxsat CSR has a single read-write least-significant bit (vxsat[0]) that indicates if a fixed-point instruction has had to saturate an output value to fit into a destination format. Bits vxsat[XLEN-1:1] should be written as zeros.
The vxsat bit is mirrored in vcsr.
- Type
-
RW-H
- Reset value
-
UNDEFINED_LEGAL
Software write
This CSR may store a value that is different from what software attempts to write.
When a software write occurs (e.g., through csrrw), the following determines the written value:
VALUE = return csr_value.VALUE & 1;