Docsity

Carry look-ahead adder, Study notes of Digital Logic Design and Programming

Toggle sidebar
bg1
Carry look-ahead adder
The ripple-carry adder, its limiting factor is the time it takes to propagate the carry. The
carry look-ahead adder solves this problem by calculating the carry signals in advance,
based on the input signals. The result is a reduced carry propagation time.
To be able to understand how the carry look-ahead adder works, we have to manipulate
the Boolean expression dealing with the full adder. The Propagate P and generate G in a
full-adder, is given as:
Pi = Ai ⊕ Bi Carry propagate
Gi = AiBBi Carry generate
Notice that both propagate and generate signals depend only on the input bits and thus
will be valid after one gate delay.
The new expressions for the output sum and the carryout are given by:
Si = Pi ⊕ Ci-1
Ci+1= Gi + PiCi
These equations show that a carry signal will be generated in two cases:
1) if both bits Ai and Bi are 1
2) if either Ai or Bi is 1 and the carry-in Ci is 1.
Let's apply these equations for a 4-bit adder:
C1 = G0 + P0C0
C2 = G1 + P1C1 = G1 + P1(G0 + P0C0) = G1 + P1G0 + P1P0C0
C3 = G2 + P2C2 = G2 + P2G1 + P2P1G0 + P2P1P0C0
C4 = G3 + P3C3 = G3 + P3G2 + P3P2G1 + P3P2P1G0 + P3P2P1P0C0
pf3
pf4

Partial preview of the text

Download Carry look-ahead adder and more Study notes Digital Logic Design and Programming in PDF only on Docsity!

Carry look-ahead adder

The ripple-carry adder, its limiting factor is the time it takes to propagate the carry. The carry look-ahead adder solves this problem by calculating the carry signals in advance, based on the input signals. The result is a reduced carry propagation time.

To be able to understand how the carry look-ahead adder works, we have to manipulate the Boolean expression dealing with the full adder. The Propagate P and generate G in a full-adder, is given as:

P Gi = Ai ⊕ Bi Carry propagate i = AiBB i Carry generate Notice that both propagate and generate signals depend only on the input bits and thus will be valid after one gate delay. The new expressions for the output sum and the carryout are given by: Si = Pi ⊕ Ci- Ci+1= Gi + PiCi These equations show that a carry signal will be generated in two cases:

  1. if both bits Ai and Bi are 1
  2. if either Ai or Bi is 1 and the carry-in Ci is 1. Let's apply these equations for a 4-bit adder:

C 1 = G 0 + P 0 C 0 C 2 = G 1 + P 1 C 1 = G 1 + P 1 (G 0 + P 0 C 0 ) = G 1 + P 1 G 0 + P 1 P 0 C 0 C 3 = G 2 + P 2 C 2 = G 2 + P 2 G 1 + P 2 P 1 G 0 + P 2 P 1 P 0 C 0 C 4 = G 3 + P 3 C 3 = G 3 + P 3 G 2 + P 3 P 2 G 1 + P 3 P 2 P 1 G 0 + P 3 P 2 P 1 P 0 C 0

These expressions show that C2, C3 and C4 do not depend on its previous carry-in. Therefore C 4 does not need to wait for C 3 to propagate. As soon as C 0 is computed, C 4 can reach steady state. The same is also true for C 2 and C 3 The general expression is Ci+1= Gi + PiGi-1 + PiPi-1Gi-2 + ……. PiPi-1….P 2 P 1 G 0 + PiPi-1 ….P 1 P 0 C 0. This is a two level circuit. In CMOS however the delay of the function is nonlinerly dependent on its fan in. Therefore large fanin gates are not practical.

Carry look-ahead adder’s structure can be divided into three parts: the propagate/generate generator Fig.1, the sum generator Fig. 2 and the carry generator Fig. 3.

Pi

Fig. 1 Propagate /Generate generator

Ai

Bi

Gi

Pi

Ci

Si

Figure 2: Sum Generator

Fig. 1 + Fig. 2 + Fig. 3 Figure 4: 4-bit Carry Look Ahead Adder