← Back to documentation
Snapshot of projects/fog-crypto-core/cmmi_synthesis_2026_11_08-2.0.md — 28 Nov 2026

Fog-Crypto Core — CMMI Level 3 Specification Synthesis

Date: 2026-11-08 · Rev: 2.0 (MVP/Phase-2 de-escalation + convergence freeze rule) Project: Fog-Crypto Core (FPGA hardware accelerator, HW/SW co-design) Developer: Helveticore OÜ Estonia Maturity: CMMI-DEV v2.0, Level 3 (Defined) Status: Approved — closes Audit Fog-Crypto Core.docx (2.1/5) and engineering reviews #1–#5; Rev 2.0 right-sizes the scope into an MVP (Phase 1) baseline + Phase 2 hardening backlog.

This document is a dated synthesis of the complete CMMI Level 3 specification set. It is generated from, and kept consistent with, the source artifacts listed in Section 8.


1. Purpose, scope and strategy

Fog-Crypto Core offloads two critical computations from an embedded-Linux IoT gateway CPU:

  1. Authenticated encryption of industrial data streams (data integrity and confidentiality at the source).
  2. Real-time signal pre-processing (CIC filtering, moving averages) of raw sensor/ADC data.

De-escalation strategy (Rev 2.0): the earlier revision loop was escalating (each review fixed one defect but added a new micro-constraint that invited the next defect — hysteresis). Rev 2.0 breaks the loop by freezing a right-sized, industrially-relevant MVP and deferring the hardening to Phase 2. The MVP is still a real, sellable accelerator: 100 MbE covers typical IIoT edge rates (Modbus / OPC UA / MQTT aggregate < 10 Mbit/s) with 10× headroom, and ÷ 2 CPU offload is a concrete, measurable win.

Convergence freeze rule (normative): after this freeze, no review may add a new Mandatory requirement; new findings are Desirable / Phase 2, except a blocking security flaw or a factual correctness error (decision D-17).

Target platform: Zynq UltraScale+ MPSoC — baseline ZU3EG (package = board on hand; SFVC784 is Phase 2).

Two disjoint data paths:

  • Sensor path (DSP): FMC LPC ADC → HP-bank 1.8 V capture (IDELAYE3/ISERDESE3) → CIC / moving-average → pre/post-trigger FIFO + PL_PS_IRQ0 threshold alert.
  • Crypto path: Ethernet 100 MbE → AES-256-GCM enclave → coherent SG-DMA (S_AXI_HPCx_FPD) → PL MAC (802.3x PAUSE + tx_er fail-safe) → egress.

2. Strategic KPIs

KPIMVP (Phase 1)Phase 2
CPU offload÷ 2 (≤ 50 % of software baseline)÷ 10 (≤ 8.5 %)
Line-rate encryption100 MbE: ≥ 0.149 Mpps @ 64 B, ≥ 97.5 Mbps goodput @ 1518 B1 GbE: ≥ 1.488 Mpps @ 64 B
Crypto clock≥ 150 MHz≥ 250 MHz
Bounded latencyAES ≤ 100 cycles, IRQ→C ≤ 5 µs, end-to-end ≤ 20 µs (excl. 12.14 µs wire)unchanged
Sensor latencyPL_PS_IRQ0 ≤ 2 µs (≤ 50 µs to handler)unchanged

3. Requirements (25, tiered)

Each requirement carries a measurable acceptance criterion and a tier: Mandatory (M, MVP) or Desirable (D, Phase 2). Full text in requirements/REQ.md.

Functional (all Mandatory)

  • FUNC-001 — AES-256 engine (PL) — bit-exact vs. NIST CAVP; ≥ 1 block/16 cycles.
  • FUNC-002 — Signal pre-processing (PL) — CIC/moving-average; group delay < 1.5 µs; PL_PS_IRQ0 ≤ 2 µs + pre/post-trigger window; W1C ack → read-back + dsb sy.
  • FUNC-003 — Raw ADC acquisition (FMC LPC) — HP banks (1.8 V), IDELAYE3/ISERDESE3 eye cal.

Performance (all Mandatory; hardening deferred)

  • PERF-001 — CPU offload ÷ 2 — ≤ 50 % of the software baseline on 100 MbE (1500 B).
  • PERF-002 — Line-rate (100 MbE) — ≥ 0.149 Mpps @ 64 B, ≥ 97.5 Mbps goodput @ 1518 B, zero loss; clock ≥ 150 MHz; iterative AES + pipelined GHASH.
  • PERF-003 — Bounded latency — AES ≤ 100 cycles; IRQ→C ≤ 5 µs; end-to-end ≤ 20 µs (excl. wire); sensor PL_PS_IRQ0 ≤ 2 µs.

Security

  • SEC-001 — Key confidentiality (BBRAM) — M — key in BBRAM, never in AXI-Lite/MMIO; JTAG locked. (Phase 2: CSU PUF + Black Key Blob + AES-256-KW + RTL TZ filter.)
  • SEC-002 — AES-256-GCM + fail-safe + store-and-forward — M — tag verify; decryption holds plaintext until tag_ok, purges on failure; tx_er poisoning.
  • SEC-003 — Side-channel resistance — D (Phase 2) — DOM masking + entropy + TVLA |t| < 4.5. MVP is unmasked.
  • SEC-004 — Cryptographic validation — M — NIST CAVP (MVP); FIPS 140-3 KAT → Phase 2.
  • SEC-005 — Nonce/IV uniqueness (96-bit) — M — Salt[31:0] ‖ Counter[63:0]; no runtime eFUSE writes; session-key rotation on reset/wrap.

Interface (all Mandatory; hardening deferred)

  • IF-001 — Coherent DMA — S_AXI_HPC (ACE-Lite "no L2 allocation"); AxPROT=3'b010 hard-wired; payloads 4'b1010 (no Write-Allocate). (Phase 2: OCM / batched B≥8 rings.)
  • IF-002 — VFIO from Phase 1 — vfio-platform + vfio_reset_handler; no UIO//dev/mem.
  • IF-003 — Dual-domain interrupts — coalesced IRQ (crypto) + non-coalesced PL_PS_IRQ0 (sensor). (Phase 2: NAPI-style PMD.)
  • IF-004 — DMA ownership + barriers — Status/Submission rings; 64-byte alignment; ldar/stlr. (Phase 2: doorbell batching B∈[8,32].)
  • IF-005 — CDC correctness — async FIFOs; scoped XDC + set_bus_skew.
  • IF-006 — ICD — design/ICD.md; register maps, 96-bit IV, PL_PS_IRQ0/1, IDELAYE3 cal.

Hardware constraints (all Mandatory; hardening deferred)

  • HW-001 — FMC LPC & SelectIO — VADJ 1.8 V; ADC LVDS on HP banks (no shifter on native LVDS); HD banks → slow GPIOs. (Phase 2: SFVC784.)
  • HW-002 — SWaP & timing — ≤ 70 % ZU3EG; WNS ≥ 0 ns @ ≥ 150 MHz. (Phase 2: 250 MHz.)
  • HW-003 — OOC synthesis gate — unmasked core out-of-context on ZU3EG. (Phase 2: masked, ≤ 15k LUT enclave.)

Software partitioning (all Mandatory; hardening deferred)

  • SW-001 — Data plane in C — core-pinned, SCHED_FIFO; PL MAC + VFIO; ldar/stlr; ARP/LLDP via lockless IPC ring. (Phase 2: PMD, bounded L2D_CACHE_REFILL.)
  • SW-002 — Control plane ≤ 100 Hz — MDIO via mdio_bus/netlink or VFIO (no UIO); **PAUSE 100 % in PL MAC hardware**; ARP via IPC ring.

Verification & validation (all Mandatory)

  • VV-001 — UVM — SVA + coverage ≥ 95 % + fault injection (truncation, tag corruption, KAT fail, tx_er, AxPROT[1] rejection, store-and-forward purge).
  • VV-002 — Reference-model co-simulation — bit-exact golden model in CI.
  • VV-003 — HIL / on-board benchmark — 100 MbE throughput, ÷ 2 CPU, latency, ≤ 2 µs IRQ on ZU3EG.

Phase 2 hardening backlog (Desirable, non-blocking)

1 GbE + 64-byte stress · ÷ 10 CPU · DPA masking + TVLA · FIPS 140-3 KAT · CSU PUF + Black Key Blob

  • AES-256-KW + RTL TZ filter · PMD + doorbell batching + ≤ 0.25 refill/pkt · XCZU3EG-SFVC784 ·

≥ 250 MHz · masked-core OOC budget. (Full table in REQ.md §2.1.)

4. Traceability and audit closure

Bidirectional traceability is maintained in requirements/RTM.md.

  • Original audit (Audit Fog-Crypto Core.docx) — closed (NC/RD-1/2/3, VER/VAL, §3–§7).
  • Engineering reviews #1–#5 — closed one-to-one in RTM.md; the findings were real, and their corrections are retained. Rev 2.0 does not discard them: it re-tiers the hardening items (masking, PMD, PUF, SFVC784, 250 MHz) as Phase 2 while keeping all correctness fixes (store-and-forward, CDC scoping, no-allocate semantics, 96-bit IV, VFIO, PAUSE-in-hardware) as Mandatory.
  • De-escalation closure (Rev 2.0) — the MVP-vs-Phase-2 relaxation table in RTM.md.

5. Design synthesis (IEEE 1016)

Full text in design/SDD.md; HW/SW contract in design/ICD.md.

  • HW/SW partitioning: high-rate streams in PL or core-pinned C; Python = control plane only.
  • PS/PL coherent DMA boundary: SG-DMA over S_AXI_HPCx_FPD (CCI-400 + SMMU/IOMMU), with correct ACE-Lite "no L2 allocation" semantics; payloads 4'b1010 (no Write-Allocate); ARMv8 ldar/stlr ownership; no AxCACHE "allocate" assumption.
  • Network L2 split: PL MAC + VFIO; 802.3x PAUSE in PL MAC hardware; ARP via lockless ring; MDIO via mdio_bus/netlink or VFIO.
  • Security enclave (MVP): BBRAM key (no AXI-Lite exposure); AES-256-GCM with **store-and-forward decryption**; 96-bit IV (salt ‖ counter); tx_er fail-safe. (Phase 2: CSU PUF + AES-256-KW + RTL TZ filter; DPA masking.)
  • Signal integrity & DSP sensor path: FMC LPC ADC on 1.8 V HP banks (IDELAYE3/ISERDESE3); CIC asserts PL_PS_IRQ0 (≤ 2 µs) with group delay < 1.5 µs; W1C ack → read-back + dsb sy.
  • Modules: §4.1 crypto enclave (unmasked, store-and-forward), §4.2 DSP CIC + alert FIFO, §4.3 SG-DMA + Status/Submission rings, §4.4 VFIO driver, §4.5 C data plane, §4.6 Python control plane.

6. Decisions (DAR)

Full text in design/decision-log.md.

#DecisionChoice
D-1Reference line100 MbE (MVP); 1 GbE Phase 2
D-2Target FPGAZU3EG (package = board on hand; SFVC784 Phase 2)
D-3AES mode & sizingAES-256-GCM, ≥ 1 block/16 cycles + pipelined GHASH
D-4Key managementBBRAM (MVP); CSU PUF + AES-256-KW + RTL TZ filter (Phase 2)
D-5DMA topology & cachingS_AXI_HPC (ACE-Lite no-alloc) + 4'b1010 payloads
D-6Driver modelVFIO from Phase 1 (no UIO//dev/mem) + vfio_reset_handler
D-7Data-plane languageC + ARMv8 ldar/stlr
D-8Build/toolchainmeson+gcc / uv; Phase 2 strict Yocto
D-9Memory modelZero-copy inside the C data plane
D-10Nonce/IV construction96-bit GCM IV = 32b salt ‖ 64b counter
D-1164-byte saturationPMD (Phase 2); coalescing only in MVP
D-12FMC I/O bank routing1.8 V HP banks (no shifter on native LVDS)
D-13Network egress & fail-safePL MAC + VFIO + tx_er
D-14L2/PHY & PAUSE splitPAUSE in PL MAC HW; ARP via IPC ring; MDIO via mdio_bus/VFIO
D-15DSP sensor alert pathNon-coalesced PL_PS_IRQ0 (≤ 2 µs) + AXI-Lite + BRAM FIFO
D-16Decryption modeStore-and-Forward (tag_ok gate, purge on failure)
D-17De-escalation & freeze ruleMVP + Phase 2 backlog; no new Mandatory after freeze

7. Verification and measurement plan

  • Verification (testbench/README.md): UVM/SVA/coverage ≥ 95 % + fault injection; golden-model co-simulation; HIL benchmark. MVP scope: truncation, tag corruption, KAT failure, tx_er, AxPROT[1] rejection, store-and-forward purge, CDC, CAVP vectors, OOC gate (unmasked).
  • Measurement (performance/README.md): continuous 100 MbE crypto stream (64 B / 1518 B) + ADC sensor stream; ≥ 10 runs (p50/p95/max); PMU CPU_CYCLES confirming ÷ 2; artifacts cpu-offload.md, throughput.md, latency.md, utilization-timing.md.

8. Document map (source artifacts)

ArtifactPathRole
Requirementsrequirements/REQ.mdRDM — 25 tiered requirements (Rev 2.0)
Traceabilityrequirements/RTM.mdBidirectional RTM + audit & reviews closure + de-escalation
Designdesign/SDD.mdTS — IEEE 1016 design description (Rev 2.0)
Decisionsdesign/decision-log.mdDAR — D-1 … D-17
Interface Controldesign/ICD.mdICD — register map, 96-bit IV, descriptor format, DSP IRQ
Testbench plantestbench/README.mdVV — UVM, fault-injection & HIL plan
Performance planperformance/README.mdM&A — PMU, throughput & dual-path latency plan
Project charterREADME.mdScope, KPIs, risks, milestones
Source auditrequirements/Audit Fog-Crypto Core.docxBaseline audit (kept as-is)
Source specrequirements/Spécification CMMI Niveau 3 - Projet Fog-Crypto Core.docxBaseline spec (kept as-is)

Source: raw markdown — published as-is from the source repository.