D-type flip-flops – live timing demo

Positive edge–triggered D-type flip-flop (OCR A-Level CS). D is randomly generated; Q and ¬Q change only at the exact rising edge of the clock. The red dashed line sweeps smoothly across time.

Flip-flop symbol (positive edge–triggered)
D-type flip-flop
0 D
Q 0
¬Q 1
C (clock) 0

• On each rising edge of the clock (0 → 1), the flip-flop copies D into Q. • Between rising edges, Q holds its stored value. • ¬Q is always the inverse of Q.

Live timing diagram

What is happening at this moment?