GATE / CS ARCHIVE

GATE CSE 2007 / QUESTION 35

Carry-lookahead AND and OR counts

Digital Logic · Combinational Circuits · Full GATE CSE 2007 paper

GATE 2007, Q35 2 marks · MCQ
Report issue

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