GATE CS 2026, set 1 · Question 37 · Digital Logic · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider a 2-bit saturating up/down counter that performs the saturating up count when the input P is 0, and the saturating down count when P is 1. The Next State table of the counter is as shown. The counter is built as a synchronous sequential circuit using D flip-flops.
Which one of the following options corresponds to the expressions for the inputs of the D flip-flops, D₁ and D₀?

Input PCurrent State Q₁Current State Q₀Next State Q₁⁺Next State Q₀⁺
00001
00110
01011
01111
10000
10100
11001
11110
  1. (A) D₁ = P Q₁ + P̅ Q₀ + Q₁ Q₀ D₀ = P Q₀ + P̅ Q₁ + Q₁ Q̅₀̅
  2. (B) D₁ = P̅ Q₁ + P̅ Q₀ + Q₁ Q₀ D₀ = P̅ Q̅₀̅ + P̅ Q₁ + Q₁ Q̅₀̅
  3. (C) D₁ = P̅ Q̅₁̅ + P̅ Q₀ + Q₁ Q₀ D₀ = P̅ Q₀ + P̅ Q₁ + Q₁ Q̅₀̅
  4. (D) D₁ = P Q̅₁̅ + P̅ Q₀ + Q₁ Q₀ D₀ = P Q̅₀̅ + P̅ Q₁ + Q₁ Q̅₀̅
Answer

Answer (B)

Answer from the official GATE CS 2026 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes