The following diagram shows a D flip-flop constructed from two D latches:
D Flip-Flop (Positive Triggered)
D Latch 1
D Latch 2
Clk
Complete the following waveform showing Y (the output of the first latch) and Q (the FF's output). Notice that although Y will change between positive clock edges, Q will change only on the positive clock edge. Assume that there are no propagation delays.
CLK
D
Q
X