Skip to main content

GATE CSE 2026Digital Logic › Sequential Circuits & CountersVerified

GATE CSE 2026 PYQ: Consider a 2 2 2 -bit saturating up/down counter that performs the saturating up count when the input P P P…

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.

InputCureent StateNext State
P\text{P}Q1\text{Q}_{1}Q0\text{Q}_{0}Q1+\text{Q}_{1}^{+}Q0+\text{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}?

  1. A
    D1=PQ1+PˉQ0+Q1Q0D0=PQ0+PˉQ1+Q1Q0‾D_{1}=P Q_{1}+\bar{P} Q_{0}+Q_{1} Q_{0} \quad D_{0}=P Q_{0}+\bar{P} Q_{1}+Q_{1} \overline{Q_{0}}
  2. B
    D1=PˉQ1+PˉQ0+Q1Q0D0=PˉQ0‾+PˉQ1+Q1Q0‾D_{1}=\bar{P} Q_{1}+\bar{P} Q_{0}+Q_{1} Q_{0} \quad D_{0}=\bar{P} \overline{Q_{0}}+\bar{P} Q_{1}+Q_{1} \overline{Q_{0}}
    Correct answer
  3. C
    D1=PˉQ1‾+PˉQ0+Q1Q0D0=PˉQ0+PˉQ1+Q1Q0‾D_{1}=\bar{P} \overline{Q_{1}}+\bar{P} Q_{0}+Q_{1} Q_{0} \quad D_{0}=\bar{P} Q_{0}+\bar{P} Q_{1}+Q_{1} \overline{Q_{0}}
  4. D
    D1=PQ1‾+PˉQ0+Q1Q0D0=PQ0‾+PˉQ1+Q1Q0‾D_{1}=P \overline{Q_{1}}+\bar{P} Q_{0}+Q_{1} Q_{0} \quad D_{0}=P \overline{Q_{0}}+\bar{P} Q_{1}+Q_{1} \overline{Q_{0}}

Answer

(B) D 1 = P ˉ Q 1 + P ˉ Q 0 + Q 1 Q 0 D 0 = P ˉ Q 0 ‾ + P ˉ Q 1 + Q 1 Q 0 ‾ D_{1}=\bar{P} Q_{1}+\bar{P} Q_{0}+Q_{1} Q_{0} \quad D_{0}=\bar{P} \overline{Q_{0}}+\bar{P} Q_{1}+Q_{1} \overline{Q_{0}} D 1 ​ = P ˉ Q 1 ​ + P ˉ Q 0 ​ + Q 1 ​ Q 0 ​ D 0 ​ = P ˉ Q 0 ​ ​ + P ˉ Q 1 ​ + Q 1 ​ Q 0 ​ ​

Approach

For D flip-flops, the next state and the D input are identical: D1 = Q1+, D0 = Q0+. Read the next-state table as a truth table for D1 and D0, write the minterms, and minimize using Boolean algebra or K-maps. Then compare with the options.

The required next-state equations for the D inputs are D1 = $\bar P Q1 + \bar P Q0 + Q1 Q0$ and D0 = $\bar P \overline{Q0} + \bar P Q1 + Q1 \overline{Q0}$. Option B is the only option that matches both expressions.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.