rvsim-core 2.0.0

A cycle-level RISC-V 64-bit system simulator.
//! RISC-V Bit-Manipulation and Scalar Cryptography Extensions.
//!
//! This module covers the instruction encodings for:
//! - `Zba`: Address generation (sh*add, add.uw, slli.uw)
//! - `Zbb`: Basic bit manipulation (clz, ctz, cpop, rotates, byte-reversal, etc.)
//! - `Zbc`: Carry-less multiplication (clmul, clmulh, clmulr)
//! - `Zbs`: Single-bit operations (bclr, bext, binv, bset)
//! - `Zbkb`: Bitwise operations for cryptography (brev8, pack, packh, packw)
//! - `Zbkx`: Crossbar permutations for cryptography (xperm4, xperm8)
//!
//! These instructions share the `OP_REG`, `OP_REG_32`, `OP_IMM`, and `OP_IMM_32`
//! opcodes with the base integer and M extensions, differentiated by their
//! `funct7`/`funct3` combinations.
//!
//! # Structure
//!
//! - `funct7`: Extension selectors for R-type instructions.
//! - `funct3`: Function codes identifying specific operations.

pub mod funct7;

pub mod funct3;