ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 903 microarchs · 15,772 chips · 105 sources
Arch:
Tier:

aes32dsi

T1 riscv crypto insn
AES final round decryption instruction for RV32
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zknd, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZknd, Zkt-DIT

Summary

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.

Syntax / Encoding

aes32dsi xd, xs1, xs2, bs | xx10101xxxxxxxxxx000xxxxx0110011 (mask=0x3e00707f match=0x2a000033)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RVxx10101xxxxxxxxxx000xxxxx01100110x3e00707f / 0x2a000033

Operands

NameDescription
bsbits [31:30]
xs2bits [24:20]
xs1bits [19:15]
xdbits [11:7]

Reference Notes

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.