RISC-V Reference
A plain-HTML reference for the RISC-V instruction set and its control and status registers (CSRs): every ratified instruction in riscv-opcodes with its encoding bit fields, assembly syntax and a description, and every allocated CSR with its address, privilege and access. It is generated from official RISC-V International sources (sources and licenses).
Browse by extension below, use the A to Z index, the full instruction list or the CSR listing, or search this reference:
Instructions by extension
Base integer ISA
- RV32I/RV64I base integer (78) · Base integer ISA (RV32I or RV64I)
Standard extensions M, A, F, D, Q, C, Zicsr, Zifencei
- M (13) · Integer multiply and divide
- A (22) · Atomic instructions
- F (54) · Single-precision floating-point
- D (51) · Double-precision floating-point
- Q (46) · Quad-Precision Floating-Point
- C (48) · Compressed instructions
- Zicsr (13) · Control and status register instructions
- Zifencei (1) · Instruction fence
B: bit manipulation (Zba, Zbb, Zbc, Zbs)
- Zba (9) · Address generation
- Zbb (24) · Basic bit-manipulation
- Zbc (3) · Carry-less multiplication
- Zbs (8) · Single-bit instructions
V: vector, plus vector crypto and BF16 vector extensions
- V (638) · Vector Operations
- Zvbb (16) · Vector Basic Bit-manipulation
- Zvbc (4) · Vector Carryless Multiplication
- Zvfbfmin (2) · Vector BF16 Converts
- Zvfbfwma (2) · Vector BF16 widening mul-add
- Zvkg (2) · Vector GCM/GMAC
- Zvkn (23) · NIST Algorithm Suite
- Zvkned (11) · NIST Suite: Vector AES Block Cipher
- Zvknha (3) · NIST Suite: Vector SHA-2 Secure Hash (SHA-256)
- Zvknhb (3) · NIST Suite: Vector SHA-2 Secure Hash (SHA-256 + SHA-512)
- Zvks (14) · ShangMi Algorithm Suite
- Zvksed (3) · ShangMi Suite: SM4 Block Cipher
- Zvksh (2) · ShangMi Suite: SM3 Secure Hash
Privileged ISA
- Privileged base (mret, wfi) (2) · Privileged instructions defined in the machine-level ISA chapter
- S (2) · Supervisor mode
- H (17) · Hypervisor
- Svinval (5) · Fine-grained address-translation cache invalidation
- Smrnmi (1) · Resumable Non-Maskable Interrupts
- Sdext (1) · External debug support
- Ssctr (1) · Control Transfer Records
Other ratified extensions in riscv-opcodes
- Zabha (20) · Byte and Halfword Atomic Memory Operations
- Zacas (5) · Atomic Compare-and-Swap (CAS) Instructions
- Zalasr (8) · Atomic Load-Acquire and Store-Release
- Zawrs (2) · Wait-on-Reservation-Set Instructions
- Zbkb (16) · Bit-manipulation for Cryptography
- Zbkc (2) · Carry-less multiplication for Cryptography
- Zbkx (2) · Crossbar permutations
- Zcb (13) · Simple code-size saving instructions
- Zclsd (4) · Compressed Load/Store Pair for RV32
- Zcmop (9) · Compressed May-Be-Operations
- Zcmp (6) · Complex PUSH/POP and Double Move
- Zcmt (1) · Table Jump
- Zfa (33) · Additional Floating-Point Instructions
- Zfbfmin (2) · Scalar BF16 Converts
- Zfh (36) · Half-precision floating point
- Zfhmin (10) · Minimal half-precision floating-point
- Zicbom/Zicbop/Zicboz (7)
- Zicfilp (1) · Landing Pad
- Zicfiss (9) · Shadow Stack
- Zicntr (6) · Base Counters and Timers
- Zicond (2) · Integer Conditional Operations
- Zihintntl (8) · Non-Temporal Locality Hints
- Zilsd (2) · Load/Store Pair for RV32
- Zimop (42) · May-Be-Operations
- Zk (45) · Standard Cryptography Extensions
- Zkn (45) · NIST Algorithm Suite
- Zknd (7) · NIST Suite: AES Decryption
- Zkne (6) · NIST Suite: AES Encryption
- Zknh (14) · NIST Suite: SHA2 Hashing
- Zks (24) · ShangMi Algorithm Suite
- Zksed (2) · ShangMi Suite: SM4 Block Cipher Instructions
- Zksh (2) · ShangMi Suite: SM3 Hash Function Instructions
Control and status registers
- Unprivileged and user-level CSRs (83)
- Supervisor-level CSRs (42)
- Hypervisor and VS CSRs (58)
- Machine-level CSRs (265)
- Debug CSRs (0x7A0 to 0x7BF) (12)
About this reference
1284 instruction pages (1014 with full descriptions), 460 CSR pages, 65 extension listings. Encodings are checked against riscv-opcodes’ generated instr_dict.json. Pages use no JavaScript.