Usage
This section documents the runnable example flows in examples/. Each page
maps directly to one example directory and follows the same common contract:
build.pyPython setup only. Generates one immutable case directory undercases/<case_id>/and refreshescases/latest.run.pySystemVerilog compile and simulation only. Uses the built case as input and writes hardware outputs underout/.read.pyPython readback and verification only. Loads the built case and hardware outputs, then reports the final checks.
This split keeps the workflow consistent across solver and decoder examples:
build the case once,
run the hardware simulation once,
read back and check the result.
Available flows
Gauss-Jordan solve Direct
A X = Bsolve over \(\mathrm{GF}(2)\) against the reference systolic solver.Gauss-Jordan solution existence Uses the same solver path to determine whether
A x = Bis consistent.Layered min-sum decode Standalone row-layered normalized min-sum decode on Stim-backed input data.
OSD decode Hardware-side ranking, basis selection, reduced solve, and reconstruction from a Stim-backed syndrome.
BP-OSD decode Sequential composed flow: min-sum BP front-end followed by OSD in one SV run.