Gated D Flip-Flop

A simple rule for the D latch is:

      Q follows D when Enabled.

 

Notice that the Enable is not active during the grey areas, so the output is latched.