CSCI 255 — D flip-flop

When clk changes from 0 to 1, the value of D is sampled and copied to Q.

Input Output
D clk Q Q’
0 0 0 1