Let X, Y, Z, be three D-flip-flops, each storing a single bit.

Draw a circuit so that by applying a single pulse in the clock line, the following

operation can be performed:

if X= 0 then Y:= Z else Z:= Y

Briefly explain why your circuit will work.

Draw a circuit so that by applying a single pulse in the clock line, the following

operation can be performed:

if X= 0 then Y:= Z else Z:= Y

Briefly explain why your circuit will work.