The following arrangement of master-slave flip flops
has the initial state of as (respectively). After three clock cycles the output state is (respectively),
GATE CSE 2000Digital Logic › Sequential Circuits & CountersVerified
(A) 1 , 0 1, 0 1 , 0
The circuit consists of a JK flip-flop (output P) with J = K = 1, so it toggles on every clock edge, and a D flip-flop (output Q) whose D input is driven by P. Both are master-slave (edge-triggered) devices clocked simultaneously, so on each active edge the D flip-flop samples the value of P that existed just before the edge, while the JK flip-flop toggles P. Tracing the state (P, Q) through three clock cycles from the initial state (0, 1) yields the final state.
Since J = K = 1, the JK flip-flop toggles: starting at P = 0, after an odd number (3) of clocks P = 1. The D flip-flop is loaded with the pre-edge value of P at each clock: P's values before the three edges are 0, 1, 0, so Q becomes 0, 1, 0, ending at Q = 0. Hence (P, Q) = (1, 0), i.e., option A.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.