A watchdog that catches a CPU still kicking but running the wrong code
The Zen CR-Watchdog is a challenge-response, windowed watchdog for ISO-26262 program-flow monitoring. Instead of a dumb periodic kick, it poses a changing question the CPU must answer correctly — and only inside an open time window. A replayed, constant, or early answer does not service it, so a stuck-but-still- kicking CPU is caught and a reset is requested. For safety-SoC and ECU integrators building ASIL-C/D control-flow supervision. Every number is sourced from the product datasheet or marked TBC.
1. The CR-Watchdog in one paragraph
A plain watchdog only checks that *something* kicked it in time — a hung CPU looping on a stale write keeps it quiet. The CR-Watchdog instead runs a challenge-response (Q&A) protocol: it exposes a 16-bit question, the CPU must write back the correct answer, and the write only services the watchdog when it lands inside the open window. The question comes from a maximal-length LFSR that advances on every correct answer, so a replayed, constant, or early answer fails. Each service period is two phases off one down-counter — a closed phase (answering here is "too early" and faults) then an open phase (a correct answer here services). On any fault it latches a reset request to the reset controller and a level fault to the safety aggregator.
- CR-Watchdog (Q&A + window FSM)
- host CPU / SoC fabric
- challenge LFSR
2. What it is, at a glance
| Element | Detail | Default | Status |
|---|---|---|---|
| Challenge-response service | CPU reads question, writes the correct answer to service | — | exists |
| Changing challenge | 16-bit maximal-length LFSR, advances on each correct answer | — | exists |
| Service window | closed phase then open phase, one down-counter | — | exists |
| Early-answer fault | any answer in the closed phase faults | — | exists |
| Timeout fault | open phase expires with the sequence incomplete | — | exists |
| Multi-stage sequence | N correct answers in order within one open window | 1 | exists |
| Fault-cause reporting | wrong / early / timeout, readable in status | — | exists |
| Latched reset request | held until reset — never a one-cycle blip | — | exists |
| Level fault to safety aggregator | asserted alongside the reset request | — | exists |
| Config-lock | window + sequence config frozen once armed; enable is sticky | — | exists |
| Interrupts | serviced / faulted events, each independently enabled | — | exists |
| Keyed / negotiated answer transform | deterministic transform only in this release | — | TBC |
| Absolute window times | window-clocks ÷ your SoC clock frequency | — | TBC |
Sources: Zen CR-Watchdog product datasheet; as-built RTL.
3. How a client uses it
- Instantiate and wire the core onto the peripheral bus; route the reset request to your reset controller and the level fault to your safety aggregator.
- Configure the window — set the closed and open phase lengths (and, for stronger coverage, the number of answers per window), then arm it. Configuration locks once armed; the enable bit is sticky until reset.
- Service it from the safety loop — read the question, compute the answer, and write it back inside the open window. A correct, on-time answer services the watchdog and advances the challenge.
- React to faults — a wrong, early, or missing answer latches the reset request and the level fault; an optional faulted interrupt gives software a chance to log before the reset controller acts.
4. Verification & provenance
- Assertion-based signoff: 14 of 14 tests pass (single-Q&A and multi-stage), each proving a behavior a hollow watchdog would miss — that the challenge actually changes, that a replayed answer is rejected, that early / wrong / timeout each fault with the correct cause, and that config-lock holds after arming.
- Independently re-run on a fresh testbench copy; synthesis gates clean (no inferred latches, no multi-driver).
- As-built evidence: a timeout-vs-advance race found during multi-stage verification was fixed by making a fault terminal, so a mid-sequence timeout wins cleanly — captured and re-verified, not papered over.
- Status: coverage-closed v1, delivered as a licensable kit with core RTL, the compliance testbench, and this documentation. The reset controller and any external safety-companion handshake are the integrator's.
Sources read
Sources: Zen CR-Watchdog product datasheet; as-built RTL.