Skip to main content

GATE CSE 2000Digital Logic › Sequential Circuits & CountersVerified

GATE CSE 2000 PYQ: The following arrangement of master-slave flip flops has the initial state of P , Q P, Q P , Q as 0 , 1 0, 1…

The following arrangement of master-slave flip flops

GATE CSE 2000 Sequential Circuits & Counters diagram: The following arrangement of master-slave flip flops has the

has the initial state of P,QP, Q as 0,10, 1 (respectively). After three clock cycles the output state P,QP, Q is (respectively),

  1. A
    1,01, 0
    Correct answer
  2. B
    1,11, 1
  3. C
    0,00, 0
  4. D
    0,10, 1

Answer

(A) 1 , 0 1, 0 1 , 0

Approach

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.