Initial commit: Fabrilis docs, rules and deterministic core

Docs (architecture, decisions, coupling, determinism, UI, references), code rules enforced by tools/limits, deterministic core with units, time, math, sched, snapshot, vec and rng, plus smoke tests. ref/ stays out of git.
This commit is contained in:
Loki 2026-11-16 19:09:10 +01:00
commit 878d144b77
221 changed files with 5316 additions and 0 deletions

16
crates/cpu/Cargo.toml Normal file
View file

@ -0,0 +1,16 @@
[package]
name = "fabrilis-cpu"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
publish = false
[lints]
workspace = true
[dependencies]
fabrilis-core = { path = "../core" }
[build-dependencies]
fabrilis-limits = { path = "../../tools/limits" }

5
crates/cpu/build.rs Normal file
View file

@ -0,0 +1,5 @@
//! Enforces the repository rules at build time (see tools/limits).
fn main() {
fabrilis_limits::enforce_crate();
}

View file

@ -0,0 +1 @@
//! fabrilis-cpu :: api - stub (see docs/ARCHITECTURE.md)

3
crates/cpu/src/lib.rs Normal file
View file

@ -0,0 +1,3 @@
//! Cpu trait and implementations: riscv (RV32IMAC, RV64GC), arm/avr later
pub mod api;
pub mod riscv;

View file

@ -0,0 +1 @@
//! fabrilis-cpu :: riscv/csr - stub (see docs/ARCHITECTURE.md)

View file

@ -0,0 +1 @@
//! fabrilis-cpu :: riscv/decode - stub (see docs/ARCHITECTURE.md)

View file

@ -0,0 +1 @@
//! fabrilis-cpu :: riscv/exec - stub (see docs/ARCHITECTURE.md)

View file

@ -0,0 +1 @@
//! fabrilis-cpu :: riscv/mmu - stub (see docs/ARCHITECTURE.md)

View file

@ -0,0 +1,5 @@
//! fabrilis-cpu :: riscv - stub (see docs/ARCHITECTURE.md)
pub mod csr;
pub mod decode;
pub mod exec;
pub mod mmu;