P04 — Caliptra: run the open RoT-for-Measurement block (DICE identity + measured boot)
Status
red· Claim PC2 · Corpus anchor L4 §0–§2; maturity M1; registrycaliptra-web/caliptra-repo(trust High) · Effort XL · Execution host FPGA/dev board (Verilator sim default)
What it proves
PC2 — Caliptra is a reusable, open-source Root of Trust for Measurement block for datacenter-class SoCs (CPU/GPU/DPU/TPU), delivering device identity, measured boot, and attestation — and it exists as spec + RTL + ROM + firmware that a user can build and run. The corpus files this under “Exists but needs maturity” (M1): design exists, no production-silicon claim found. Our job here is to prove the first half of that row — the design runs — not the second half (shipping) which stays a boundary (B09). “Proven” here means either the Rust emulator or the Verilator RTL simulation has booted the ROM and emitted DICE/CDI identity and attestation artifacts.
Why it matters
The corpus anchors Caliptra at L4 §0–§2 and files it at maturity M1 — “Exists but needs maturity”: design exists, no production-silicon claim found. The thesis needs an open RoT-for-Measurement block that actually executes, because the honest split between “the design runs” and “it ships in a GPU” is itself one of the book’s load-bearing boundary arguments. If neither engine ran, the M1 row would collapse to “design exists on paper”.
Why this, not that
| We do (Y) | We don’t (X) | Because |
|---|---|---|
| Run Caliptra’s RTL through its own Verilator simulation | Believe “RTL exists” on repo README | Proves the block executes, generates DICE/CDI identity, and emits measured-boot/attestation artifacts. |
| Also run the Rust emulator (caliptra-sw host model) as a fast path | Only the full RTL sim | The Rust emulator is the firmware CI’s own host harness; if the Verilator toolchain fights us, the emulator still proves the ROM/firmware boot flow and DICE outputs — two independent engines > one. |
| Report exactly which path ran | Conflate “simulation passed” with “ships in a GPU” | The corpus’s own honest split (M1) is the model — we mirror it. |
What you need
- Linux server, Docker available (Caliptra docs assume Linux; container is cleanest).
- ~20 GB disk for the RTL clone + toolchain.
- Time: Verilator L0 compile is heavy (10–40 min first pass). The Rust emulator is fast.
How to run it
cd poc/P04-caliptra— enter this PoC’s directory.bash scripts/01-fetch.sh— clones caliptra-rtl (tagged) + caliptra-sw.bash scripts/02-sw-emulator.sh— FAST: cargo tests on the Rust emulator (DICE/CDI boot).bash scripts/03-rtl-verilator.sh— HEAVY: Verilator L0 regression on the RTL (Docker).bash scripts/04-collect-evidence.sh— summarizes what each path emitted.
What “done” looks like
EITHER path must produce the expected artifact:
# Emulator path (02):
bash scripts/02-sw-emulator.sh
# MUST print: POC-P04-OK-EMULATOR and evidence of ROM boot / CDI / DICE-derived keys# RTL path (03):
bash scripts/03-rtl-verilator.sh
# MUST print: POC-P04-OK-RTL (Verilator L0 regression runs; boot/attest messages seen)Run both if server time allows — two engines is stronger evidence.
Where the evidence goes
Copy into evidence/:
repo_commits.txt— caliptra-rtl + caliptra-sw SHAs.emulator.log— ROM boot lines, DICE/CDI identifiers.rtl_regression.log— Verilator L0 output.attest_artifact.*— any attestation/cert/CSR the sim emitted.
What this does not prove
- Tag, not assets: Caliptra releases are consumed by checking out the git tag (repo README explicitly: ignore release assets, see issue #471).
- No production-silicon claim: nothing here proves Caliptra is inside an H100/TPU. The report must say “the design runs; shipping status remains unproven” (corpus M1).
- The RTL README’s env vars (
CALIPTRA_WORKSPACE,CALIPTRA_ROOT,CALIPTRA_PRIM_ROOT,CALIPTRA_PRIM_MODULE_PREFIX) are required; the script sets them — don’t reorder dirs. - VCS/QVIP are commercial; the script deliberately uses the Verilator path so it is fully open-source. If the repo’s Makefile demands AXI4PC, document the fork in the log rather than improvising (STOP condition).