The setup-hold window

You will learn

What setup and hold mean, what a flop does when the window is missed, and what a VCD shows of it.

Every flop has a window around its sampling edge -- setup before it, hold after it. Land a transition inside the window and the flop does not cleanly pick a level: its output can hang between 0 and 1, a metastable state that resolves at a time the datasheet does not promise. The widget reads a .vcd from any simulator and reports value changes, the busiest net, and signals stuck at X or Z: X in a simulation is the testbench's way of showing the window was missed. The spec frame opens clock_domain.t27, whose crossing model is what module 5 turns into arithmetic.

Open the interactive lesson →