
Binary Storage & Registers
Where bits are held: flip-flops store one bit; a register holds a group of them.
Description
Circuits that hold binary information over time and move it between locations. Computation needs memory: values must persist between clock cycles to be reused. A flip-flop latches one bit on a clock edge; n of them form a register holding a word.
- A binary cell (flip-flop) stores a single 0 or 1.
- Group n cells under a common clock to store an n-bit word.
- Register transfer moves a word from one register to another on the clock edge.
- A shared clock makes all bits update together, avoiding partial/garbled words.
- Synchronous timing makes large designs analyzable and predictable.
- What: Circuits that hold binary information over time and move it between locations.
- Why: Computation needs memory: values must persist between clock cycles to be reused.
- How: A flip-flop latches one bit on a clock edge; n of them form a register holding a word.
- Where: CPU register files, pipeline stages, I/O buffers, and every sequential block.
- When: Any time a value must survive from one clock cycle to the next.
At a glance
What
Circuits that hold binary information over time and move it between locations.
Why
Computation needs memory: values must persist between clock cycles to be reused.
How
A flip-flop latches one bit on a clock edge; n of them form a register holding a word.
Where
CPU register files, pipeline stages, I/O buffers, and every sequential block.
When
Any time a value must survive from one clock cycle to the next.
Think of it like…
A register is like a row of lockers that all open and re-lock on the same bell (the clock). On each bell everyone swaps their contents at once, so nobody peeks at a half-filled locker.
From bit to register
- A binary cell (flip-flop) stores a single 0 or 1.
- Group n cells under a common clock to store an n-bit word.
- Register transfer moves a word from one register to another on the clock edge.
Why clocking
- A shared clock makes all bits update together, avoiding partial/garbled words.
- Synchronous timing makes large designs analyzable and predictable.
Storage hierarchy (conceptual)
| Element | Holds | Typical use |
|---|---|---|
| Flip-flop | 1 bit | state bit, flag |
| Register | 1 word (n bits) | CPU operand, counter |
| Register file | many words | CPU general registers |
| RAM | many words | main memory |
The 5 Whys
- 1
Why store bits? Computation reuses values across time.
- 2
Why group bits into registers? Data is processed a whole word at a time.
- 3
Why share a clock? So every bit of the word updates simultaneously.
- 4
Why simultaneous update? To avoid reading a half-changed value.
- 5
Root cause: synchronous storage gives predictable timing, the foundation of reliable digital systems.
Cheat sheet
Working principle
- A flip-flop latches one bit on a clock edge; n of them form a register holding a word.
- Circuits that hold binary information over time and move it between locations.
Key facts
- A binary cell (flip-flop) stores a single 0 or 1.
- A shared clock makes all bits update together, avoiding partial/garbled words.
Why it exists
- Root cause: synchronous storage gives predictable timing, the foundation of reliable digital systems.