← Back to documentation
Snapshot of projects/fog-crypto-core/requirements/RTM.md — 28 Nov 2026
Fog-Crypto Core — Requirements Traceability Matrix (RTM)
Bidirectional traceability: every requirement maps to a design element (design/SDD.md §), a component (src/), a verification item (testbench/), and a measured KPI (performance/). This matrix is the artifact required by the audit (NC/RD-3: "unique IDs + bidirectional RTM").
Rev 2.0 de-escalation: rows tagged MVP are the frozen Mandatory baseline; rows tagged Phase 2 are the Desirable hardening backlog (non-blocking). The convergence freeze rule (§0 of REQ.md, decision D-17) forbids new Mandatory requirements after this freeze.
Matrix
| Requirement | Type | Design (SDD §) | Component (src/) | Verification (testbench/) | KPI (performance/) |
|---|---|---|---|---|---|
| REQ-FOG-FUNC-001 | Functional | §4.1 Crypto engine | crypto-engines/ | UVM AES vectors (VV-001) | line-rate throughput |
| REQ-FOG-FUNC-002 | Functional | §4.2 DSP pre-processing | crypto-engines/ (DSP) | reference-model co-sim + CIC group delay + W1C ack | CPU ÷ 10 |
| REQ-FOG-FUNC-003 | Functional | §3.3 Sensor path | bus-interfaces/ (FMC) | ADC ingest sim + CDC + IDELAYE3 eye cal | signal integrity |
| REQ-FOG-PERF-001 | Performance · MVP | §3.3 Line-rate model | host-integration/ + crypto-engines/ | CPU before/after bench | cpu-offload.md (÷ 2 @ 100 MbE) |
| REQ-FOG-PERF-002 | Performance · MVP | §3.3, §4.1 | crypto-engines/ | 0.149 Mpps / 97.5 Mbps goodput (100 MbE) + GHASH | throughput.md |
| REQ-FOG-PERF-003 | Performance | §3.2, §3.3 | rtl/ + host-integration/ | latency (excl. 12.14 µs wire) | latency.md |
| REQ-FOG-SEC-001 | Security | §3.4 Key management | crypto-engines/ (CSU/BBRAM) | key provisioning (TZ filter + HPM0_LPD + CSU PUF + AES-256-KW) + JTAG lock | security review |
| REQ-FOG-SEC-002 | Security | §4.1 AES-256-GCM | crypto-engines/ (GHASH) | NIST CAVP + store-and-forward tag_ok + tx_er | crypto validation |
| REQ-FOG-SEC-003 | Security · Phase 2 | §4.1 (masked S-box) | rtl/ (masked S-box) | TVLA / CPA campaign (Phase 2) | side-channel report |
| REQ-FOG-SEC-004 | Security | §4.1, §7 | crypto-engines/ | KAT + CAVP regression | crypto validation |
| REQ-FOG-SEC-005 | Security | §4.1 Nonce counter | crypto-engines/ | nonce monotonicity + reset/replay test | crypto validation |
| REQ-FOG-IF-001 | Interface | §3.2 AXI topology | bus-interfaces/ | coherent-DMA + OCM/batched rings + 1010 payloads | latency/CPU |
| REQ-FOG-IF-002 | Interface | §4.4 Kernel driver | host-integration/ (VFIO) | vfio-platform bind test | driver bench |
| REQ-FOG-IF-003 | Interface | §4.3 SG-DMA | rtl/ + host-integration/ | dual-domain IRQ (coalesced + PL_PS_IRQ0) | CPU bound |
| REQ-FOG-IF-004 | Interface | §4.3 Descriptor ring | rtl/ (DMA) | Status/Submission ring split + race test | line-rate |
| REQ-FOG-IF-005 | Interface | §3.5 Clocking/CDC | rtl/ (CDC) | CDC report + scoped XDC + set_bus_skew | timing report |
| REQ-FOG-IF-006 | Interface | design/ICD.md | bus-interfaces/ | ICD contract tests | — |
| REQ-FOG-HW-001 | Constraint | §3.5 Signal integrity | bus-interfaces/ (FMC) | VADJ + SFVC784 HP-bank LVDS (no shifter) + IDELAYE3 | HW audit |
| REQ-FOG-HW-002 | Constraint · MVP | §3.5, §1 | rtl/ | OOC gate + synthesis + STA (≥ 150 MHz) | utilization-timing.md |
| REQ-FOG-HW-003 | Constraint | §3.5, §1 | rtl/ | OOC synthesis report (masking frozen, ZU3EG) | utilization-timing.md |
| REQ-FOG-SW-001 | Functional | §4.5 Data plane | host-integration/ (C data plane, PL MAC + VFIO) | PMD batching (B∈[8,32]) + EtherType + vfio_reset_handler | cpu-offload.md |
| REQ-FOG-SW-002 | Constraint | §4.6 Control plane | host-integration/ (control) | control-loop + MDIO/PHY ownership | control telemetry |
| REQ-FOG-VV-001 | Verification | §7 Verification | testbench/ (UVM) | coverage ≥ 95 % + fault injection | quality |
| REQ-FOG-VV-002 | Verification | §7 Verification | testbench/ (golden model) | co-sim CI | quality |
| REQ-FOG-VV-003 | Verification | §7 Verification | testbench/ (HIL) | on-board benchmark (PMU L2D_CACHE_REFILL) | all KPI reports |
Coverage rules
- No orphan requirement: every row above has all five columns filled (a
—is only allowed where the requirement has no numeric KPI, e.g. the ICD contract). - No orphan design/component: the reverse direction is tabulated below (component → requirements) and mirrored in each component README.
- Each row must be checked off in
performance/before any release (charter rule).
Reverse traceability (component → requirements)
| Component | Requirements |
|---|---|
src/crypto-engines/ | FUNC-001, FUNC-002, PERF-001, PERF-002, SEC-001, SEC-002, SEC-004, SEC-005 |
src/bus-interfaces/ | FUNC-003, IF-001, IF-006, HW-001 |
src/host-integration/ | PERF-001, PERF-003, IF-002, IF-003, SW-001, SW-002 |
src/rtl/ | PERF-003, SEC-003, IF-003, IF-004, IF-005, HW-002, HW-003 |
testbench/ | VV-001, VV-002, VV-003 |
Each component README lists the identical set (see src/*/README.md and testbench/README.md).
Audit closure map
| Audit finding (§) | Remediated by |
|---|---|
| NC/RD-1 CPU ÷ 10 not verifiable | REQ-FOG-PERF-001 (baseline + acceptance) |
| NC/RD-2 line-rate ambiguous | REQ-FOG-PERF-002 (frozen 1 GbE reference) |
| NC/RD-3 no IDs / no RTM | §0 IDs + forward matrix + reverse table above |
| VER/VAL no UVM / no crypto vectors | REQ-FOG-VV-001, SEC-004 |
| §3.1 SWaP/timing budget | REQ-FOG-HW-002 (≤ 70 % util, ≥ 250 MHz) |
| §3.2 key in clear / no mode / no side-channel | SEC-001, SEC-002, SEC-003 |
| §3.3 CDC + FMC voltage | IF-005, HW-001 |
| §4.1 AXI HP cache trap | IF-001 (HPC + CCI-400) |
| §4.2 UIO→VFIO | IF-002 (VFIO from Phase 1) |
| §5 Python data plane | SW-001, SW-002 |
| §6 IRQ storm + ownership | IF-003, IF-004 |
| §7 risk 1 — qualitative, non-measurable reqs | PERF-001/002/003 + this RTM |
| §7 risk 2 — AES key in clear | SEC-001 |
| §7 risk 3 — AES mode unformalized | SEC-002 |
| §7 risk 4 — Python data plane | SW-001, SW-002 |
| §7 risk 5 — AXI HP latency | IF-001 |
| §7 risk 6 — UIO→VFIO transition | IF-002 |
| §7 risk 7 — FMC I/O integrity | HW-001 |
| §7 risk 8 — IRQ storm | IF-003, IF-004 |
Engineering review closure (2026-11-07)
| Review finding | Remediated by |
|---|---|
| Masked AES-GCM + GHASH + SG-DMA may exceed 70 % LUT on ZU2CG | HW-003 (OOC gate), HW-002, D-2 |
| GHASH 128-bit carry-less multiply timing at 250 MHz | PERF-002 (3–4 pipeline stages) |
| FMC VADJ / HP-bank (≤ 1.8 V) vs 2.5/3.3 V ADC cards | HW-001, FUNC-003, D-12 |
| CCI-400 coherence inactive by default (Linux) | IF-001 (AxCACHE/AxPROT/AxUSER[0]/dma-coherent) |
| SG-DMA descriptor false sharing | IF-004 (64-B cache-line alignment) |
| No native eFUSE→PL key bus | SEC-001 (TrustZone/APB/KEK/tamper) |
| AES-GCM nonce/IV reuse | SEC-005, IF-006 (ICD), D-10 |
| 1.488 Mpps @ 64 B untenable under IRQ (≤ 8.5 % CPU) | PERF-001 (1500-B scope), IF-003, SW-001, D-11 |
Engineering review #2 closure (2026-11-07)
| Review finding | Remediated by |
|---|---|
| VFIO userspace driver vs AF_XDP / raw-socket contradiction | SW-001, D-13 (PL MAC + full VFIO pipeline) |
| Busy-polling PMD reports ~100 % OS CPU | PERF-001 (cycles/packet via PMU, ≤ 400 @ 1.2 GHz) |
| Descriptor OWN/status bidirectional false sharing | IF-004 (Status vs Submission ring split) |
| ZU2CG LUT exhaustion (masked AES + GHASH + DSP) | D-2 (ZU3EG anticipated), HW-003 |
| CCI-400 snoop/L2 thrashing at 64-byte saturation | IF-001 (non-allocating / streaming mode) |
| Crypto APB reachable by non-secure masters | SEC-001 (XMPU/XPPU firewall) |
| Nonce counter reset on warm reboot / partial reconfig | SEC-005 (key renewal / epoch ID) |
| TXS auto-direction shifter jitter / ENOB | HW-001 (unidirectional shifters / HD banks) |
Blanket set_clock_groups -asynchronous scope | IF-005 (scoped XDC) |
Engineering review #3 closure (2026-11-07)
| Review finding | Remediated by |
|---|---|
| GCM feedback loop limits GHASH throughput (1 block / 4 cycles) | PERF-002 (parallel powers of H) |
| ZU2CG placement/routing failure under DPA share isolation | D-2 (ZU3EG definitive), HW-003 |
| Gray-pointer skew corrupting empty/full flags | IF-005 (set_bus_skew) |
| Session key in clear on APB (glitch/side-channel) | SEC-001 (KEK-encrypted + PL-enclave decrypt) |
| L2/PHY ownership undefined without netdev | SW-001, SW-002, D-14 |
| ADC capture-clock skew from shifters/traces | HW-001 (IDELAYE3 / ISERDESE3) |
| PMD 333 ns / 64-B budget (no syscalls/cache-misses) | PERF-001, SW-001 (PMD discipline) |
Engineering review #4 closure (AUD-4.1 … AUD-4.8)
| ID | Defect (Rev 1.3) | Remediated in Rev 1.4 by |
|---|---|---|
| AUD-4.1 | HD banks lack IDELAYE3/ISERDESE3 | FUNC-003, HW-001, D-12 (ADC on 1.8 V HP banks; HD → slow GPIO) |
| AUD-4.2 | 128b/cycle masked AES + 4× GHASH exceeds ZU3EG budget | FUNC-001, PERF-002, HW-002/003 (≥ 1 blk/16 cyc, single 4-stage GHASH) |
| AUD-4.3 | KEK bootstrap unexplained; XMPU/XPPU misapplied to PL | SEC-001, D-4 (ENC_ONLY bitstream / PL PUF + PL AXI Firewall → RTL TZ filter, AUD-5.3) |
| AUD-4.4 | eFUSE OTP wear + incomplete 64-bit IV vs 96-bit NIST | SEC-005, D-10, IF-006 (Salt‖Counter, session-key rotation, zero runtime eFUSE writes) |
| AUD-4.5 | Non-allocating DMA causes ring cache-misses; heavy dmb osh | PERF-001, IF-001, IF-004 (split AxCACHE 1111/1010 → OCM/batched, AUD-5.1; ldar/stlr) |
| AUD-4.6 | D-14 reintroduced /dev/uio; Python can't do PAUSE | IF-002, SW-001/002, D-14 (no UIO; PAUSE in PL MAC HW; ARP via IPC ring) |
| AUD-4.7 | Missing PS/PL interface + latency contract for DSP sensor path | FUNC-002, PERF-003, IF-003, IF-006, D-15 (PL_PS_IRQ0 ≤ 2 µs, AXI-Lite, pre/post-trigger FIFO) |
| AUD-4.8 | Missing crypto fail-safe / frame poisoning on fault | SEC-002, SEC-004, VV-001 (halt + zeroize + tx_er) |
Engineering review #5 closure (AUD-5.1 … AUD-5.8)
| ID | Defect (Rev 1.4) | Remediated in Rev 1.5 by |
|---|---|---|
| AUD-5.1 | HPC = ACE-Lite "no L2 allocation" → "zero refill" fails | PERF-001, IF-001 (OCM or B≥8 batches, ≤ 0.25 refill/pkt) |
| AUD-5.2 | Cut-through decryption leaks unverified plaintext | SEC-002 (store-and-forward tag_ok), PERF-003 (20 µs excl. 12.14 µs wire) |
| AUD-5.3 | Xilinx AXI Firewall ≠ TrustZone filter; APB3 drops AxPROT | SEC-001, D-4 (dedicated RTL TZ filter + HPM0_LPD + hardwire AxPROT) |
| AUD-5.4 | Constant KEK / soft-PUF Fuzzy Extractor cost | SEC-001, D-4 (CSU hardware PUF + Black Key Blob + AES-256-KW) |
| AUD-5.5 | 0 GTH transceivers + 72 HP pins on small packages | HW-001, D-2, D-13 (SFVC784; RGMII/SGMII; no shifter on LVDS) |
| AUD-5.6 | DOM needs fresh entropy + masked H + share-merge guard | SEC-003, HW-003 (≥ 256 b/cyc, H=H0⊕H1, DONT_TOUCH + TCL) |
| AUD-5.7 | MMIO ~60 cyc + no vfio reset handler | SW-001, IF-004, IF-002 (B∈[8,32] batching, EtherType in Status Ring, vfio_reset_handler) |
| AUD-5.8 | CIC group delay + W1C ack ordering | FUNC-002, D-15 (N(R−1)/(2Fs) < 1.5 µs, read-back + dsb sy) |
De-escalation closure (Rev 2.0)
The MVP baseline relaxes KPIs to right-size the first release; the hardening backlog is Phase 2.
| Item | MVP (Mandatory) | Phase 2 (Desirable) |
|---|---|---|
| Line rate | 100 MbE (≥ 0.149 Mpps) | 1 GbE (≥ 1.488 Mpps) |
| CPU offload | ÷ 2 (≤ 50 % of baseline) | ÷ 10 (≤ 8.5 %) |
| Crypto clock | ≥ 150 MHz | ≥ 250 MHz |
| Side-channel | unmasked | DOM masking + TVLA |
| Crypto validation | NIST CAVP | + FIPS 140-3 KAT |
| Key storage | BBRAM | CSU PUF + Black Key Blob + AES-256-KW + RTL TZ filter |
| DMA descriptors | simple HPC (no-allocate) | OCM / batched B≥8, ≤ 0.25 refill/pkt |
| Driver | VFIO + vfio_reset_handler | + PMD, doorbell batching |
| Package | board on hand (HP banks) | XCZU3EG-SFVC784 (156 HP pins) |
| Timing | WNS ≥ 0 @ 150 MHz | WNS ≥ 0 @ 250 MHz |
Freeze rule (D-17): no new Mandatory requirement may be added by later reviews; new findings are Desirable / Phase 2 unless they are a blocking security flaw or a factual correctness error.
Source: raw markdown — published as-is from the source repository.