Booth Recoding
Booth Recoding
Booth Recoding
Booth multiplication is a technique that allows for smaller, faster multiplication circuits, by recoding the numbers that are multiplied. It is the standard technique used in chip design, and provides significant improvements over the "long multiplication" technique.
0 0 0 0 0 1 0 0 1
0 0 0 0 1
0 0 0 1
With this system, the number of partial products is exactly the number of columns in the multiplier.
The advantage of this method is the halving of the number of partial products. This is important in circuit design as it relates to the propagation delay in the running of the circuit, and the complexity and power consumption of its implementation. It is also important to note that there is comparatively little complexity penalty in multiplying by 0, 1 or 2. All that is needed is a multiplexer or equivalent, which has a delay time that is independent of the size of the inputs. Negating 2's complement numbers has the added complication of needing to add a "1" to the LSB, but this can be overcome by adding a single correction term with the necessary "1"s in the correct positions.
Figure 1 : Grouping of bits from the multiplier term, for use in Booth recoding. The least significant block uses only two bits of the multiplier, and assumes a zero for the third bit.
The overlap is necessary so that we know what happened in the last block, as the MSB of the block acts like a sign bit. We then consult the table 2-3 to decide what the encoding will be. Block Partial Product 000 0 001 1 * Multiplicand 010 1 * Multiplicand 011 2 * Multiplicand 100 -2 * Multiplicand 101 -1 * Multiplicand 110 -1 * Multiplicand 111 0
Table 1 : Booth recoding strategy for each of the possible block values.
Since we use the LSB of each block to know what the sign bit was in the previous block, and there are never any negative products before the least significant block, the LSB of the first block is always assumed to be 0. Hence, we would recode our example of 7 (binary 0111) as :
block 0 : block 1 : 0 1 1 1 1 1 0 0 1 1 Encoding : * (-1) Encoding : * (2)
In the case where there are not enough bits to obtain a MSB of the last block, as below, we sign extend the multiplier by one bit.
0 0 1 1 1 block 0 : 1 1 0 block 1 : 0 1 1 block 2 : 0 0 0 Encoding : * (-1) Encoding : * (2) Encoding : * (0)
1 1 1 1 0 0 0 0 1 0 0 0 1 1
0 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0 0 0 1 0
0 1 1 , 0 1 1 , 1 -1 , 1 0 0 , 1 0 0 1 0 0 1
One possible implementation is in the form of a Booth recoder entity, such as the one in figure 216, with its outputs being used to form the partial product:
In figure 2,
The zero signal indicates whether the multiplicand is zeroed before being used as a partial product The shift signal is used as the control to a 2:1 multiplexer, to select whether or not the partial product bits are shifted left one position. Finally, the neg signal indicates whether or not to invert all of the bits to create a negative product (which must be corrected by adding "1" at some later stage)
The described operations for booth recoding and partial product generation can be expressed in terms of logical operations if desired but, for synthesis, it was found to be better to implement the truth tables in terms of VHDL case and if/then/else statements.
The problem with implementing this in hardware is that the first partial product needs to be sign extended by 6 bits, the second by four bits, and so on. This is easily achievable in hardware, but requires additional logic gates than if those bits could be permanently kept constant.
1 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 1 0 1 1
0 0 0 1 0 1 1 0 0 0 0 1 0 0 1 1 0 1 0 0 0 1
Invert the most significant bit (MSB) of each partial product Add an additional '1' to the MSB of the first partial product Add an additional '1' in front of each partial product
This technique allows any sign bits to be correctly propagated, without the need to sign extend all of the bits.
0 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 0 0 1 1 0 1 (additional "1"s) 0 1 0 0 1 1 0 0 0 1 0 0 0 1 , error correction for negation
References
Weste, Neil H.E. and Eshraghian, Kamran, Principles of CMOS VLSI Design: A systems perspective, Addison-Wesley Publishing Company, 2nd ed., 1993, pp547-555.