Apex › Hardware

The flip-flop — how a circuit remembers a bit

The adder forgets; memory needs feedback. Cross-couple two NOR gates and the pair locks into a stable 0 or 1 and holds it. That is an SR latch. Add a clock edge and you get a D flip-flop, the storage element behind CPU registers and SRAM cache. Set, reset, and hold a latch, then clock a flip-flop and watch it capture data only on the rising edge.

More in Hardware