Field of the Invention
This invention relates generally to data processing systems, and more particularly to a layout topology of a multiplier array for use in data processing systems.
Background of the Invention
Today's high performance microprocessors must have the capability of supporting fast floating point and integer calculations. In order to support various applications environments (i.e. graphics image rendering) these microprocessors must perform multiply operations, using operands that have a 32 or 64-bit word length, at high clock rates. Typically, these microprocessors rely upon multiplier arrays to perform a set of floating point, integer and graphic multiply instructions. Generally, the number of circuit elements in a multiplier is proportional to N.sup.2 (where N is the word length in bits). Thus, one critical factor affecting implementation of a multiplier is the global layout considerations ("floorplan") of the circuit elements. Another critical factor is the speed at which the multiplier performs the multiply operation.
Since tree multipliers have a delay proportional to log(N), they are preferable in terms of performance to array multipliers, whose delay is proportional to N. Tree multipliers require large shifts of data perpendicular to the data path, therefore, implementation of tree multipliers is routing intensive. Thus, even though tree multipliers offer speed advantages over array multipliers, microprocessor designers have traditionally avoided using tree multipliers due to the circuit area required for their implementation.
It is, therefore, desirable to provide a tree multiplier floorplan which reduces the circuit area required for its implementation, while still providing the capability to perform high speed calculations.
Summary of the Invention
A Wallace tree multiplier array is coupled to a data path and performs multiply operations using operands received via the data path. Booth-encoded partial product generators receive a first operand representing a multiplier, and a second operand representing a multiplicand, and generate a predetermined set of partial product. Rows of carry save adders, connected to the Booth-encoded partial product generators, add a predetermined number of partial products to thereby generate sets of intermediate summands.
The intermediate summands are recursively added to generate a set of final summands. A first set of carry save adders compute a more significant number of bits of each of said set of intermediate summands and said set of final summands. The first set of adders form a column which is placed along the data path. The column height of the first set of adders is equal to and aligned by bit position with the height of the data path. A second set of carry save adders computes a less significant number of "sticky bits" of the set of intermediate summands and the set of final summands. The second set of adders are folded along an axis perpendicular to the column formed by the first set of adders, thereby forming a row of adders perpendicular to the data path.
Brief Description of the Drawings
FIG. 1 illustrates in block diagram form a prior art structure of a Wallace tree multiplier array;
FIG. 2 illustrates in block diagram form a prior art layout floorplan of a Booth-encoded Wallace tree multiplier array;
FIGS. 3A-B illustrate in block diagram form a multiple inverse L-fold layout floorplan for a Booth-encoded Wallace tree multiplier array, in accordance with a preferred embodiment of the present invention.
Description of a Preferred Embodiment
In a data processing system, multiplication operations may be performed at higher speeds by increasing the speed at which partial products are added recursively to generate the final product. Essentially, an n-bit multiplicand is multiplied by an m-bit multiplier, and m/2 partial products are generated. Booth-encoding is used to reduce the number of partial products to m/2. The m/2 partial products are then used by the data processor to generate a final product (result). Shown in FIG. 1 is a block diagram illustrating the structure of a conventional Wallace tree multiplier array 10. A Wallace tree is an interconnection of carry-save adders (CSAs) that reduces m/2 partial products to two operands. Generally, these partial products (N) are viewed as adjacent columns of equal-weight bits. The Wallace tree multiplier array 10 of FIG. 1 is a 16.times.64-bit Booth-encoded tree array structure. The CSAs blocks 15-21 shown in FIG. 1 represent rows of carry save adders, each of which reduces four bits of equal weight to two bits, one a sum (S) and the other a carry (C), which is hereinafter referred to as a 4.times.2 CSA.
Shown in FIG. 2 is a block diagram illustrating the floorplan 30 of a conventional Booth-encoded Wallace tree multiplier 30. In FIG. 2, analogous elements are numbered identically with FIG. 1. In the 32.times.64 multiplication, 16 Booth-encoded partial products (N.sub.1 -N.sub.16) are generated by the partial product generators 11-14. A first set of partial product generators 11 and 12 generate four partial products each (N.sub.1 -N.sub.4), and (N.sub.5 -N.sub.8), respectively. The set of first level CSAs 15 and 16 accepts the four partial products (N.sub.1 -N.sub.4), and (N.sub.5 -N.sub.8), and each generates two intermediate summands (IS.sub.1 -IS.sub.2) and (IS.sub.3 -IS.sub.4), respectively, as outputs. Each intermediate summand is 70-bits in length, which is hereinafter referred to as "column" height, which represents a dimension along the Y-axis. Similarly, a second set of partial generators 13 and 14 generate four partial products each (N.sub.9 -N.sub.12) and (N.sub.13 -N.sub.16), respectively. Another set of first level CSAs 17- 18 accepts the four partial products (N.sub.9 -N.sub.12) and (N.sub.13 -N.sub.16), respectively, and each generates two intermediate summands (IS.sub.5 -IS.sub.6) and (IS.sub.7 -IS.sub.8), respectively. As previously indicated, each intermediate summand is 70-bits in length. Thus, each of the first level CSAs 15-18 requires seventy rows of CSAs to generate the 70-bit intermediate summands.
As shown in FIG. 2, each of the second level CSAs 19 and 20 accepts the previous four intermediate summands (IS.sub.1 -IS.sub.4), and (IS.sub.5 -IS.sub.8), respectively, and each generates a set of level two intermediate summands (IS.sub.9 -IS.sub.10) and (IS.sub.11 -IS.sub.12), respectively, which are each 78-bit in length. Accordingly, each of the second level intermediate summands require seventy-eight rows of CSAs. This procedure continues until the third level CSA 21 generates the two final summands (FS.sub.1 and FS.sub.2), which are each 94-bits in length, and require 94 rows of CSAs. The most significant 64-bits of the two final summands are the final result, whereas, the least significant 30-bits are "sticky bits". A carry propagate adder 22 (FIG. 1) is then used to obtain the final result.
The structure of the conventional Wallace tree multiplier array 30, shown in FIG. 2, is irregular. Essentially, the multiplication operation begins with the height of the data path being 64-bits; however, the height of the final result increases to 94-bits, during the performance of the multiplication operation. Thus, the cell height of the final result extends approximately 45% beyond that the data path height, and therefore, requires additional layout area. Essentially, in the conventional Wallace tree multiplier array 10, the most significant bits (MSBs) of the final result are misaligned, in the y-direction, with the MSBs of the data path. Thus, it is necessary to downshift the MSB of the final result to align them with the data path. The routing channels required for performing the downshift operation also increases the area required to layout the multiplier array 30. Thus, due to the irregularity of the Wallace tree multiplier array 10 additional layout area is required.
Shown in FIGS. 3A and 3B, is a block diagram illustrating a multiple inverse L-fold layout floorplan for a Booth-encoded Wallace tree multiplier array 40, in accordance with a preferred embodiment of the present invention. In the preferred embodiment, the Wallace tree multiplier array 40 is a 32.times.64-bit tree array structure which uses 4.times.2 carry save adders (CSA) 15'-21'. In the preferred embodiment, the Wallace tree multiplier array 40 is connected to a 64-bit data bus, hereinafter referred to as data path 42, which provides the multiplier and multiplicand operands to the multiplier array 40. Thus, the height of the data path 42 is 64-bits.
In the preferred embodiment, the multiplier array 40 uses Booth partial product generators 11'-14' and a Wallace tree 10 (FIG. 1) to generate and sum the partial products. As shown in FIGS. 3A and 3B, each of the partial product generators 11'-14' provide four partial products to first level CSAs 15'-18'. In the first level of the Wallace tree, CSA 15' accepts four partial products (N.sub.1 -N.sub.4) generated by partial product generator 11', and generates two intermediate summands IS.sub.1 and IS.sub.2 as outputs. Similarly, CSA 16' accepts four partial products (N.sub.5 -N.sub.8) generated by partial product generator 12', and generates two intermediate summands IS.sub.3 and IS.sub.4 as outputs. Likewise, CSA 17' accepts four partial products (N.sub.9 -N.sub.12) generated by partial product generator 13', and generates intermediate summands IS.sub.5 and IS.sub.6. In the same manner, CSA 18' generates two intermediate summands IS.sub.7 and IS.sub.8 using the four partial products (N.sub.13 -N.sub.16) generated by partial product generator 14'.
As previously indicated, each of the intermediate summands (IS.sub.1 -IS.sub.8) will be 70-bits in length, and therefore, each will require seventy rows of CSAs. In the present invention, of the seventy CSAs required to generate each intermediate summands, the most significant sixty-four CSAs (bits 6-69) are placed along the 64-bit data path 42 (Y-axis), while the least significant six CSAs (bits 0-5) are placed along the X-axis, as shown in FIGS. 3A and 3B. Thus, both the height of the data path 42 and the height of the CSA column along the Y-axis are 64-bits, and the most significant bits of the intermediate summands (IS.sub.1 -IS.sub.8) are aligned with the data path 42.
Each of the second level CSAs 19' and 20' accepts first level intermediate summands (IS.sub.1 -IS.sub.4), and (IS.sub.5 -IS.sub.8), respectively, and each generates the second level intermediate summands (IS.sub.9 and IS.sub.10) and (IS.sub.11 and IS.sub.12), respectively, as shown in FIGS. 3A and 3B. As previously indicated, the second level intermediate summands are each 78-bits in length, and therefore, each will require seventy-eight rows of carry save adders. In accordance with the present invention, of the seventy-eight CSAs required to generate each of the intermediate results (IS.sub.9 -IS.sub.12), the most significant sixty-four CSAs (bits 14-77) are placed along the 64-bit data path 42, while the least significant fourteen CSAs (bits 0-13) are placed along the Y-axis. Thus, the MSBs of the second level intermediate summand bits are also aligned with the data path 42.
The third level CSA 21' accepts the second level intermediate summands (IS.sub.9 -IS.sub.12) generated by the second level CSAs 19' and 20', and generates two final summands (FS.sub.1 and FS.sub.2), which are each 94-bits in length. In the present invention, of the ninety-four CSAs required to generate each of the final summands FS.sub.1 and FS.sub.2, the most significant sixty-four CSA (bits 30-93) are placed along the 64-bit data path 42, while the least significant thirty CSAs (bits 0-29) are placed along the Y-axis. At each level, the floorplan of the Wallace tree multiplier array 40 limits the column height of the results (e.g. intermediate and final summands) to be the same height as the data path 42. Thus, in the present invention, the height of the most significant CSAs, at every level, will always be the same as that of the data path 42, while the least significant bits CSAs will be folded along the X-axis. Although in the present invention, the least significant CSAs are extended along the X-axis, the area required for this extension (approximately 22% in the Y-direction) is significantly less than the 45% extension required in the conventional Wallace tree multiplier array 30 (FIG. 2).
As shown in FIGS. 3A and 3B, each of the first level intermediate summands IS.sub.1 -IS.sub.2, and IS.sub.5 -IS.sub.6 are shifted eight bit positions to align with intermediate summands IS.sub.3 -IS.sub.4 and IS.sub.7 -IS.sub.8, respectively. Furthermore, the second level intermediate summand IS.sub.9 and IS.sub.10 are shifted sixteen bit positions to align with intermediate summands IS.sub.11 and IS.sub.12, respectively. The routing channels required to perform the shifting operations are also required, although not shown, in the conventional Booth-encoded Wallace tree multiplier 30 (FIG. 2). However, in the present invention, only these thirty-two routing channels are required to align the MSBs of the intermediate summands with the data path 42. In contrast, the conventional Booth-encoded Wallace tree multiplier 30 requires these thirty-two routing channels plus thirty-two more channels to align the final result with the height of the data path.
Thus, in the present invention, the "L-fold" layout of CSAs 15'-21' is used to keep the dimension of the multiplier along the data path 42 (Y-axis) to a minimum and to avoid unnecessary routing for the alignment of data. Accordingly, the "L-fold" design serves to keep the data of the proper significant (MSBs) aligned in the data path 42, while routing the data used for "sticky bit" calculation out of the data path 42. The result is a logical and orderly layout for a Wallace tree multiplier which reduces circuit area. The layout of the Wallace tree array 40 is designed to insure that the most significant bits of each result (intermediate or final summands) generated by the carry save adders 15'-21' is aligned to be the same height as that of the data path 42. Accordingly, in the present invention, the most significant CSAs are placed along the data path 42 (Y-axis), and the least significant bits are down shifted and placed along the bottom side (X-axis) of the data path 42. Essentially, multiple "L folds" are used to effectively place the least significant CSAs. Thus, the number of routing channels required for shifting the results is reduced.
While the present invention has been described in accordance with a preferred embodiment, it should be apparent to one of ordinary skill in the art that the invention may be practiced in numerous ways. For example, the Wallace tree structure 10 may be implemented with 3.times.2 CSAs (three inputs and two outputs). Furthermore, the partial products generated by the partial product generators 11'-14' need not be Booth-encoded. Accordingly, it is intended by the appended claims to cover all modifications of the invention which fall within the true spirit and scope of the invention.