Question

Consider a 2-bit saturating up/down counter that performs the saturating up count when the input PP is 0, and the saturating down count when PP 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.

Input PPCurrent State Q1Q_1Current State Q0Q_0Next State Q1+Q_1^+Next State Q0+Q_0^+
00001
00110
01011
01111
10000
10100
11001
11110

Which one of the following options corresponds to the expressions for the inputs of the D flip-flops, D1D_1 and D0D_0 ?

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2026 answer key

Solution

Use the characteristic equation Q+=DQ^+ = D of a D flip-flop and minimize D1(P,Q1,Q0)D_1(P, Q_1, Q_0) and D0(P,Q1,Q0)D_0(P, Q_1, Q_0) using 3-variable Karnaugh maps.

For a D flip-flop, the excitation inputs are simply D1=Q1+D_1 = Q_1^+ and D0=Q0+D_0 = Q_0^+:

  1. For D1=Q1+D_1 = Q_1^+: The minterms (P,Q1,Q0)(P, Q_1, Q_0) where Q1+=1Q_1^+ = 1 are ∑m(1,2,3,7)\sum m(1, 2, 3, 7):
    • Pairing (1,3)→P‾Q0(1, 3) \rightarrow \overline{P}Q_0
    • Pairing (2,3)→P‾Q1(2, 3) \rightarrow \overline{P}Q_1
    • Pairing (3,7)→Q1Q0(3, 7) \rightarrow Q_1 Q_0
    D1=P‾Q1+P‾Q0+Q1Q0D_1 = \overline{P}Q_1 + \overline{P}Q_0 + Q_1 Q_0
  2. For D0=Q0+D_0 = Q_0^+: The minterms (P,Q1,Q0)(P, Q_1, Q_0) where Q0+=1Q_0^+ = 1 are ∑m(0,2,3,6)\sum m(0, 2, 3, 6):
    • Pairing (0,2)→P‾ Q0‾(0, 2) \rightarrow \overline{P}\,\overline{Q_0}
    • Pairing (2,3)→P‾Q1(2, 3) \rightarrow \overline{P}Q_1
    • Pairing (2,6)→Q1Q0‾(2, 6) \rightarrow Q_1 \overline{Q_0}
    D0=P‾ Q0‾+P‾Q1+Q1Q0‾D_0 = \overline{P}\,\overline{Q_0} + \overline{P}Q_1 + Q_1 \overline{Q_0}
Final answer

Option (B)

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 1 (CS1)
Question
37 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.