Sunteți pe pagina 1din 11

MAC unit using

Carry lookahead adder and


Wallace tree multiplier
Done by
M.K.Sanju Vikasini-EVD16I007
Monika Shree K-EVD16I012
Carry look ahead adder
A carry look-ahead adder reduces the propagation delay by introducing more complex hardware. A carry-look ahead adder
improves speed by reducing the amount of time required to determine carry bits.

RCA- each stage must wait until the previous carry bit.

CLA- calculates one or more carry bits before the sum.


ALGORITHM
carry generate Gi and ‘carry propagate Pi

The sum output and carry output can be expressed as


Wallace tree multiplier- Algorithm
Wallace tree multiplication algorithm is divided into three major steps-
1. Generation of partial products
2. Addition of partial products
3. Generation of final results from the partial products
Wallace tree multiplier- Architecture

Advantage of the Wallace tree is small delay. Logic levels required to perform the summation can be
reduced.But it requires lot of hardware.
ALGORITHM
Various stages in Wallace tree Multiplier
● The multipliers and multiplicands are denoted by ‘ai’ and ‘bi’ respectively, where i =0,1,..3 for 4 bit
multiplier.

● At first, the partial products are generated by multiplying multiplicands and multipliers that is they are
the result of simple AND gates.All partial products are obtained simultaneously.

● Partial products present in first three successive rows are added using half adders and full adders to
generate ri and ci, where i =0,1,2..,5. ri are the sum bits and ci are the carry out bits of the adders of
the previous stage.

● ci, ri, and the partial products present in fourth row are further added to generate the sum pi and
carryout bits c_i where i=0,1,2..6.

● Carry c_i, and Pi are added in the final step to generate sum and carry which are denoted by si and
C6, where i= 0,1,..,6 which forms 8-bit output.
MAC UNIT -BLOCK DIAGRAM
Description of MAC unit
● This is a semi-parallel configuration optimised for medium speed and cost by using two multipliers
and two adders for getting higher speed by processing four inputs at a time instead of two inputs.
And at the same time, the overall cost of the system slightly increases due to the increase in number
of resources as compared to the case of single multiplier and single adder mac unit.
● Two four bit numbers I1 and I2 are given to the first multiplier. At the same time another pair of four
bit numbers I3 and I4 are given to second multiplier. Both multiplication happens parallely.
● Output from both the multipliers are given as input to the first adder and sum is sent to the main
adder.
● The main adder adds the sum output of the first adder with the value stored in the
accumulator.Finally,accumulator is updated with the sum output of the main adder.
● Now another set of four inputs are fed to the multipliers.
● The sum output of the first adder for the new set of inputs is added with the value present in the
accumulator using the main adder and the accumulator is updated accordingly.
● The above steps are repeated for every set of four inputs.
Thank You

S-ar putea să vă placă și