Flip-Flop

A flip-flop stores a single binary bit and changes state only on a clock edge, making it the fundamental building block of registers, counters, state machines, and synchronous logic. The D-type flip-flop is the most common: it captures the D input at the clock edge and holds it on the Q output.

Two cross-coupled NAND gates (or NOR gates) form a bistable latch. The clock input gates when the latch can capture new data. In an edge-triggered D flip-flop, a master stage captures D when the clock is low, and a slave stage propagates the captured value to Q on the rising clock edge, making Q change only at that instant.

In plain terms

A light switch with a lock: you can only move it at the moment a clock pulse arrives, then it holds that position rigid until the next pulse — immune to any noise that occurs between pulses.

Why designers use it

Best for

Key specifications

When not to use it

Common mistakes

Where you will find it

A short history

British physicists William Eccles and Frank Jordan filed a patent for the 'Eccles-Jordan trigger circuit' on June 21, 1918 (published as British Patent 148,582 in 1920), the first flip-flop—a bistable circuit built from two vacuum tubes whose outputs cross-couple as inputs. Early flip-flops were called 'trigger circuits' or 'multivibrators.' As Claude Shannon demonstrated in 1948, a bistable flip-flop can store one bit of information using Boolean logic. The transistor flip-flop enabled high-speed digital counters and registers, and the D-type and JK flip-flops implemented in TTL (1966) and CMOS (1968) ICs became the foundational storage elements of all sequential digital logic.

Related