rysk_core/lib.rs
1#![allow(clippy::unit_arg)]
2//! Rysk Core assists in the creation of RISCV virtual machines, providing virtual harts.
3//!
4//! Usage:
5//! - Implement the `system::Mmu` trait
6//! - Create an instance of `system::Core` with `register::Register*` as the generic type
7//! - Execute instructions using `system::Core::execute()`
8
9pub mod variant;
10pub mod register;
11pub mod system;
12
13pub use system::{ Core, Mmu };
14pub use register::{ Register, Register32, Register64, RegisterSize };
15
16#[cfg(feature = "ext-csr")]
17pub mod csr;
18
19pub mod version {
20 pub const PATCH: u8 = 3;
21 pub const MINOR: u8 = 0;
22 pub const MAJOR: u8 = 0;
23}