

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


In class we saw a carry-save adder that takes three inputs x, y, z and produces two outputs c, s such that x+y+z = c+s.
Consider a generalized carry-save adder that takes inputs x 0 , x 1 , x 2 , ..., xn− 1 and produces output y 0 , y 1 , ..., ym− 1 such
that n > m and
n− 1
i=
xi =
m− 1
j=
yj.
(a) Consider a 5-to-3 carry-save adder (n = 5, m = 3), with inputs x 4 , x 3 , x 2 , x 1 , x 0 and outputs y 2 , y 1 , y 0
. Fill in
the truth table for the y’s, given the 32 possible values of the x’s:
x 4 x 3 x 2 x 1 x 0 y 2 y 1 y 0
(b) Draw a Wallace tree using 5-to-3 carry-save adders to add 32 numbers together. After the last 5-to-3 CSA, you
will need to use a 3-to-2 CSA, followed by a final look-ahead carry adder (LCA/parallel-prefix adder) to complete
the carry.
(c) For N inputs each k bits in width, what is the asymptotic gate delay to add all N numbers together using 5-to-
carry-save adders (plus the final 3-to-2 and LCA)?
(d) For three outputs (m = 3), what is the maximum number of inputs (largest value of n)?
(e) Write the asymptotic delay to add N inputs each of k bits in width assuming X-to-3 carry save adders, where X
is the value from problem 1d.
algorithm can be extended to processes as many bits per step as you wish, although the logic gets more and more
complicated. Consider a Radix-8 Booth Multiplier (processes 3 bits per step). Fill in the following table to determine
the 3-bit Booth encoding, where M is the multiplier:
Current Bits Previous Bit Operation Reason
x i+ x i+ x i x i− 1
0 0 0 0 Nothing In middle of run of zeros
0 0 0 1 +M Ended a run of ones
0 0 1 0 +M Ended a run of zeros (-M ), Ended a run of ones (+2M )
basically boils down to adding k numbers together (assuming inputs are k-bit values). A 2-bit Booth encoding allows
you to group two bits together and only have to perform one addition (or subtraction) for those two bits. Similarly, a
3-bit Booth encoding allows you to only perform one addition per three bits.
16-bit multiplication would normally require adding together 16 numbers. Show how to use a 2-bit Booth encoding
to reduce a 16-bit multiplication to adding together only 8 numbers. Complete the multiplication by summing the 8
numbers with a Wallace tree (using 3-to-2 CSAs and a final LCA).
You may use regular logic gates, MUXes, and the following basic blocks:
Booth
x 2 x 1 x 0
x 3 x 4
x y z
c s
Booth
xi+1 xi xi− 1
x y
z
To get you started: