Skip to main content

GATE CSE 2007Digital Logic › Combinational CircuitsVerified

GATE CSE 2007 PYQ: In a look-ahead carry generator, the carry generate function G i G_i G i ​ and the carry propagate function…

In a look-ahead carry generator, the carry generate function GiG_i and the carry propagate function PiP_i for inputs AiA_i and BiB_i are given by:

Pi=Ai⊕Bi and Gi=AiBiP_i = A_i \oplus B_i \text{ and }G_i = A_iB_i

The expressions for the sum bit SiS_i and the carry bit Ci+1C_{i+1} of the look ahead carry adder are given by:

Si=Pi⊕Ci and Ci+1=Gi+PiCi, where C0 is the input carry.S_i = P_i \oplus C_i \text{ and } C_{i+1} = G_i + P_iC_i, \text{ where }C_0 \text{ is the input carry}.

Consider a two-level logic implementation of the look-ahead carry generator. Assume that all PiP_i and GiG_i are available for the carry generator circuit and that the AND and OR gates can have any number of inputs. The number of AND gates and OR gates needed to implement the look-ahead carry generator for a 4-bit adder with S3,S2,S1,S0S_3, S_2, S_1, S_0 and C4C_4 as  its outputs are respectively:

  1. A
    6,36, 3
  2. B
    10,410, 4
    Correct answer
  3. C
    6,46, 4
  4. D
    10,510, 5

Answer

(B) 10 , 4 10, 4 10 , 4

Approach

Expand the look-ahead carry recurrence for C1 through C4 and count each product term as one AND gate; each carry expression is one OR of its product terms. The sum XOR gates are not part of the carry generator and are not counted in the requested AND/OR gate total.

Expanding the carry look-ahead generator to 4 bits gives 10 product terms requiring AND gates and four carry expressions requiring OR gates. The standard GATE answer is 10 AND gates, 4 OR gates, i.e. option B. The sum-bit XOR logic is separate and is not counted as AND/OR gates in this question.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.