Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Topics n Multipliers.
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Elementary school algorithm multiplicand x multiplier partial product
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Array multiplier n Array multiplier is an efficient layout of a combinational multiplier. n Array multipliers may be pipelined to decrease clock period at the expense of latency.
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Array multiplier organization x product skew array for rectangular layout multiplicand multiplier
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Unsigned array multiplier + x0y0x1y0x2y0 xny0 0 x0y1 + x1y1 0 + x0y2 + x1y P(2n-1) P(2n-2) P0
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Baugh-Wooley multiplier n Algorithm for two’s - complement multiplication. n Adjusts partial products to maximize regularity of multiplication array. n Moves partial products with negative signs to the last steps; also adds negation of partial products rather than subtracts.
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Booth multiplier n Encoding scheme to reduce number of stages in multiplication. n Performs two bits of multiplication at once - requires half the stages. n Each stage is slightly more complex than simple multiplier, but adder/subtracter is almost as small/fast as adder.
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Booth encoding n Two’s-complement form of multiplier: –y = -2 n y n + 2 n-1 y n n-2 y n n Rewrite using 2 a = 2 a a : –y = 2 n (y n-1 -y n ) + 2 n-1 (y n-2 -y n-1 ) + 2 n-2 (y n-3 -y n-2 ) +... n Consider first two terms: by looking at three bits of y, we can determine whether to add x, 2x to partial product.
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Booth actions y i y i-1 y i-2 increment x 0 1 0x x x x x
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Booth example n x = (25 10 ), y = ( ). y 1 y 0 y -1 = 100, P 1 = P 0 - (10 ) = y 3 y 2 y 1 = 111, P 2 = P 1 0 = n y 5 y 4 y 3 = 101, P 3 = P =
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Booth structure
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Wallace tree n Reduces depth of adder chain. n Built from carry-save adders: –three inputs a, b, c –produces two outputs y, z such that y + z = a + b + c n Carry-save equations: –y i = parity(a i,b i,c i ) –z i = majority(a i,b i,c i )
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Wallace tree structure
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Wallace tree operation n At each stage, i numbers are combined to form ceil(2i/3) sums. n Final adder completes the summation. n Wiring is more complex. n Can build a Booth-encoded Wallace tree multiplier.
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Serial-parallel multiplier n Used in serial-arithmetic operations. n Multiplicand can be held in place by register. n Multiplier is shfited into array.
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR Serial-parallel multiplier structure
Modern VLSI Design 2e: Chapter 6 Copyright 1998 Prentice Hall PTR