Skip to content
hw.dev
hw.dev/signal/field-security-monitor-simulation-watchdog-2026
SignalField-Upgradable Hardware Security Monitor

A 20-Millisecond Watchdog Makes Hung Chip Simulations Fail

A hardware security monitor adds simulated-time and wall-clock limits so stalled tests produce failures instead of silent 20-minute jobs.

Thesis connection

A bounded failure gives chip teams usable evidence where an unbounded simulation only consumes a build machine.

#testing#verification#eda#software
Read Original

The Field-Upgradable Hardware Security Monitor had chip simulations that could wait forever for a transaction-ready signal. One continuous integration (CI) run spent more than 20 minutes in Icarus Verilog, an open-source hardware simulator, without printing a result. The project now makes a stalled simulation fail at two boundaries instead of blocking the test queue.

Inside the testbench, a watchdog fires after 20 milliseconds of simulated circuit time; the longest normal run ends near 1.3 milliseconds. Outside the simulator, two Python runners stop each process after 900 seconds of real time. Unbuffered output also puts progress into the CI log before a cancellation. Mutation tests, which deliberately damage the design to prove the tests notice, count a timeout as a failed run while still rejecting a baseline that hangs.

These limits turn a missing handshake from an infrastructure mystery into a named test failure with a cycle count. The 900-second outer limit is generous, but it is measurable; if normal runtime grows toward it, maintainers can see the margin disappearing and split the suite before the queue starts stalling again.