You are on the fifth floor of a building in Dhaka, waiting for the lift. You press the down button. A small lamp lights up, and you take your finger away. The lamp stays on. A minute later the lift arrives, the doors open, and the lamp goes off by itself. Somewhere behind that button a circuit noticed one tiny event, your press, and kept a record of it long after your finger had gone. Compare it with a doorbell: the bell rings only while your thumb is on it, and the moment you let go, it forgets. The doorbell has no memory. The lift button has exactly one bit of it.
Every circuit you have built in this course so far behaves like the doorbell. Its outputs depend on its inputs at this moment, and when an input changes, the output follows. (Circuits of that kind are called combinational; the adders and selectors of the earlier lessons are examples.) A computer cannot work like that. It has to keep the number you typed a moment ago, the step a machine has reached, the answer of the last calculation.
It needs a cell that holds one bit, a 0 or a 1, after the signal that wrote it has disappeared. How a handful of ordinary gates can be made to hold a bit, and how that cell is then tamed so that millions of them can work together, is the story of this chapter.
The cell comes in two families. A latch listens to its input for as long as a control signal called enable is switched on. A flip-flop listens only at one instant, when a steady, ticking signal called the clock changes. A clock is simply a signal that goes 0, 1, 0, 1 at a regular rhythm, like the tick of a wall clock.