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.

Turn E on, then off, then flip D. Q keeps what it had.

How it works

  1. 01

    With E off, the gates in front block D, and the latch inside keeps its value.

  2. 02

    Turn E on and D reaches the latch: Q follows D.

  3. 03

    Turn E off and Q holds. That's the bit it remembers.

Every circuit in the library