DOCS / VERIFICATION

Verification

"Verified down to the atom" is the aim. This file says how close each layer can get today, with sources, and lists what must still be trusted. Research date for everything below: 2026-09-28, unless a line says otherwise.

Grades

Every claim about Tentzhen carries one of these, plus a referent (see CLAUDE.md):

The published spec sheet will carry a grade and a referent on every number.

The stack, layer by layer

layerbest grade reachable todayhow
Custom gateware cores (capture, trigger, DDS)proven / checkedAmaranth Assert/Assume/Cover + SymbiYosys
LiteX SoC glue (Migen)testedMigen has no assertion statements; LiteX has no SBY flow (0 hits)
Synthesis outputchecked, per build, per designeqy (RTL vs netlist equivalence); eqy itself is unverified
Bitstream reproducibilityunknown → measured in Phase 0build twice from a pinned Nix toolchain, compare hashes
VexRiscv soft coretrustedriscv-formal covers only the FormalSimple config (rv32i, no CSR/MMU/caches), bounded to 20–30 cycles; LiteX's variants are not covered
Soft-core firmware (Rust)checked on pure logicKani (no inline asm support)
Pico limit enforcerchecked limit logic + trusted kernel isolationKani on the limit logic (firmware/enforcer), for one input from any state; see Tock below
Host tools (Rust)tested, checked where it paysunit tests, Kani
Analog front endmeasuredngspice first, then the bench
ADC/DAC modulesmeasuredincoming QA on every unit
Silicon (ECP5, RP2040/RP2350), toolchains (Yosys, nextpnr, Trellis, rustc/LLVM)trusted—

Where seL4 and Pancake fit — and don't, on this hardware

So neither applies to the VexRiscv soft core or the Pico. They become relevant if a host or instrument controller ever moves to an RV64 or ARMv8 part with an MMU. That is not planned.

What does apply: Lightbulb, on the same FPGA family

Erbsen et al., PLDI 2021 (adam.chlipala.net/papers/LightbulbPLDI21/LightbulbPLDI21.pdf): one Coq theorem covers an RV32I Kami processor, the bedrock2 compiler, SPI and Ethernet-chip drivers and the application, against an I/O-trace specification. It ran on a Lattice ECP5-85k, built with Yosys and nextpnr. Its trusted base included a ~200-line Verilog wrapper, Kami→Bluespec extraction, the Bluespec compiler, Yosys, nextpnr and Coq. It proves no liveness or timing, and ran about 10× slower than an unverified core (5.5 ms vs 0.5 ms for the same job).

Research track, not a plan: in Tentzhen the sample path is gateware, and the CPU only configures and moves buffers. Whether that makes a slow, proven control core acceptable is unknown, and so is whether a Kami core fits the Colorlight's ECP5-45F next to the capture logic (Lightbulb used an 85k). Both are measurable once Phase 2 exists.

Tock

TickTock (SOSP 2025, ranjitjhala.github.io/static/sosp25-ticktock.pdf) is a fork of Tock that verifies process isolation with Flux on all ARMv7-M platforms and three RV32 platforms (which three is unknown). Neither Pico is in its stated scope: upstream Tock runs the RP2040 as ARMv6-M (cortex-m0p) and the RP2350 as ARMv8-M (cortex-m33). So the enforcer's kernel isolation is trusted. Upstream Tock also has a litex_vexriscv chip and a LiteX Arty board; whether the soft core should run Tock rather than bare metal is an open question.

Toolchain trust

Trusted base

Everything assumed, not shown, is an entry in trusted-base.toml. A claim that rests on one names its id as its trusted referent (trusted = "dps5005"), and one that names no entry is refused: by crates/records (a_trusted_referent_names_an_entry_in_the_trusted_base) and by the warehouse's foreign keys (the_database_refuses_what_the_records_refuse). Shrinking the list is the long-term work.

Written in docs/verification.md, on main; this page is made from it.