Home / Glossary / RISC-V Vector Extension

On this pageIn more detailWhy it mattersRelated termsRead more

RISC-V Vector Extension (RVV)

The RISC-V vector extension (RVV) is the standard addition to RISC-V that lets a processor apply one instruction to many data elements at once.

In more detail

Much computing involves doing the same operation on long arrays of numbers. A vector instruction processes many elements together, which is much faster than handling them one at a time.

RVV adds a set of vector registers and several hundred instructions for arithmetic, logic, comparison and memory access on vectors. Version 1.0 of the extension was ratified in 2021.

Its distinctive feature is that vector length is not fixed by the architecture. Each processor implementation chooses its own register width, and software asks at run time how many elements can be processed per step. The same compiled program therefore runs correctly on a small embedded core with short vectors and on a high-performance core with long ones. Many other architectures define fixed widths and need new instructions, and recompiled software, each time the width grows.

RVV also supports masking, so that an operation applies only to selected elements, and a range of element sizes.

Why it matters

Vector processing is central to AI, signal processing, scientific computing, multimedia and cryptography. Without it, a RISC-V processor would be at a serious disadvantage on those workloads.

A standard extension means compilers and libraries can be written once and used across products from many vendors. That shared base is important for RISC-V’s use in high-performance and AI systems, where it may complement a dedicated AI accelerator.

Related terms

Read more