Csa Lab 2
Csa Lab 2
……………………………………………………………………………..
Engr. Amelia Liwanag
Instructor
I. Objective:
1. understanding behaviour of carry lookahead adder from module designed by the student as part of
the experiment
2. understanding the concept of reducing computation time with respect of ripple carry adder by using
carry generate and propagate functions
3. the adder will add two 4 bit numbers
II. Theory:
To reduce the computation time, there are faster ways to add two binary numbers by using carry lookahead
adders. They work by creating two signals P and G known to be Carry Propagator and Carry Generator.
The carry propagator is propagated to the next level whereas the carry generator is used to generate the
output carry ,regardless of input carry. The block diagram of a 4-bit Carry Lookahead Adder is shown here
below -
The number of gate levels for the carry propagation can be found from the circuit of full adder. The signal
from input carry Cin to output carry Cout requires an AND gate and an OR gate, which constitutes two gate
levels. So if there are four full adders in the parallel adder, the output carry C5 would have 2 X 4 = 8 gate
levels from C1 to C5. For an n-bit parallel adder, there are 2n gate levels to propagate through.
Pre-Experiment
Which one of the following will give the sum of full adders as output?
The MOST commonly used system for representing signed binary numbers is the
2's-complement system
1's-complement system
10's-complement system
Sign-magnitude system
The time required for a pulse to decrease from 90 to 10 per cent of its maximum value is called
Propagation delay
Rise time
Decay time
AND gate
OR gate
XOR gate
NOR gate
Subjective questions:
What is the number of gate levels for output carry in a parrel adder composed of 4 full adders?
- If there are four full-adders in the parallel adder, the output carry C5 would have 2*4=8 gate levels from
C1 to C5
What is the number of gate levels to propagate through for an n-bit parallel adder?
- For an n-bit parallel adder, there are 2n gate levels for the carry to propagate through.
Post-Experiment
The time and space complexity of carry look ahead adder are respectively.
O(n), O(nlogn)
O(n), O(1)
O(n), O(n)
O(logn), O(nlogn)
4 half-adders, 12 full-adders
8 half-adders, 8 full-adders
16 half-adders, 0 full-adders
The MOST commonly used system for representing signed binary numbers is the
2's-complement system
1's-complement system
10's-complement system
Sign-magnitude system
True
False
True
False
Subjective questions:
- Contrast the delay of the CLA adder with the worst case delay for the ripple carry adder, (2k + 1)D.
Consider the circuit cost of ripple-carry and CLA adders.
What is the advantage of carry look head adder over ripple carry adder?
-a ripple carry adder passes its carry bit through a long logic chain, which is very straightforward to design,
but can have a very large delay. And a carry-lookahead adder uses a clever algorithm to cut that logic to
only a few layers, and thus keeps the delay pretty short even for a worst-case situation.
- A carry-Lookahead adder is a fast-parallel adder as it reduces the propagation delay by more complex
hardware, hence it is costlier. In this design, the carry logic over fixed groups of bits of the adder is
reduced to two-level logic, which is nothing, but a transformation of the ripple carry design.
What is the number of additions in carry look head adder for adding m numbers?
- In ripple carry adders, for each adder block, the two bits that are to be added are available instantly.
However, each adder block waits for the carry to arrive from its previous block. So, it is not possible to
generate the sum and carry of any block until the input carry is known.
0 0 0 0 0 0 0 0 0000 0
0 0 1 0 1 0 1 1 1101 13
0 1 1 1 0 1 1 1 1110 14
1 1 0 1 1 0 0 0 0101 5
1 0 1 1 0 1 1 1 0010 2
0 0 0 1 0 1 1 1 0111 7
1 0 0 1 1 1 0 1 0110 6
0 1 1 0 1 1 0 1 0011 3
1 1 0 0 1 1 1 1 1011 11
0 0 0 0 1 0 1 0 1010 10
Reference
- https://www.electronicshub.org/carry-look-ahead-adder/
-https://www.edaboard.com/showthread.php?310023-ripple-carry-adder-vs-carry-lookahead-adder