The watchdog restarts the machine, but the first boot read finds an empty service log. Repair the recorder.
Hardware context: Always-on reset event recorder. Diagnosing field restarts
A watchdog level can remain asserted across a restart. The always-on service block should send one restart pulse for each rising watchdog event. A service tool can also request a restart. The starter loses the history one edge after it records it.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
sample | 12 | input of each check |
Full specification
All inputs are synchronous. On por, clear both flags, restart and the remembered watchdog level. Otherwise remember wd each edge. Treat a high wd following a low sample as one new event.
Each service=1 sample requests a restart. Register restart high for an edge with either event. Each event sets its own sticky flag.
Examples
Example 1
Power Applied- Input
por=1, other inputs low.
- Output
restart = 0, wd_seen = 0, service_seen = 0
No warm event has arrived.
Example 2
Expired- Input
wd rises, service and consume are low.
- Output
restart = 1, wd_seen = 1, service_seen = 0
The first sample launches a restart.
Example 3
Boot Probe- Input
wd stays high, all other inputs low.
- Output
restart = 0, wd_seen = 1, service_seen = 0
The request has ended but its cause should still be readable.
Constraints and Contract
- Keep the history through restart. A consume edge removes both old flags. Fresh events still set their own flags on that edge. Outputs hold between rising edges.
Hints
Hint 1
Find the first edge with a missing flag.
Hint 2
Trace which domain owns the recorder.
Hint 3
Hold wd across the restart and watch the previous sample.
What the grader checks: The harness varies watchdog history, simultaneous requests, consumption and cold reset at clock boundaries.
521 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 2 problems on this path