Docsity

Multioperand Addition: Applications, Serial Implementation, and Tree Structures, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Multioperand Addition: Applications, Serial Implementation, and Tree Structures and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Multioperand Addition

Lecture 6

Applications of multioperand addition

Multiplication Inner product

s = ∑ x(i)^ y(i)^ = ∑

i=

n-

i=

n-

p(i)

p=a·x

Number of bits of the result

S = ∑ x(i)

i=

n-

x(i)^ ∈[0..2k-1]

Smin = 0 Smax = n (2k-1)

of bits of S = log 2 (Smax + 1) =

= log 2 (n (2k-1) + 1) ≤ log 2 n 2k^ =

= k + log 2 n

Serial implementation of multioperand addition

A Ripple-Carry vs. Carry-Save Adder

Carry propagate and carry-save adders

in dot notation

Specifying full- and half-adder blocks

in dot notation

Tree of carry save adders reducing

seven numbers to two

Latency

LatencyCSA = h(n) ⋅ TFA + LatencyCPA(k, n)

Tree height for n operands

Widths

CSA

CPA

k .. k + log 2 n

typically close to k bits ≤ k + log 2 n

Component Adders

Parameters of tree carry-save adders (1)

Maximum number of inputs that can be reduced to two by an h-level tree, n(h)

Parameters of tree carry-save adders (2)

n(0) = 2

n(h) = 3 n(h-1) 2

n(1) = 3 n(2) = 4 n(3) = 6

n(4) = 9 n(5) = 13 n(6) = 19

2 ( )h-1^ < n(h) ≤ 2 ( )h

Parameters of tree carry-save adders (3)

Smallest height of the tree carry save adder for n operands, h(n)

h(n) = 1 + h( 23 n )

h(n) ≥ log ( )

h(2) = 0

n 2

3 2