Skip to main content

Crate ab_riscv_primitives

Crate ab_riscv_primitives 

Source
Expand description

Composable RISC-V primitives (instructions, registers) and abstractions around them.

The primitives are designed to be generic over the number of general purpose registers, and a macro system allows composing base ISA like RV64 with a desired set of standard or custom extensions/instructions. Trait abstractions are designed to allow expressing generic APIs without hardcoding specific types whenever possible.

The immediate needs dictate the current set of available instructions and extensions. Consider contributing if you need something not yet available.

ab-riscv-interpreter crate contains a complementary interpreter implementation, but these primitives are completely independent.

Does not require a standard library (no_std) or an allocator.

Modulesยง

instructions
This module defines the RISC-V instruction set instructions
registers
RISC-V registers