vcsr
Vector Control and Status Register
Contains aliases to vxrm and vxsat CSRs
Attributes
Requirement |
|||
|---|---|---|---|
Defining extensions |
|
||
CSR Address |
0xf |
||
Length |
* 32 when (priv_mode() == PrivilegeMode::M && CSR[misa].MXL == 0) || (priv_mode() == PrivilegeMode::S && CSR[mstatus].SXL == 0) || (priv_mode() == PrivilegeMode::U && CSR[mstatus].UXL == 0) || (priv_mode() == PrivilegeMode::VS && CSR[hstatus].VSXL == 0) || (priv_mode() == PrivilegeMode::VU && CSR[vsstatus].UXL == 0) * 64 when (priv_mode() == PrivilegeMode::M && CSR[misa].MXL == 1) || (priv_mode() == PrivilegeMode::S && CSR[mstatus].SXL == 1) || (priv_mode() == PrivilegeMode::U && CSR[mstatus].UXL == 1) || (priv_mode() == PrivilegeMode::VS && CSR[hstatus].VSXL == 1) || (priv_mode() == PrivilegeMode::VU && CSR[vsstatus].UXL == 1) |
||
Privilege Mode |
U |
Format
This CSR format changes dynamically.
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:
VXRM = CSR[vxrm].VALUE = csr_value.VXRM;
return csr_value.VXRM;
VXSAT = CSR[vxsat].VALUE = csr_value.VXSAT;
return csr_value.VXSAT;