ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

vtype

T1 riscv register register
Vector Type
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (Zvl32b)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeU
ExtensionsZvl32b

Summary

Provides the default type used to interpret the contents of the vector register file.

Syntax / Encoding

CSR 0xc21 (U-mode, RO)

Bitfields (6)

BitsFieldDescription
63VILLThe 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
8ALTFMTSelects 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
7VMAVector 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
6VTAVector 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:3VSEWThe 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:0VLMULVector 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