Clock Edge Intuition
How a clock drives sequential logic, why a flip-flop only samples on the rising edge, and why mid-cycle input changes are invisible.
Updated 2026-07-09
A clock is a signal that flips between 0 and 1 at a steady rate. The moment it goes from 0 up to 1 is the rising edge. Edge-triggered flip-flops — the building block of every register, counter, and shift register — sample their input only on that rising edge.
This is the idea that trips up most beginners: whatever the input does between two rising edges does not matter. If the input wiggles up and down five times in the middle of a clock cycle, the flip-flop ignores all of it. Only the value present at the instant of the rising edge is captured.
A signal timeline (also called a waveform) makes this concrete. Draw the clock and the input on the same time axis, mark the rising edges, and read the input value straight up from each edge. That value, and only that value, becomes the flip-flop's new output. The output then holds steady until the next rising edge gives it a new value to capture.
Getting comfortable reading edges this way pays off for the rest of the module. Counters, shift registers, and pipelines are all just flip-flops sampling on edges, so once you can predict a single flip-flop's output across a few cycles, the larger designs follow the same rule.