Two ISO-26262 fault detectors, one register-programmed block
Zen Safety-Glue packages two of the hardware diagnostics an ASIL SoC needs — a SECDED ECC engine and a delayed-lockstep comparator — into one small block you attach to the peripheral bus. The ECC path corrects single-bit and detects double-bit errors in a 32-bit word; the lockstep path catches a diverging redundant core by comparing it against the primary channel delayed N cycles. Each raises its own sticky fault into your safety aggregator. Product / integrator view; every number is sourced from the as-built RTL or marked TBC with an owner.
1. Safety-Glue in one paragraph
Safety-Glue is a register-programmed library of two safety primitives, not part of your functional datapath. The ECC engine takes a 32-bit word and continuously exposes its 7-bit Hsiao check field; to classify a received codeword you write {data, check}, strobe decode, and read back whether it was clean, single-corrected, or double-detected. The lockstep comparator pushes the primary channel ls_a into a delay line and compares it, N cycles later, against the redundant channel ls_b — so a common-cause transient that hits both channels at the same instant is still caught. A double-bit (uncorrectable) ECC error and a lockstep mismatch each drive a separate, sticky, level fault output into your zen_safety aggregator, which owns the chip's safe-state reaction.
- Safety-Glue (ECC + lockstep)
- host / redundant cores / aggregator
- lockstep delay line
2. What it is, at a glance
| Element | Detail | Default | Status |
|---|---|---|---|
| ECC code | (39,32) Hsiao SECDED, all-odd-weight columns | — | exists |
| ECC data / check width | 32-bit data, 7-bit check field | 32 / 7 | exists |
| ECC capability | correct 1 bit, detect 2 bits per word | — | exists |
| SEC / DED counters | saturating | 16-bit | exists |
| Lockstep compare width | redundant-channel width | 32-bit | exists |
| Lockstep delay N | programmable, temporal diversity | 0–7 cyc | exists |
| Mismatch capture | holds diverging ls_b at first mismatch | — | exists |
| Runtime self-test | ECC error-inject + lockstep mismatch-inject | — | exists |
| Fault outputs | separate ECC + lockstep, level, sticky | 2 | exists |
| Inline/streaming ECC port | wrap a memory macro directly | — | TBC |
| Max frequency / area @ node | physical characterization downstream | TBC | TBC |
Sources: Zen Safety-Glue product datasheet; as-built RTL.
3. How a client uses it
- Attach the block to your peripheral bus (one-cycle registered ready) and wire its two fault outputs into separate
zen_safetyfault sources. - ECC service — write a 32-bit word and read its check field to store
{data, check}; to verify a received codeword write it back, strobe decode, and readRESULT/STATUSfor clean / single-corrected / double-detected. - Lockstep — tie your two redundant cores to
ls_a/ls_bwith their valid, program the delay N, and enable; a divergence sets a sticky fault and captures the diverging value. - Prove the diagnostic — exercise the latent-fault self-test at runtime: inject an ECC bit error or force a one-cycle lockstep mismatch, each firing exactly as a real fault would.
4. Verification & provenance
- ECC proven position-by-position: an all-position sweep checks every one of the 32 data bits and 7 check bits against the golden Hsiao column, plus a double-detect and a fuzz test — the sweep is what exposed and drove the fix of an early H-matrix collision bug.
- Lockstep proven on alignment: tests confirm the comparator compares
ls_adelayed by exactly N against livels_b(not same-cycle), with match / mismatch / capture and self-test inject all checked. - Clean build: 17/17 assertion-based tests PASS (11 ECC + 6 lockstep), both paths exercised together with no cross-talk; latch-free synthesis with no multi-driver nets.
- Provenance: a coverage-closed functional-safety kit in the Zen Automotive catalog; license-ready structure for external engagement.
Sources: Zen Safety-Glue product datasheet; as-built RTL.