GATE Computer ScienceHardGATE CS (PYQ pattern)
A hypothetical LM flip-flop behaves as follows: LM = 00 toggles (Q⁺ = Q'), 01 resets (Q⁺ = 0), 10 sets (Q⁺ = 1) and 11 holds (Q⁺ = Q). It is to be built from a J-K flip-flop with no other storage. Which input equations work for every L, M and present state Q?
- A. J = L, K = M
- B. J = M, K = L'
- C. J = M', K = L'
- D. J = L', K = M'
Correct answer: C. J = M', K = L'
From Q = 0 the J-K gives Q⁺ = J; the LM table needs Q⁺ = 1, 0, 1, 0 for LM = 00, 01, 10, 11, i.e. M', so J = M'. From Q = 1 the J-K gives Q⁺ = K'; the table needs 0, 0, 1, 1, i.e. L, so K = L'. J = L, K = M (the 'S-R-like' guess) fails for LM = 00 and 11.
More Digital Logic questions
- 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 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…