GATE Computer ScienceHardGATE CS (PYQ pattern)

A latch is made of two cross-coupled NOR gates with active-high inputs S and R. The input pairs (S, R) are applied in order: (1,0), (0,0), (1,1), (0,1), (0,0), (1,1), (0,0), each held long enough to settle. Which statement is correct?

  1. A. Q = Q̄ at 2 of the 7 steps, and the final Q is 0
  2. B. Q = Q̄ at 2 of the 7 steps, and the final state is unpredictable
  3. C. Q = Q̄ at 1 of the 7 steps, and the final state is unpredictable
  4. D. Q = Q̄ at 2 of the 7 steps, and the final Q is 1

Correct answer: B. Q = Q̄ at 2 of the 7 steps, and the final state is unpredictable

Q: 1 (set), 1 (hold), then (1,1) forces Q = Q̄ = 0, (0,1) resets cleanly to Q = 0, (0,0) holds 0, (1,1) again forces Q = Q̄ = 0. The last step releases both inputs at once from the (1,1) state, so the two NOR gates race and the final state cannot be predicted. Q = Q̄ held at the two (1,1) steps.

More Digital Logic questions

Exams that ask this topic