GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Expand carry generate/propagate recurrence

2 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Starting with C(i+1)=Gi+PiCi, expand carries algebraically to isolate input-carry-independent generate terms or count product terms and output OR gates. Pi/Gi availability and unbounded fan-in assumptions are retained; propagation-time analysis is separate.

2 marks · MCQ
Report issue

Carry-lookahead AND and OR counts

Combinational Circuits

Question 35, GATE 2007: For a 4-bit carry-lookahead adder, Pi=Ai⊕Bi, Gi=AiBi, Si=Pi⊕Ci and C_(i+1)=Gi+PiCi, where C0 is the input carry. All Pi and Gi are already available. With two-level AND–OR logic and unbounded gate fan-in, how many AND and OR gates are required for the carry generator used with outputs S3,S2,S1,S0,C4?
Options:
(A) 6 AND,3 OR
(B) 10 AND,4 OR
(C) 6 AND,4 OR
(D) 10 AND,5 OR
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Approach. Expand every carry directly in terms of P,G,C0, avoiding a ripple chain. C1 has one product needing AND; C2 has two; C3 three; C4 four. The standalone Gi terms need no AND gates.

2. Derivation and interpretation. Expand C1=G0+P0C0; C2=G1+P1G0+P1P0C0; similarly C3 and C4 have 3 and 4 nontrivial product terms. With unbounded fan-in and all P,G supplied, the four carry outputs require 1+2+3+4=10 AND gates and one OR gate each, totaling 4 OR gates. Thus B. XOR sum generation is outside this AND/OR carry-generator count.

Original paper, page 8

2 marks · MCQ
Report issue

Three-bit group carry generation

Combinational Circuits

Question 36, GATE 2006: Two three-bit unsigned words a₂a₁a₀ and b₂b₁b₀ are added with carry-in c. Which Boolean expression is the block carry-generate function (outgoing carry generated independently of c)? Here + means OR, juxtaposition AND, and ⊕ XOR. The expanded alternatives below follow the clearer GateForum typesetting.
Options:
(A) a₂b₂+a₂a₁b₁+a₂a₁a₀b₀+a₂a₀b₁b₀+a₁b₂b₁+a₁a₀b₂b₀+a₀b₂b₁b₀
(B) a₂b₂+a₂b₁b₀+a₂a₁b₁b₀+a₁a₀b₂b₁+a₁a₀b₂+a₁a₀b₂b₀+a₂a₀b₁b₀
(C) a₂+b₂+(a₂⊕b₂)(a₁+b₁+(a₁⊕b₁)(a₀+b₀))
(D) a₂b₂+¬a₂a₁b₁+¬(a₂a₁)a₀b₀+¬a₂a₀¬b₁b₀+a₁¬b₂b₁+¬a₁a₀¬b₂b₀+a₀¬(b₂b₁)b₀
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Let gi=ai bi and pi=ai+bi. The carry generated independently of c0 is G=g2+p2g1+p2p1g0.

2. Expanding gives a2b2+a2a1b1+b2a1b1+a2a1a0b0+a2b1a0b0+b2a1a0b0+b2b1a0b0, the seven terms of A. This tests whether the three-bit sum generates an outgoing carry when c0=0, not whether an incoming carry propagates.

3. Teaching check: At one bit, carry-out is gᵢ+pᵢ·carry-in, where gᵢ=aᵢbᵢ and the OR-based propagation pᵢ=aᵢ+bᵢ is sufficient. Substitute this recurrence across bits 0,1,2 and collect the terms independent of the external carry. Those terms form the block generate function.

Original paper, page 5