Webcentive RISC-V Reference

aes32dsi

AES final round decryption instruction for RV32

Extension
Zk, Zkn, Zknd
XLEN
RV32 only
Assembly (riscv-unified-db)
aes32dsi xd, xs1, xs2, bs
Length
32-bit

Encoding

3130292524201915141211760
bs10101rs2rs1000rd0110011

Match 0x2a000033, mask 0x3e00707f. Source: aes32dsi rd rs1 rs2 bs 29..25=0b10101 14..12=0 6..0=0x33 in riscv-opcodes/extensions/rv32_zknd.

FieldBitsriscv-opcodes name
bs31:30bs
rs224:20rs2
rs119:15rs1
rd11:7rd

Description

Sources a single byte from xs2 according to bs. To this it applies the inverse AES SBox operation, and XOR's the result with xs1. This instruction must always be implemented such that its execution latency does not depend on the data being operated on.

Description from riscv-unified-db, reformatted.

Specification and related pages