Memory Circuits
D LATCH (DATA LATCH)
Stores a single bit. Has a Data input and an Enable input. When Enable is ON, the output follows the Data input. When Enable goes OFF, the output freezes at its current state.
When to Use
Sample-and-hold circuits, storing comparator readings, sequential logic, registers for binary computers.
Materials
- ▸2 Redstone Repeaters
- ▸Redstone Dust
- ▸Solid Blocks
- ▸Redstone Torches
How to Build
- 1Build an RS latch as the core memory element.
- 2Gate the Set input: AND the Data input with the Enable signal, this feeds Set.
- 3Gate the Reset input: AND the inverted Data (NOT Data) with Enable, this feeds Reset.
- 4When Enable is ON, Data=1 sets the latch, Data=0 resets it (output follows data).
- 5When Enable goes OFF, neither Set nor Reset can fire, output holds.
Variants
- ▸Repeater-lock D latch (lock a repeater with the enable signal)
- ▸Torch-based D latch (classic gate implementation)
- ▸D flip-flop (edge-triggered version, only captures on Enable edge)