Applications of Multioperand Addition
Applications of Multioperand Addition
Multioperand Addition
Inner product
Multiplication
n-1
p=ax
s=
n-1
x(i) y(i) =
p(i)
i=0
i=0
n-1
S=
x(i)
x(i) [0..2k-1]
i=0
Smin = 0
Smax = n (2k-1)
log2 n 2k =
= k + log2 n
a2 b2
an-1 bn-1
cn
FA
cn-1
...
c3
FA
a1 b1
c2
s2
sn-1
FA
a0 b0
c1
s1
FA
c0
s0
cn
a2 b2 c2
a1 b1 c1
a0 b0 c0
FA
...
FA
FA
FA
sn-1 cn-1
s3 c3
s2 c2
s1 c1
s0
Example
24 23 22 21 20
x
y
z
0 1 0 1 0
1 1 0 1 1
1 0 1 1 1
0 0 1 1 0
s
c 1 1 0 1 1
x+y+z = s + c
c4
c4
s3
c3
s3
c3
s2
c2
s2
s1
s1
c2
c1
c1
s0
s0
x
4
CSA
c
CSA
s
c
CPA
S
CSA tree
Implementation of
one-bit slice
Addition of seven
six-bit numbers
in dot notation
Adding seven
k-bit numbers:
block diagram
Tree height
for n operands
Component Adders
Widths
CSA
k .. k + log2 n
CPA
k + log2 n
typically
close to k bits
n(4) = 9
n(5) = 13
n(6) = 19
h(n) = 1 + h
h(2) = 0
h(n) log 3
2
( 2n )
0
a
1
b
1
c
1
d
1
e
0
s0
0 1
s1
s2 1 0 0
1
1
0
0
1
0
0
1
1
1
1
1
1
1
1
0
1
1
1
1
1 1 1 0
1 0 0
1 1
a+b+c+d+e = s0+s1+s2
d
c
b
LUT G
d
c
b
S1
0
LUT F
S0
c
w
d e
w w
a
w
b
w
CSA
d
w
e
w
PC
s1
s2
CSA
s0
CSA
CSA
CPA
CPA
w
y=a+b+c+d+e mod 2w
y=a+b+c+d+e mod 2w
(5, 5; 4)-counter
Unequal
columns
10
x(i)
Delays
s (i12)
+ x(i1)
x(i)
x(i4)
+ x(i5)
11