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, D1 and D0?
Tap to open full sizeFigure description
Next-state table with columns P, Q1, Q0 (inputs/current state) and Q1+, Q0+ (next state). Rows (P Q1 Q0 -> Q1+ Q0+): 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)
D1 = P Q1 + P̄ Q0 + Q1 Q0 ; D0 = P Q0 + P̄ Q1 + Q1 Q̄0
- (B)
D1 = P̄ Q1 + P̄ Q0 + Q1 Q0 ; D0 = P̄ Q̄0 + P̄ Q1 + Q1 Q̄0
- (C)
D1 = P̄ Q̄1 + P̄ Q0 + Q1 Q0 ; D0 = P̄ Q0 + P̄ Q1 + Q1 Q̄0
- (D)
D1 = P Q̄1 + P̄ Q0 + Q1 Q0 ; D0 = P Q̄0 + P̄ Q1 + Q1 Q̄0