• edited by
23,935 views
78 78 votes

In a look-ahead carry generator, the carry generate function $G_i$ and the carry propagate function $P_i$ for inputs $A_i$ and $B_i$ are given by:

$$P_i = A_i \oplus B_i \text{ and }G_i = A_iB_i$$

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

$$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 $P_i$ and $G_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 $S_3, S_2, S_1, S_0$ and $C_4$ as  its outputs are respectively:

  1. $6, 3$
  2. $10, 4$
  3. $6, 4$
  4. $10, 5$

6 Answers

Best answer
84 84 votes

$C1 = G0 + C0.P0$

$C2 = G1 + G0.P1 + C0.P0.P1$

$C3 = G2 + G1.P2 + G0.P1.P2 + C0.P0.P1.P2$

$C4 = G3 + G2.P3 + G1.P2.P3 + G0.P1.P2.P3 + C0.P0.P1.P2.P3$  // read $C4$ as:

Carry is generated in $3^{rd}$ stage OR

Carry is generated in $2^{nd}$ stage AND propagated through $3^{rd}$ stage OR

Carry is generated in $1^{st}$ stage AND propagated through $2^{nd}$, $3^{rd}$ stage OR

Carry is generated in $0^{th}$ stage AND propagated through $1^{st}, 2^{nd}, 3^{rd}$stage OR

Initial carry $C_{0}$ is propagated through $0^{th}, 1^{st}, 2^{nd}, 3^{rd}$stage.

 

  • $1$ AND & $1$ OR gate for $C1$
  • $2$ AND & $1$ OR gate for $C2$
  • $3$ AND & $1$ OR gate for $C3$
  • $4$ AND & $1$ OR gate for $C4$

 To implement the look-ahead carry generator, $10 \text{ AND & } 4 \text{ OR}$ gates are required.

Correct Answer: B.

• edited by
17 17 votes
let the carry input be c0

Now,

c1 = g0 + p0c0 = 1 AND, 1 OR
c2 = g1 + p1g0 + p1p0c0
   = 2 AND, 1 OR

c3 = g2 + p2g1 + p2p1go + p2p1p0c0
   = 3 AND, 1 OR
c4 = g3 + p3g2 + p3p2g1 + p3p2p1g0 + p3p2p1p0c0
   = 4 AND, 1 OR

So, total AND gates = 1+2+3+4 = 10 , OR gates = 1+1+1+1 = 4

So as a general formula we can observe that we need a total of ” n(n+1)/2 ” AND gates and “n” OR gates for a n-bit carry look ahead circuit used for addition of two binary numbers.
9 9 votes

In a carry look ahead adder if we ignore input size of a gate, then to add two n bit numbers using CLA the total no of AND and OR gate required are as follows:

for C1= 1 OR + 1 AND; AS C1=C0*P0+G0

for C2=1 OR + 2 AND ; AS C2=C1*P1+G1=C0*P0*P1+G0*P1+G2

for C3=1 OR + 3AND;

.......

for Cn=1 OR + n AND

so total no of OR gates reduired is = n

and total no of AND gates required is = 1+2+3+....+n=n(n+1)/2

4 4 votes

I have written down every detail of what the question is trying to tell, and how we are approaching it.

final answer: $B$

p.s.- A different variation of this would be if the gates had a limited fan-in

3 3 votes

"Instead of any number of inputs if it was given as only 2 inputs to any gate allowed. " 

For 4 bit adder and when all Pi and Gi are available then 

Number of OR gates will be 10 

Number of AND gates will be 20 

0 0 votes
For n bit carry look ahead adder, if there is no restriction on fan in of "and" and "or" gate then

Total number of "And" gate in carry generator block is : n( n+1)/2.

Total number of "OR" gate in carry generator block is : n

For this question, total number of AND gate req is (4*5)/2 = 10

Total number of OR gate req is 4.
Answer:
Position:
Show:

Related questions

101 101 votes
8 answers 8 answers
26.5k
26.5k views
Rucha Shelke asked Sep 22, 2014
26,482 views
Given two three bit numbers $a_{2}a_{1}a_{0}$ and $b_{2}b_{1}b_{0}$ and $c$ the carry in, the function that represents the carry generate function when these two numbers ...
3 3 votes
3 3 answers
4.9k
4.9k views
admin asked Mar 31, 2020
4,908 views
In which of the following adder circuits, the carry look ripple delay is eliminated?Half adderFull adderParallel adderCarry-look ahead adder
0 0 votes
0 0 answers
1.3k
1.3k views
ajaysoni1924 asked Apr 3, 2019
1,301 views
(a) Redefine the carry propagate and carry generate as follows:$P _i = A _i + B _ i$$G _i = A _iB _i$Show that the output carry and output sum of a full adder becomes$C _...
0 0 votes
0 0 answers
770
770 views
ajaysoni1924 asked Apr 3, 2019
770 views
Using the AND-OR-Invert implementation procedure, show that the output carry in full adder can be expressed as $C _{i+1} = G _i + P _iC _i = (G _i’P _i + G _i’C...