GATE Computer ScienceEasyGATE CS (PYQ pattern)
A D flip-flop is to be made from a J-K flip-flop with J = D and K = D', but by mistake it is wired with J = K = D. Starting from Q = 0, the inputs D = 1, 1, 0, 1, 0, 0 are applied on six successive clock edges. After how many of these six edges does Q differ from what a correct D flip-flop would hold, and what is the final Q?
- A. 3 edges; final Q = 0
- B. 2 edges; final Q = 1
- C. 3 edges; final Q = 1
- D. 4 edges; final Q = 1
Correct answer: C. 3 edges; final Q = 1
With J = K = D the J-K flip-flop toggles when D = 1 and holds when D = 0, i.e. it is a T flip-flop. Q goes 1, 0, 0, 1, 1, 1, while a D flip-flop would hold 1, 1, 0, 1, 0, 0. They differ after edges 2, 5 and 6: 3 edges, and the final Q is 1.
More Digital Logic questions
- A synchronous counter uses three J-K flip-flops Q2Q1Q0 with J2 = Q0, K2 = Q0', J1 = Q2Q0', K1 = Q2Q1, J0 = Q2', K0 = Q2'Q0. After power-up…
- A synchronous counter uses three J-K flip-flops Q2Q1Q0 with J2 = Q2'Q1', K2 = Q1', J1 = Q2'Q1', K1 = Q2Q1, J0 = 1, K0 = Q0. Starting at…
- A Moore machine has states A to G, start state A, and one input X. State next (X=0) next (X=1) output A C B 0 B B C 1 C D F 1 D C F 1 E D…
- Moore machine: the output is 1 exactly when the last four serial input bits (one per clock) are 0110 or 1001, and 0 otherwise (also before…
- A Moore machine outputs 1 when at least three of the last four serial input bits are 1, and 0 otherwise (also before four bits have…
- A serial machine receives an unsigned binary number MSB first, one bit per clock, and must signal whether the number received so far is…