The canary has to fail first

Why I built one path on my chip to break on purpose.

sample draft · 3 minutes

A warning is only worth something if you can check it. A timing sensor that says “you are close to the edge” is making a claim, and on a chip that has never failed there is nothing to hold the claim against.

So the design includes a path whose whole job is to be wrong before anything else is.

The canary is an 8-bit ripple-carry adder with 38 delay cells padded onto it. Its inputs flip every cycle so the carry has to travel the full chain, and the expected sum is known in advance. When the clock gets too fast the sum is captured before it settles, a checker notices, and an 8-bit counter records it.

about 25 ns of path. should break near 40 MHz. an estimate until the first timing report

What the canary buys

With the canary in place the experiment is simple to state. Raise the clock, or heat the board, and watch two things: when the margin sensor raises its warning, and when the canary counts its first error. The gap between them is the answer.

If the warning comes first, by a useful amount, the sensor works. If the error comes first, I have learned something more interesting.

Two flops and a freezeNext note, 4 minutes