GATE Computer ScienceModerateGATE CS (PYQ pattern)
A J-K flip-flop has its inputs driven by J = X and K = X ⊕ Q, where Q is its own output. As seen from the input X, the circuit behaves as
- A. a T flip-flop with T = X
- B. a D flip-flop with D = X'
- C. a D flip-flop with D = X
- D. a T flip-flop with T = X'
Correct answer: C. a D flip-flop with D = X
Q = 0: Q⁺ = J = X. Q = 1: Q⁺ = K' = (X ⊕ 1)' = X. In both cases Q⁺ = X, so it is a D flip-flop with D = X. Treating K = X ⊕ Q as if Q were 0 suggests J = K = X, a T flip-flop, which is wrong.
More Digital Logic questions
- 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…
- 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…