D latch
A D latch remembers one bit, D, with an enable input E. While E is on, the output Q copies D. When E goes off, Q keeps whatever D was at that moment. It's an SR latch with gates in front, so Set and Reset can never be on together.
How it works
- 01
With E off, the gates in front block D, and the latch inside keeps its value.
- 02
Turn E on and D reaches the latch: Q follows D.
- 03
Turn E off and Q holds. That's the bit it remembers.