Webcentive RISC-V Reference

Zbkx instructions

Crossbar permutations

Adds instructions to implement a "lookup table" for 4 and 8 bit elements inside the general purpose registers.

These instructions are useful for expressing N-bit to N-bit boolean operations, and implementing cryptographic code with secret dependent memory accesses (particularly SBoxes) such that the execution latency does not depend on the (secret) data being operated on.

Extension description from riscv-unified-db, reformatted.

Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zbkx.adoc.

Instructions (2)

MnemonicName (riscv-unified-db)XLEN
xperm4Crossbar permutation (nibbles)RV32 and RV64
xperm8Crossbar permutation (bytes)RV32 and RV64