Caffeinated Coder
Book an appointment
Lesson 19 · Memory elements and clocks

The D flip-flop

A gated D latch copies its data input D to its output Q while enable is 1 and holds Q while enable is 0. That makes it react for as long as enable stays high. Join two latches on opposite clocks and you get an edge-triggered D flip-flop: it captures D only at the clock's rising edge and holds it for the whole cycle, as long as D is steady for a short setup and hold time around that edge.

12 min10 steps5 questionsIntermediate
Fig 19 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.