Information
-
Patent Application
-
20040225706
-
Publication Number
20040225706
-
Date Filed
May 05, 200321 years ago
-
Date Published
November 11, 200420 years ago
-
CPC
-
US Classifications
-
International Classifications
Abstract
One embodiment of the present invention provides a circuit that performs a prefix computation. This circuit includes an N-bit prefix network comprised of prefix cells arranged into L+l logic levels, wherein the prefix network computes N outputs {YN, . . . , Y1} from N inputs {XN, . . . , X1} using an associative two-input operator ∘, such that, Y1=X1, Y2=X2∘X1, Y3=X3∘X2∘X1, . . . , and YN=XN∘XN−1 ∘X2∘X1. Within this prefix network, each prefix cell has a fanout of at most 2f+1, and there are at most 2t horizontal wiring tracks between each logic level. Additionally, l+f+t=L−1, and unlike existing prefix circuits, l>0, f>0, and t>0.
Description
BACKGROUND
[0001] 1. Field of the Invention
[0002] The present invention relates to circuitry for performing computational operations. More specifically the present invention relates to designs for parallel prefix networks that perform prefix computations, wherein the designs make tradeoffs between number of logic levels, fanout, and number of horizontal wiring tracks between logic levels.
[0003] 2. Related Art
[0004] In order to keep pace with continually increasing microprocessor clock speeds, computational circuitry within the microprocessor core must perform computational operations at increasingly faster rates. Parallel prefix networks are widely used to speed up such computational operations, for example in performing a high-speed addition operation.
[0005] A parallel prefix circuit computes N outputs {YN, . . . , Y1} from N inputs {XN, . . . , X1} using an arbitrary associative two-input operator ∘ as follows
1
[0006] Common prefix computations include addition, incrementation, priority encoding, etc. Most prefix computations precompute intermediate variables {ZN:N, . . . , Z1:1} from the inputs. The prefix network combines these intermediate variables to form the prefixes {ZN:1, . . . , Z1:1}. The outputs are postcomputed from the inputs and prefixes.
[0007] For example, adders take inputs {AN, . . . , A1}, {BN, . . . , B1} and Cin and produce a sum output {SN, . . . , S1} using intermediate generate (G) and propagate (P) prefix signals. The addition logic performs the following calculations, and an example of a corresponding 4-bit addition circuit is illustrated in FIG. 1.
Precomputation: Gi:i=Ai·Bi G0:0=Cin (1)
P
i:i
−A
i
⊕B
i
P
0:0
=0
Prefix: Gi:j=Gi:k+Pi:k·Gk−1:j (2)
P
i:j
=P
i:k
·P
k−1:j
Postcomputation: Si=Pi⊕Gi−1:0 (3)
[0008] A priority encoder may be structured similarly with different logic functions in each portion:
Xi:i={overscore (A)}i bitwise precomputation
X
i:j
=X
i:k
·X
k−1:j
group logic (5)
Y
i
=A
i
X
i−1:1
output logic
[0009] There are many ways to perform the prefix computation. For example, serial-prefix structures such as ripple carry adders are compact but have a latency O(N). Single-level carry lookahead structures reduce this latency by a constant factor. More significantly, parallel prefix circuits use a tree network to reduce this latency to O(log N) and are widely used in fast adders, priority encoders, and other circuits that perform prefix computations. (Priority encoders are described in C. Huang, J. Wang, and Y. Huang, “Design of high-performance CMOS priority encoders and incrementer/decrementers using multilevel lookahead and multilevel folding techniques,” IEEE J. Solid-State Circuits, vol. 37, no. 1, pp. 63-76, January 2002.)
[0010] Many parallel prefix networks have been described in the literature, especially in the context of addition. The classic networks include Sklansky (see J. Sklansky, “Conditional-sum addition logic,” IRE Trans. Electronic Computers, vol. EC-9, pp. 226-231, June 1960.), Brent-Kung (see R. Brent and H. Kung, “A regular layout for parallel adders,” IEEE Trans. Computers, vol. C-31, no. 3, pp. 260-264, March 1982.) and Kogge-Stone (see P. Kogge and H. Stone, “A parallel algorithm for the efficient solution of a general class of recurrence relations,” IEEE Trans. Computers, vol. C-22, no. 8, pp. 786-793, August 1973.).
[0011] An ideal prefix network has log2N stages of logic, a fanout never exceeding 2 at each stage, and no more than one horizontal track of wire at each stage. The classic architectures of Brent-Kung, Sklansky, and Kogge-Stone deviate from this ideal with 2log2N stages, fanout of N/2+1, and N/2 horizontal tracks, respectively. The Ladner-Fischer family of networks offers tradeoffs in fanout and stages between Sklansky and Brent-Kung (see R. Ladner and M. Fischer, “Parallel prefix computation,” J. ACM, vol. 27, no. 4, pp. 831-838, October 1980.). Similarly, the Han-Carlson family of networks trades off stages and wiring between Brent-Kung and Kogge-Stone (see T. Han and D. Carlson, “Fast area-efficient VLSI adders,” Proc. 8th Symp. Comp. Arith., pp. 49-56, September 1987.). Finally, the Knowles family trades off fanout and wiring between Ladner-Fischer and Kogge-Stone (see [K01] S. Knowles, “A family of adders,” Proc. 15th IEEE Symp. Comp. Arith., pp. 277-281, June 2001.). The Kowalczuk-Tudor-Mlynek prefix network has also been proposed, but this network is serialized in the middle and hence is not as fast for wide adders (see J. Kowalczuk, S. Tudor, and D. Mlynek, “A new architecture for an automatic generation of fast pipeline adders,” Proc. European Solid-State Circuits Conf., pp. 101-104, 1991.).
[0012] Parallel prefix networks are distinguished by the arrangement of prefix cells. FIGS. 2A-2G illustrate seven such networks for N=16. The upper box performs the precomputation and the lower box performs the postcomputation. In the middle, black cells (cross-hatched), gray cells (single-hatched), and white buffers comprise the prefix network. Black cells perform the full prefix operation, as given in equation (2). In certain cases (represented by gray cells), only part of the intermediate variable is required. For example, in many adder cells, only the Gi:0 signal is required, and the Pi:0 signal may be discarded. Such gray cells have lower input capacitance. White buffers are used to reduce the loading of later non-critical stages on the critical path. In FIGS. 2A-2G, the span of bits covered by each cell output is listed near the cell's output. Moreover, the critical path is indicated with a heavy line.
[0013] The prefix networks in FIGS. 2A-2G illustrate the tradeoffs in each network between number of logic levels, fanout, and horizontal wiring tracks. All three of these tradeoffs impact latency. For example, Huang and Ercegovac have shown that networks with large number of wiring tracks increase the wiring capacitance because the tracks are packed on a tight pitch to achieve reasonable area (see Z. Huang and M. Ercegovac, “Effect of wire delay on the design of prefix adders in deep submicron technology,” Proc. 34th Asilomar Conf. Signals, Systems, and Computers, vol. 2, pp. 1713-1717, 2000.).
[0014] Observe that the Brent-Kung, Han-Carlson, and Ladner-Fischer designs never have more than one black (cross-hatched) or gray (single-hatched) cell in each pair of bits on any given row. This suggests that the datapath layout may use half as many columns, which saves area and reduces wire length.
[0015] Also note that when the Knowles network is used for addition, propagate must be defined with an OR rather than an XOR. We can see this by considering the gray cell computing G8:0=G8:1+P8:1G1:0. If A1=B1=1, the logic is correct for P1=A1+B1 but not for P1=A1⊕A1⊕B1.
[0016] Although the above-described parallel prefix networks generally make reasonable tradeoffs between logic levels, fanout and number of horizontal wiring tracks between logic levels, they do not cover all possible points in the design space. Hence, they do not provide optimal parallel prefix networks under certain assumptions for relative costs between logic levels, fanout and wiring tracks.
SUMMARY
[0017] One embodiment of the present invention provides a circuit that performs a prefix computation. This circuit includes an N-bit (N=2L) prefix network comprised of prefix cells arranged into L+l logic levels, wherein the prefix network computes N outputs {YN, . . . , Y1} from N inputs {XN, . . . , X1} using an associative two-input operator ∘, such that Y1=X1, Y2=X2∘X1, Y3=X3∘X2∘X1, . . . , YN=XN∘XN∘ . . . ∘X2∘X1. Within this prefix network, each prefix cell has a fanout of at most 2f+1, and there are at most 2t horizontal wiring tracks between each logic level. Additionally, l+f+t=L−1, and unlike existing prefix networks l>0, f>0, and t>0.
[0018] In a variation on this embodiment, the N-bit prefix network is part of: an adder, a subtracter, a magnitude comparator, a priority encoder, or a circuit that finds the first two ones in an N-bit input.
[0019] In a variation on this embodiment, the N-bit prefix network functions as part of a 16-bit adder, wherein (l,f,t)=(1,1,1).
[0020] In a variation on this embodiment, the N-bit prefix network functions as part of a 32-bit adder, wherein (l,f,t)=(2,1,1), (1,2,1) or (2,1,1).
[0021] In a variation on this embodiment, the N-bit prefix network functions as part of a 64-bit adder, wherein (l,f,t)=(1,1,3), (1,2,2), (1,3,1), (2,1,2), (2,2,1) or (3,1,1).
[0022] In a variation on this embodiment, the N-bit prefix network functions as part of a 128-bit adder, wherein (l,f,t)=(1,1,4), (1,2,3), (1,3,2), (1,4,1), (2,1,3), (2,2,2), (2,3,1), (3,1,2), (3,2,1) or (4,1,1).
[0023] In a variation on this embodiment, precomputation operations are merged into the N-bit prefix network.
[0024] In a variation on this embodiment, the N-bit (l, f, t) prefix network is formed from an M-bit (0, f, t) Knowles network by adding l stages before and after the M-bit Knowles network, wherein N=2lM, and wherein the prefix network has 2 l+logM stages.
[0025] In a variation on this embodiment, logic levels in the prefix network include prefix cells that perform prefix operations, and buffers that reduce loading for subsequent logic levels.
[0026] One embodiment of the present invention provides a circuit that performs a prefix computation. This circuit includes an N-bit (N=vL) prefix network comprised of prefix cells arranged into L+l logic levels, wherein the prefix network computes N outputs {YN, . . . , Y1} from N inputs {XN, . . . , X1} using an associative operator ∘, such that Y1=X1, Y2=X2∘X1, Y3=X3∘X2∘X0, . . . , YN=XN∘ . . . ∘XN−1∘ . . . ∘X2∘X1. In this prefix network, each prefix cell has a valency v and a fanout of at most (v−1)vf+1. Moreover, there are at most (v−1)vt horizontal wiring tracks between each logic level. Additionally, l+f+t=L−1, and unlike existing prefix networks l>0, f>0, and t>0.
BRIEF DESCRIPTION OF THE FIGURES
[0027]
FIG. 1 illustrates a four-bit adder.
[0028]
FIG. 2A illustrates a Brent-Kung prefix network.
[0029]
FIG. 2B illustrates a Sklansky prefix network.
[0030]
FIG. 2C illustrates a Kogge-Stone prefix network.
[0031]
FIG. 2D illustrates a Ladner-Fischer prefix network.
[0032]
FIG. 2E illustrates another Ladner-Fischer prefix network.
[0033]
FIG. 2F illustrates a Han-Carlson prefix network.
[0034]
FIG. 2G illustrates a Knowles prefix network.
[0035]
FIG. 3 illustrates a taxonomy of prefix networks in accordance with an embodiment of the present invention.
[0036]
FIG. 4 illustrates a new 16-bit prefix network, wherein (l,f,t)=(1,1,1) in accordance with an embodiment of the present invention.
[0037]
FIG. 5A illustrates a new -32-bit prefix network, wherein (l,f,t)=(2,1,1) in accordance with an embodiment of the present invention.
[0038]
FIG. 5B illustrates a new 32-bit prefix network, wherein (l,f,t)=(1,2,1) in accordance with an embodiment of the present invention.
[0039]
FIG. 5C illustrates a new 32-bit prefix network, wherein (l,ft)=(1,1,2) in accordance with an embodiment of the present invention.
[0040]
FIG. 6 illustrates recursive construction of a parallel prefix network in accordance with an embodiment of the present invention.
[0041] Table 1 presents a comparison of parallel prefix architectures in accordance with an embodiment of the present invention.
[0042] Table 2 illustrates how latency varies as a function of circuit size in accordance with an embodiment of the present invention.
[0043] Table 3 illustrates how latency varies based on circuit family in accordance with an embodiment of the present invention.
[0044] Table 4 illustrates how latency varies based on wire capacitance in accordance with an embodiment of the present invention.
DETAILED DESCRIPTION
[0045] The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
[0046] New Taxonomy
[0047] Parallel prefix structures may be classified with a three-dimensional taxonomy (l,f,t) corresponding to the number of logic levels, fanout, and wiring tracks. For an N-bit parallel prefix structure with L=log2N, the variables l, f and t are integers in the range [0, L−1] indicating:
[0048] Logic Levels: L+l
[0049] Fanout: 2f+1
[0050] Wiring Tracks: 2t
[0051] This taxonomy is illustrated in FIG. 3 for N=16. The number of logic levels, fanout, and wiring tracks are annotated along each axis in parentheses. The parallel prefix networks from the previous section all fall on the plane l+f+t=L−1, suggesting an inherent tradeoff between logic levels, fanout, and wiring tracks. The Brent-Kung (L−1,0,0), Sklansky (0,L−1,0), and Kogge-Stone (0,0,L−1) networks lay at the extremes. The Han-Carlson (1,0,L−2) network reduces the wiring tracks of the Kogge-Stone network by nearly a factor of two at the expense of an extra level of logic. In general, Han and Carlson describe a family of networks along the diagonal (l, 0, t) with l+t=L−1. Similarly, the Knowles family of networks occupy the diagonal (0,f,t) with f+t=L−1 and the Ladner-Fischer family occupy the diagonal (l,f,0) with l+f=L−1.
[0052] Knowles networks are described by L integers specifying the fanout at each stage. For example, the [8,4,2,1] and [1,1,1,1] networks represent the Sklansky and Kogge-Stone extremes, respectively, and the [2,1,1,1] Knowles network is illustrated in FIG. 2G. In general, a (0, f, t) network corresponds to, the Knowles network [2f, 2f−1, . . . , 1, 1], which is the Knowles network closest to the diagonal.
[0053] New Parallel Prefix Networks
[0054] The above-described taxonomy suggests that there exists more parallel prefix networks. Note that the parallel prefix networks occupy places where the l+f+t=L−1 plane intersects the cube. The Sklansky, Brent-Kung, and Kogge-Stone networks lie at the vertices of the cube. The Ladner-Fischer, Han-Carlson, and Knowles networks occupy the diagonals of each face. However, there is an entirely new class of networks inside the cube, occupying locations where l, f t>0. Like Knowles, this class requires propagate be defined with OR for addition.
[0055] For example, FIG. 4 illustrates a 16-bit network, wherein (l,f,t)=(1,1,1). FIGS. 5A-5C illustrate 32-bit networks, wherein (l,f,t)=(1,1,2), (1,2,1), and (2,1,1), respectively.
[0056] Comparisons
[0057] Table 1 compares some of the parallel prefix networks under consideration.
1TABLE 1
|
|
ArchitectureClassificationLogic LevelsMax FanoutTracksCols
|
Brent-Kung(L-1, 0, 0)L + (L − 1)21N/2
Sklansky(0, L-1, 0)LN/2 + 11N
Kogge-Stone(0, 0, L-1)L2N/2N
Han-Carlson(1, 0, L-2)L + 12N/4N/2
Knowles [2,1, . . ., 1](0, 1, L-2)L3N/4N
Ladner-Fischer(L-2, 1, 0)L + (L − 2)31N/2
Ladner-Fischer(1, L-2, 0)L + 1N/4 + 11N/2
Ladner-Fischer + helpers(1, L-2, 0)L + 1N/4 + 1 + helpers2N/2
(1, 1, L-3)(1, 1, L-3)L + 13N/8N/2
|
[0058] The delay through each network depends on the number of logic levels, the fanout, and the wire capacitance. All prefix cells are designed to have the same drive capability; this drive is arbitrary and generally greater than minimum. The wire capacitance depends on layout and process, and can be expressed by w, the ratio of wire capacitance per column traversed to input capacitance of a unit inverter. Reasonable estimates from a trial layout in a 180 nm process are w=0.5 for widely spaced tracks and w=1 for networks with a large number of tightly spaced wiring tracks. Note that extra gates called “helpers” can be wired in parallel to drive large loads.
[0059] The method of logical effort can be used to estimate the latency adders built with each prefix network (see I. Sutherland, R. Sproul, and D. Harris, Logical Effort, San Francisco: Morgan Kaufmann Publishers, 1999.). Tables 2 through 4 present these estimates illustrating how latency for different prefix networks depends on adder size, circuit family, and wire capacitance, respectively.
2TABLE 2
|
|
Adder delays: w = 0.5; inverting static CMOS/footed domino
N = 16N = 32N = 64N = 128
|
Brent-Kung10.4/9.913.7/13.018.1/17.424.9/24.2
Sklansky13.0/8.821.6/12.438.2/18.370.8/28.2
Kogge-Stone 9.4/7.412.4/10.017.0/14.124.8/21.5
Han-Carlson 9.9/7.712.1/9.4 15.1/12.019.7/16.1
Knowles [2, 1, . . ., 1] 9.7/7.912.7/10.317.3/14.525.1/21.8
Ladner-Fischer (L-2, 1, 0) 9.9/9.012.9/12.016.9/16.022.9/21.9
Ladner-Fischer (1, L-2, 0)10.6/8.415.2/10.823.8/14.540.4/20.3
Ladner-Fischer (1, L-2, 0) 9.7/8.011.6/9.5 13.8/11.116.2/12.0
w/helpers
(1, 1, L-3)10.7/8.112.9/9.8 15.9/12.420.5/16.5
|
[0060]
3
TABLE 3
|
|
|
Adder delays: w = 0.5; N = 32/64
|
Inverting
Noninverting
Footed
Unfooted
|
Static CMOS
Static CMOS
Domino
Domino
|
|
Brent-Kung
13.7/18.1
16.8/21.8
13.0/17.4
10.7/14.6
|
Sklansky
21.6/38.2
16.3/23.4
12.4/18.3
10.5/15.9
|
Kogge-Stone
12.4/17.0
13.4/18.0
10.0/14.1
8.7/12.7
|
Han-Carlson
12.1/15.1
13.3/16.4
9.4/12.0
7.9/10.3
|
Ladner-Fischer
12.9/16.9
15.6/20.2
12.0/16.0
9.8/13.3
|
(L-2, 1, 0)
|
Ladner-Fischer
15.2/23.8
14.5/19.1
10.8/14.5
8.9/12.1
|
(L-2, 1, 0)
|
Ladner-Fischer
11.6/13.8
12.9/15.0
9.5/11.1
7.7/9.1
|
(1, L-2, 0) w/helpers
|
(1, 1, L-3)
12.9/15.9
13.8/16.9
9.8/12.4
8.3/10.6
|
|
[0061]
4
TABLE 4
|
|
|
Adder delays: inverting static CMOS; N = 32/64
|
w = 0
w = 0.25
w = 0.5
w = 0.75
w = 1
|
|
Brent-Kung
11.4/13.4
12.5/15.7
13.7/18.1
14.8/20.4
15.9/22.7
|
Sklansky
18.5/31.9
20.1/35.0
21.6/38.2
23.1/41.4
24.7/44.5
|
Kogge-Stone
9.3/10.7
10.9/13.9
12.4/17.0
13.9/20.1
15.5/23.3
|
Han-Carlson
10.5/11.9
11.3/13.5
12.1/15.1
12.9/16.7
13.7/18.3
|
Knowles
9.6/11.0
11.2/14.2
12.7/17.3
14.3/20.4
15.8/23.6
|
[2, 1, . . .,
|
1]
|
Ladner-
11.1/13.1
12.0/15.0
12.9/16.9
13.9/18.9
14.8/20.8
|
Fischer
|
(L-2, 1, 0)
|
Ladner-
13.6/20.6
14.4/22.2
15.2/23.8
16.0/25.4
16.8/27.0
|
Fischer
|
(1, L-2, 0)
|
Ladner-
10.7/12.6
11.2/13.2
11.6/13.8
12.1/14.5
12.6/15.1
|
Fischer
|
(1, L-2, 0) +
|
helpers
|
(1, 1, L-3)
11.2/12.6
12.1/14.3
12.9/15.9
13.8/17.6
14.6/19.2
|
|
[0062] Recursive Network Construction
[0063] Note that it is possible to recursively construct parallel prefix networks. We begin with a (0, f, t) Knowles network constructed using the technique described in [K01]. Given an (l, f, t) N-bit network, FIG. 6 shows how to recursively construct a 2N-bit (l+1, f, t) network. It illustrates the particular case of N=4, but the technique readily generalizes. Indeed, this approach may be applied to any of the Knowles networks described in [K01]. Beginning with an N-bit Knowles network with log N stages, one can form a 2lN-bit network with 2 l+log N stages by applying the recursion l times.
[0064] Higher Valencies
[0065] Note that although this disclosure discusses valency-2 prefix operations (i.e. those that use 2-input associative operators), the results readily generalize to higher valency networks that combine more than two signals at each prefix cell (see A. Beaumont-Smith and C. Lim, “Parallel prefix adder design,” Proc. 15th IEEE Symp. Comp. Arith, pp. 218-225, June 2001.)
[0066] A similar taxonomy can be constructed for these higher valency networks. In general, an N-bit valency-v network requires L=logvN stages. It may still be described by (l,f,t) such that l+f+t=L−1. The network has the following properties:
[0067] Logic Levels: L+l
[0068] Fanout: (v−1)vf/+1
[0069] Wiring Tracks: (v−1)vt
[0070] For example, an 81-bit valency-3 (1,1,1) network can be constructed using 5 logic levels with a maximum fanout of 7 and a maximum of 6 wiring tracks between levels. Networks can also have mixed valency (e.g. a 16-bit adder could use a valency-4 first stage followed by two valency-2 stages). The extension of the taxonomy to mixed valencies should be apparent to anyone of ordinary skill in the art.
[0071] Ling Networks
[0072] It is sometimes possible to save a level of logic by merging the precomputation into the first stage of the prefix network. A common example is the Ling adder built in bipolar logic, although this technique can also be applied to dynamic CMOS logic. (see H. Ling, “High-speed binary adder,” IBM J. Research and Development, vol. 25, no. 3, pp. 155-166, May 1981.) A merged prefix network of this type may still be classified based on its structure ignoring the merged precomputation.
[0073] The foregoing descriptions of embodiments of the present invention have been presented for purposes of illustration and description only. They are not intended to be exhaustive or to limit the present invention to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. Additionally, the above disclosure is not intended to limit the present invention. The scope of the present invention is defined by the appended claims.
Claims
- 1. A circuit that performs a prefix computation, comprising:
an N-bit prefix network comprised of prefix cells arranged into L+l logic levels; wherein the N-bit prefix network computes N outputs {YN, . . . , Y1} from N inputs {XN, . . . , X1} using an associative two-input operator ∘, such that Y1=X1, Y2=X2∘X1, Y3=X3∘X2∘X1, . . . , YN=XN−1∘ . . . ∘X2∘X1; wherein each prefix cell has a fanout of at most 2f+1; and wherein there are at most 2t horizontal wiring tracks between each logic level; wherein l+f+t=L−1; and wherein l>0, f>0, and t>0.
- 2. The circuit of claim 1, wherein the N-bit prefix network functions as part of one of:
an adder; a subtracter; a magnitude comparator; a priority encoder; and a circuit that finds the first two ones in an N-bit input.
- 3. The circuit of claim 1,
wherein the N-bit prefix network functions as part of a 16-bit adder; and wherein (l,f,t)=(1,1,1).
- 4. The circuit of claim 1,
wherein the N-bit prefix network functions as part of a 32-bit adder; and wherein (l,f,t)=(2,1,1), (1,2,1) or (2,1,1).
- 5. The circuit of claim 1,
wherein the N-bit prefix network functions as part of a 64-bit adder; and wherein (l,f,t)=(1,1,3), (1,2,2), (1,3,1), (2,1,2), (2,2,1) or (3,1,1).
- 6. The circuit of claim 1,
wherein the N-bit prefix network functions as part of a 128-bit adder; and wherein (l,f,t)=(1,1,4), (1,2,3), (1,3,2), (1,4,1), (2,1,3), (2,2,2), (2,3,1), (3,1,2), (3,2,1) or (4,1,1).
- 7. The circuit of claim 1, wherein precomputation operations are merged into the N-bit prefix network.
- 8. The circuit of claim 1,
wherein the N-bit (l,f,t) prefix network is formed from an M-bit (0,f,t) Knowles network by adding l stages before and after the M-bit Knowles network; wherein N=2lM; and wherein the N-bit prefix network has 2l+logM stages.
- 9. The circuit of claim 1, wherein logic levels in the N-bit prefix network include:
prefix cells that perform prefix operations; and buffers that reduce loading for subsequent logic levels.
- 10. A circuit that performs a prefix computation, comprising:
an N-bit prefix network comprised of prefix cells arranged into L+l logic levels; wherein the N-bit prefix network computes N outputs {YN, . . . , Y1} from N inputs {XN, . . . , X1} using an associative operator ∘, such that Y1=X1, Y2=X2∘X1, Y3=X3∘X2∘X1, . . . , YN=XN∘XN−1∘ . . . ∘X2∘X1; wherein each prefix cell has a valency v and a fanout of at most (v−1)vf+1; and wherein there are at most (v−1)vt horizontal wiring tracks between each logic level; wherein l+f+t=L−1; and wherein l>0, f>0, and t>0.
- 11. The circuit of claim 10, wherein the valency v of each prefix cell is one of 2, 3 and 4.
- 12. The circuit of claim 10,
wherein the valency v of each prefix cell is 3; wherein the N-bit prefix network functions as part of an 81-bit adder; and wherein (l,f,t)=(1,1,1).
- 13. The circuit of claim 10 wherein the N-bit prefix network includes prefix cells with different valencies.
- 14. A computer system including a circuit that performs a prefix computation, comprising:
a processor; a memory; an functional unit within the processor; an N-bit prefix network within the functional unit comprised of prefix cells arranged into L+l logic levels; wherein the N-bit prefix network computes N outputs {YN, . . . , Y1} from N inputs {XN, . . . , X1} using an associative two-input operator ∘, such that Y1=X1, Y2=X2∘X1, Y3=X3∘X2∘X1, . . . , YN=XN∘XN−1∘ . . . ∘X2∘X1; wherein each prefix cell has a fanout of at most 2f+1; and wherein there are at most 2t horizontal wiring tracks between each logic level; wherein l+f+t=L−1; and wherein l>0, f>0, and t>0.
- 15. The computer system of claim 14, wherein the N-bit prefix network functions as part of one of:
an adder; a subtracter; a magnitude comparator; a priority encoder; and a circuit that finds the first two ones in an N-bit input.
- 16. The computer system of claim 14,
wherein the N-bit prefix network functions as part of a 16-bit adder; and wherein (l,f,t)=(1,1,1).
- 17. The computer system of claim 14,
wherein the N-bit prefix network functions as part of a 32-bit adder; and wherein (l,f,t)=(2,1,1), (1,2,1) or (2,1,1).
- 18. The computer system of claim 14,
wherein the N-bit prefix network functions as part of a 64-bit adder; and wherein (l,f,t)=(1,1,3), (1,2,2), (1,3,1), (2,1,2), (2,2,1) or (3,1,1).
- 19. The computer system of claim 14,
wherein the N-bit prefix network functions as part of a 128-bit adder; and wherein (l,f,t)=(1,1,4), (1,2,3), (1,3,2), (1,4,1), (2,1,3), (2,2,2), (2,3,1), (3,1,2), (3,2,1) or (4,1,1).
- 20. The computer system of claim 14, wherein precomputation operations are merged into the N-bit prefix network.
- 21. The computer system of claim 14,
wherein the N-bit (l,f,t) prefix-network is formed from an M-bit (0,f,t) Knowles network by adding l stages before and after the M-bit Knowles network; wherein N=2lM; and wherein the N-bit prefix network has 2l+logM stages.
- 22. The computer system of claim 14, wherein logic levels in the N-bit prefix network include:
prefix cells that perform prefix operations; and buffers that reduce loading for subsequent logic levels.
- 23. A computer system including a circuit that performs a prefix computation, comprising:
a processor; a memory; an functional unit within the processor; an N-bit prefix network within the functional unit comprised of prefix cells arranged into L+1/logic levels; wherein the N-bit prefix network computes N outputs {YN, . . . , Y1} from N inputs {XN, . . . , X1} using an associative operator ∘, such that Y1=X1, Y2=X2∘X1, Y3=X3∘X2∘X1, . . . , YN=XN∘XN−1∘ . . . ∘X2∘X1; wherein each prefix cell has a valency v and a fanout of at most (v−1)vf+1; and wherein there are at most (v−1)vt horizontal wiring tracks between each logic level; wherein l+f+t=L−1; and wherein l>0, f>0, and t>0.
- 24. The computer system of claim 23, wherein the valency v of each prefix cell is one of 2, 3 and 4.
- 25. The computer system of claim 23,
wherein the valency v of each prefix cell is 3; wherein the N-bit prefix network functions as part of an 81-bit adder; and wherein (l,f,t)=(1,1,1).
- 26. The computer system of claim 23, wherein the N-bit prefix network includes prefix cells with different valencies.