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?

  1. A. J = L, K = M
  2. B. J = M, K = L'
  3. C. J = M', K = L'
  4. 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

Exams that ask this topic