vtype
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
UZvl32bSummary
Provides the default type used to interpret the contents of the vector register file.
Syntax / Encoding
CSR 0xc21 (U-mode, RO)
Bitfields (6)
| Bits | Field | Description |
|---|---|---|
63 | VILL | The vill bit is used to encode that a previous vset{i}vl{i} instruction attempted to write an unsupported value to vtype. [NOTE] The vill bit is held in bit XLEN-1 of the CSR to support checking for illegal values with a branch on the sign bit. If the vill bit is set, then any attempt to execute a vector instruction |
8 | ALTFMT | Selects the alternate floating-point format for vector floating-point instructions. When ALTFMT is zero, the hart behaves as though Zvfbfa were not implemented. Setting ALTFMT to one when SEW is greater than or equal to 32 is reserved. [NOTE] Implementations should set VILL when a reserved combination of ALTFMT and |
7 | VMA | Vector mask agnostic bit. Modifies the behavior of destination inactive masked-off elements during the execution of vector instructions. A value of 0 means inactive elements are undisturbed, meaning the corresponding set of destination elements in a vector register group retain the value they previously held. A value |
6 | VTA | Vector tail agnostic bit. Modifies the bahavior of destination tail elements during the execution of vector instructions. A value of 0 means tail elements are undisturbed, meaning the corresponding set of destination elements in a vector register group retain the value they previously held. A value of 1 means tail el |
5:3 | VSEW | The value in vsew sets the dynamic selected element width (SEW). [separator="!"] ! vsew[2:0] ! SEW ! Elements per vector register ! 000 ! 8 ! 16 ! 001 ! 16 ! 8 ! 010 ! 32 ! 4 ! 011 ! 64 ! 2 ! 1XX ! Reserved ! Reserved It is recommended that at reset, vill is set, and the remaining bits in vtype are zero. |
2:0 | VLMUL | Vector register group multiplier. Multiple vector registers can be grouped together, so that a single vector instruction can operate on multiple vector registers. The term vector register group is used herein to refer to one or more vector registers used as a single operand to a vector instruction. Vector register gro |