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 P | Current State Q₁ | Current State Q₀ | Next State Q₁⁺ | Next State Q₀⁺ |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 |
- (A) D₁ = P Q₁ + P̅ Q₀ + Q₁ Q₀ D₀ = P Q₀ + P̅ Q₁ + Q₁ Q̅₀̅
- (B) D₁ = P̅ Q₁ + P̅ Q₀ + Q₁ Q₀ D₀ = P̅ Q̅₀̅ + P̅ Q₁ + Q₁ Q̅₀̅
- (C) D₁ = P̅ Q̅₁̅ + P̅ Q₀ + Q₁ Q₀ D₀ = P̅ Q₀ + P̅ Q₁ + Q₁ Q̅₀̅
- (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