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

vlenb

T1 riscv register register
Vector Byte Length
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

Holds the value VLEN/8, the vector register length in bytes.

Syntax / Encoding

CSR 0xc22 (U-mode, RO)

Bitfields (1)

BitsFieldDescription
63:0VALUEThe value in vlenb is a design-time constant in any implementation. Without this CSR, several instructions are needed to calculate VLEN in bytes, and the code has to disturb current vl and vtype settings which require them to be saved and restored. [RV32: 31:0, RV64: 63:0]