Webcentive RISC-V Reference

vl

Vector length

Address
0xC20
Group
Unprivileged and user-level CSRs
Privilege
URO (privileged spec CSR listing, Unprivileged Vector CSRs)
Access
read-only; lowest privilege U (user/unprivileged)
Address range
Standard read-only
Name in riscv-unified-db
Vector Length

Privileged spec: Vector length

Description

Holds an unsigned integer specifying number of elements to be updated with results from a vector instruction.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
VALUERV32 31-0 / RV64 63-0RO-H

The vl register holds an unsigned integer specifying the number of elements to be updated with results from a vector instruction, as further detailed in Section Section 31.5.4.

Note: The number of bits implemented in vl depends on the implementation's maximum vector length of the smallest supported type. The smallest vector implementation with VLEN=32 and supporting SEW=8 would need at least six bits in vl to hold the values 0-32 (VLEN=32, with LMUL=8 and SEW=8, yields VLMAX=32).

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages