# Vendored Aquarius Engine & Reference Modules ## 1. Aquarius Viewer (`aquarius-viewer`) - Source repository: aquarius-viewer (https://visualizer.aquariuslab.org) - Source commit: `a24d9b573144bd97b53a621f8ca4aa509a21b8e0` (`Ensure first click on bottom bar always switches state during glide or idle fade`) - Vendored at: `2026-11-28` - Status: Copied verbatim with zero local edits. | Vendored Path | Source Path | SHA-256 | | --- | --- | --- | | `vendor/aquarius-viewer/math/junction.ts` | `src/math/junction.ts` | `120b7b15b80c631f88eb77ed324b3a127f6f49ee4119739649c0cce232643d0e` | | `vendor/aquarius-viewer/math/program.ts` | `src/math/program.ts` | `316b22f28681fafc61b8641600c2bb69fefc8c6854a7c1406a8e7788e8534bb2` | | `vendor/aquarius-viewer/computer/netlist.ts` | `src/computer/netlist.ts` | `737cff79e586262306e191631e1bddabc30277da0fc17fa4f2e93490d7590fed` | | `vendor/aquarius-viewer/computer/junctionMemory.ts` | `src/computer/junctionMemory.ts` | `d6fa7ce54e89e20f1d6ad8c370da3f33646807ab0e90d24dbf5e2c725d28c840` | | `vendor/aquarius-viewer/computer/unifiedNetlist.ts` | `src/computer/unifiedNetlist.ts` | `08dd4947dff017387dcbd2dc0f47c67aae441a5fb58580f82c7e91fc59b13f71` | ## 2. Aquarius Engine (`https://github.com/aquariuslab/aquarius`) - Source repository: `https://github.com/aquariuslab/aquarius` - Source commit: `45e467381ddb72bfa6b6dd9baf388e44a9a7d609` (`Reversible form, its Lean proofs and the two-vessel swap check`) - Vendored at: `2026-11-28` - Status: Copied verbatim with zero local edits. | Vendored Path | Source Path | SHA-256 | | --- | --- | --- | | `vendor/aquarius-engine/junction.ts` | `engine/src/junction.ts` | `120b7b15b80c631f88eb77ed324b3a127f6f49ee4119739649c0cce232643d0e` | | `vendor/aquarius-engine/program.ts` | `engine/src/program.ts` | `7aa520978ede38364636be99599d9c75145b1f983f94c44d37c898a20ec2079e` | | `vendor/aquarius-engine/netlist.ts` | `engine/src/netlist.ts` | `c61dc044d2f495be7e4ddaaf222eaed9b52649c4cbc543eaffdfa1824356a6be` | | `vendor/aquarius-engine/junctionMemory.ts` | `engine/src/junctionMemory.ts` | `dfbca01b498947ad8e20a1226f2ed331a73b4bb48402da0d8462708b803f0daf` | ## 3. Reference Emulator Provenance (`mini-rv32ima`) - Source repository: `https://github.com/cnlohr/mini-rv32ima` (MIT / BSD / CC0) - Source commit: `84858f58cb41899705e2ff2d6ee3b2d5c0795bfe` - Vendored at: `2026-11-28` | Vendored Path | Source Path | SHA-256 | | --- | --- | --- | | `ref/mini-rv32ima.h` | `mini-rv32ima/mini-rv32ima.h` | `049b916d9ad628fbe9f67fd3401412c0100b0369efc93acdf81c0c0d51293dc1` | `ref/mini-rv32ima-spec.h` is derived from `ref/mini-rv32ima.h` with minimal RISC-V Privileged/Unprivileged specification conformance adjustments for exact lockstep against the 76/76 `riscv-tests`-verified Aquarius junction core: - `mvendorid` returns `0x00000000` (spec) instead of `0xff0ff0ff`; `misa` returns `0x40101101` (`IMA+U`) instead of `0x40401101`. - `MRET` sets `mstatus.MPP = 0` per RISC-V Privileged Spec Table 7.6 (fixing the upstream `startextraflags` bit copy) and clears the LR/SC reservation. - `mstatus`, `mie`, `mtvec`, `mepc` apply standard WARL write masks; `ECALL` sets `mtval = 0`; `WFI` leaves `mstatus.MIE` unmodified; traps clear the LR/SC reservation; `SC.W` checks word-aligned reservation validity and clears reservation. - CLINT timer interrupt fires on `mtime >= mtimecmp` (including from U-mode regardless of `mstatus.MIE`). ## 4. Linux Kernel Image & Device Tree - Upstream image source: `https://github.com/cnlohr/mini-rv32ima-images/raw/master/images/linux-6.5.12-rv32nommu-cnl-1.zip` (`Image`, Linux `6.5.12mini-rv32ima`, 2,492,128 bytes uncompressed, built from `cnlohr/mini-rv32ima`'s Buildroot 2023/GCC 13.2.0 uClibc nommu RV32IMA configuration with BusyBox initramfs). - Device tree: `boot/aquarius_16mb.dts` / `boot/aquarius_16mb.dtb` derived from `cnlohr/mini-rv32ima`'s `sixtyfourmb.dts`, sized to 16 MB (`0xffe000`) for `32 x U_22` A13 RAM, with `compatible = "ns16550a"` and `bootargs = "earlycon=uart8250,mmio,0x10000000 console=ttyS0"`.