The present invention relates generally to the field of integrated circuit design, and more particularly to a method of and system for inserting buffers and sizing wires in a tree circuit so as to satisfy circuit timing constraints and minimize resource utilization.
Integrated circuits include wiring trees or nets in which a signal propagates through wires from a single source device to multiple sink devices. In order to meet timing constraints for the tree, the signal must arrive at each sink at or before a required arrival time (RAT). With the increase in speed and interconnect size in VLSI circuits, timing considerations have become increasingly critical.
The propagation speed, and consequent delay, of a signal in a wire is a function of resistance and capacitance of the wire. Resistance and capacitance of a wire are both functions of the length of the wire. Accordingly, delay is a proportional to the square of the length of the wire. Additionally, the resistance of a wire per unit of length is a inversely related to the cross-sectional area of the wire, although capacitance is directly related to cross-sectional area. Generally, thin, narrow wires cause more delay than thick, wide wires.
Timing optimization techniques, such as buffer insertion and wire sizing, have gained widespread acceptance. Buffer insertion can decouple large loads and reduce delays of long interconnects by dividing them into shorter pieces. The insertion of buffers in a long wire makes the delay essentially linear, rather than quadratic. Wire sizing and layer assignment, especially when thick metal layers are available, can reduce interconnect resistance, and thereby reduce delay.
The close dependence between the objectives of buffer insertion and wire sizing has led to several efforts that simultaneously insert buffers and wire sizes. However, those efforts have tended to be computationally inefficient or produce solutions that are not optimum.
The present invention provides a method of and system for optimizing a tree to meet timing constraints. The tree includes a single source node interconnected by wires to a plurality of sink nodes through a plurality of internal nodes. The method of the present invention inserts buffers at selected ones of the internal nodes of the tree to form a plurality of subtrees. The method sizes the wires of the subtrees according to a wire code for each subtree. According to the present invention, each wire of a subtree has the same wire code. The buffers are inserted and the wires are sized such that slack along the path from the source node to each sink node is equal to or greater than zero.
A wire code according to the present invention includes a layer assignment part and a width part for a wire assigned to a layer. The layer assignment code specifies a semiconductor layer for the wire, and the width code specifies a width for the wire. The layer assignment part includes a horizontal layer code and a vertical layer code, and the width part includes a horizontal width code defining a width for a wire in the horizontal layer and a vertical width code defining a width for a wire in the vertical layer.
Preferably, the buffers are inserted and the wires are sized according to a balancing parameter. The balancing parameter specifies a balance between buffer insertion and wire sizing. The cost of buffer insertion and wire sizing is a function of said balancing parameter. The method inserts the buffers and sizes the wires such that the cost is equal to or less than a predefined upper cost bound.
A Steiner tree
contains a set of n nodes V and a set of n−1 wires E. The set of nodes
where so is the unique source node, SI is the set of sink nodes, and IN is the set of internal nodes. A wire e in E is defined by an ordered pair of nodes e=(x,y) for which the signal propagates from x to y. Each node v, other than the source node so, has a unique parent wire. A sink node si has no children. The tree is assumed to be binary, i.e. each node can have at most two children. The left and right children of node v are denoted T. Left(v) and T. Right(v), respectively. By convention, if node v has only one child, it is denoted T. Left(v).
Referring now to
A wire code is a 4-tuple
where
and
are horizontal and vertical layers, respectively, and
and
are the widths of the wires running on the respective layers. The wire code restricts the possible widths and layers assigned to each wire.
denotes the set of possible wire codes. For purposes of illustration, the wire code for wires 21-25 of
The problem according to the present invention is, for a given tree
a buffer type b, and a set of wire codes W, to find a mapping M that maximizes slack and satisfies a set of constraints, to be described hereinafter. As will be explained in detail hereinafter, slack is the difference required arrival time (RAT) and the delay for the path between the source node so and a sink node si.
The mapping
denotes a problem solution. For each internal node
the mapping
implies that a buffer b is inserted at node v, and
implies no buffer at node v. For each wire
the mapping
assigns a wire code w to wire e. For each source node or sink node
the mapping
where g is the gate located at the source or sink node v.
Assigning k buffers to tree T induces k+1 nets and k+1 subtrees with no internally placed buffers. Let
be the maximal subtree of t with source v and
for each
For each node
such that
let
denote input capacitance,
the resistance, and
the intrinsic delay of the gate or buffer
Let
and
respectively denote the lumped capacitance and resistance for a wire
assigned a wire code w.
The wire capacitance and resistance can be calculated in many ways. For example, if wire code
then one can assume unit area resistance R for layer
The resistance for a vertical wire is then
where
is the length of e. Similarly, if
and
denote the unit area capacitance and fringing capacitance, respectively, for layer
then the wire capacitance is
The capacitance load
seen at any node v is defined as
The Elmore delay for a wire e is given by
The delay through a node v is given by
if
and zero otherwise. The total delay
from node v to sink
with respect to a solution M is
where
is the set of wires on the path from node v to sink si.
Each sink si has required arrival time RAT(si), assuming the input signal arrives at the source so at time zero. The condition
must hold for the circuit to meet timing requirements. Let
be the slack at node v for every
with respect to M, where ds(v) is the set of sinks downstream from node v. Slack (q(v,M)) for a solution M is the difference between the required arrival time (RAT) at a sink si from node v and the delay D(v,si,M) from node v to sink si. The circuit meets its timing constraints if and only if slack
The problem according to the present invention is, for a given tree
a buffer type b, a set of wire codes W, to find a mapping M that maximizes slack
such that:
The present invention adopts the wire code restriction and disallows wire tapering for several reasons. First, for a majority of nets, buffer insertion with the wire code restriction should be able to meet the timing constraints for the net. When timing constraints cannot be met, placement modification or driver sizing can generally be used more effectively than wire tapering to achieve timing goals. Second, a gridless router is required to exploit a tapered solution; this capability is beyond most current routers. Finally, wire tapering can always be done as a post processing step to detailed routing. The wire code restriction of the present invention simplifies the wire sizing problem.
Referring now to
The building block of the method of the present invention is a candidate, which is a 3-tuple (C,q,M), where
is the lumped capacitance seen at node v,
is the slack at node v, and M is the current solution. The method of the present invention starts at the sinks and works its way up the tree while generating potential candidate solutions. The method is optimal since it potentially generates all possible candidates, but either prunes or never generates inferior solutions. Candidate
at node v is inferior to candidate
at node v if
and
The method of the present invention stores an array of linked lists indexed by the possible wire codes. Each node v has a set S of candidates, and S(w) stores the linked list of candidates which must assign w as the wire code for the parent wire of v. The method of the present invention starts with a routing tree T, a buffer type b, a set of wire codes W, and pre-initialized solution M*. M* maps the source node and the sink nodes to their respective gates and sets
for each internal node
The method returns a mapping M that corresponds to the optimal solution.
Referring now to
If, at decision block 43, node v is not a sink node, then the method tests, at decision block 47, if node v has only one child. If so, the method copies the candidates from the child of node v to node v, as indicated at block 49. If not, which means that node v has two children, the method merges the left child candidate with the right child candidate, such that wire codes are preserved, as indicated at block 51. The left and right candidates are merged one wire code at a time, thereby ensuring enforcement of the wire code restriction.
After the candidates have been added to the set of candidates at blocks 45, 49, or 51, the method finds the single candidate
for node v that has the minimum buffer delay when a buffer b is inserted in candidate
as indicated at block 53. Then the method inserts buffer b in candidate
as indicated at block 55. The best candidate
is then expanded to W different candidates
one for each wire code w, at block 57. Then, the method adds the delay of the parent wire of node v to for each candidate and wire code, at block 59.
After the method has generated a candidate
at node v for each wire code w, the method performs pruning, as indicated generally at block 61 and shown in detail with respect to FIG. 4. The pruning step involves the calculation of the lumped capacitance C seen at node v, and the slack q at node v for each candidate
Referring to
at block 63, and sets an index N equal to one, at block 65. Then, the method tests, at decision block 67, if the lumped capacitance
of the Candidate is less than the lumped capacitance
of candidate
and the slack
of the Candidate is equal to or less than the slack
of candidate
If not, which indicates that the Candidate is inferior to candidate
the method sets the Candidate equal to candidate
at block 69. If, at decision block 67, the lumped capacitance
of the Candidate is less than the lumped capacitance
of candidate
or the slack
of the Candidate is equal to or less than the slack
of candidate
then the Candidate is not inferior to candidate
After the method has pruned the inferior candidate, the method tests, at decision block 71, if index N is equal to W, the number of wire codes. If not, the method sets N equal to N+1, at block 73, and
A mapping according to the present invention produces an optimum solution, in that it maximizes slack. However, the optimum mapping may be costly in terms of buffers and wire sizing. The optimum solution may use more buffers and size more wires than necessary to meet the timing constraints of the tree. Additionally, while it is desirable to maximize slack, it is only necessary that slack be greater than zero in order to meet the timing constraints for the tree. Thus, according to the present invention, instead of maximizing
one can minimize total resources such that
The definition of total resources depends upon the user's requirements. It could be a function of the number of buffers, total buffer size, and the cost of wire codes. Therefore, the present invention uses a new cost function for controlling and minimizing resources.
The cost function of the present invention is a linear combination of buffer and wiring costs. Let bc(M) be the number of buffers in solution M. For wiring costs, a different wire code may imply a different layer assignment. Some layers are more congested than others, and assigning a wire onto a particular layer could increase congestion or create blockage. Hence, using any wire code, regardless of length, should have a fixed cost. Let c(w) be the cost of wire code w. Let wc(M) be the maximum cost of all wire codes, i.e.,
The wire cost is bounded above by
Let
be the balancing parameter.
implies that only wire sizing is performed.
implies that only buffer insertion is performed. For
the cost of a solution is given by
As
goes to zero, the cost of buffer insertion becomes disproportionately high relative to wire sizing. Similarly, as
goes to one, the cost of wire sizing becomes disproportionately high relative to buffer insertion. One can set
to trade-off the requirements of the particular problem. For example, in a highly congested routing region, one might set
In a densely packed transistor region, one might set
The present invention, seeks to trade-off solution cost with slack reduction. The data structure of the set of candidates S is a 2-dimensional array of lists of candidates. A candidate
with cost c belongs to the list S [w] [c] if its current wire code is w. Pruning is accomplished using a separate range-query data structure. However, for the algorithm to be efficient, one must first set an upper bound
for the solution cost. Solutions with cost higher than
are pruned. This scheme may cause erratic behavior for extreme
(e.g.,
values because the range of costs for these
values can be quite large.
From the foregoing, it may be seen that the present invention overcomes the shortcomings of the prior art. Instead of a polynomial time algorithm, which requires a substantial amount of memory, the method of the present invention runs in
where n is the number of nodes in the tree, and W is the number of wire codes. The method returns an optimal solution under the Elmore delay model and presents a new trade-off technique for minimizing resource utilization while satisfying timing constraints, by which the user can adjust the degree of wire sizing versus buffer insertion.
The present application is related to application Ser. No. 08/929,509, U.S. Pat. No. 6,044,209 filed Sep. 15, 1997, titled METHOD AND SYSTEM FOR SEGMENTING WIRES PRIOR TO BUFFER INSERTION; application Ser. No. 09/094,543, filed Jun. 12, 1998, titled METHOD FOR IMPROVING TIMING AND ELIMINATING UNACCEPTABLE NOISE IN INTEGRATED CIRCUIT DESIGN; application Ser. No. 09/094,544, U.S. Pat. No. 6,117,182 filed Jun. 12, 1998, titled OPTIMUM BUFFER PLACEMENT FOR NOISE AVOIDANCE; and, application Ser. No. 09/317,553, U.S. Pat. No. 6,437,393 filed May 24, 1999, titled METHOD AND APPARATUS FOR PERFORMING BUFFER INSERTION WITH ACCURATE GATE AND INTERCONNECT DELAY COMPUTATION.
Number | Name | Date | Kind |
---|---|---|---|
5305229 | Dhar | Apr 1994 | A |
5359535 | Djaja et al. | Oct 1994 | A |
5379231 | Pillage et al. | Jan 1995 | A |
5410491 | Minami | Apr 1995 | A |
5416718 | Yamazaki | May 1995 | A |
5508937 | Abato et al. | Apr 1996 | A |
5519351 | Matsumoto | May 1996 | A |
5557779 | Minami | Sep 1996 | A |
5610830 | Ito et al. | Mar 1997 | A |
5638291 | Li et al. | Jun 1997 | A |
5764528 | Nakamura | Jun 1998 | A |
5799170 | Drumm et al. | Aug 1998 | A |
5825661 | Drumm | Oct 1998 | A |
5838581 | Kuroda | Nov 1998 | A |
5859776 | Sato et al. | Jan 1999 | A |
5883808 | Kawarabayashi | Mar 1999 | A |
6286128 | Pileggi et al. | Sep 2001 | B1 |
Number | Date | Country |
---|---|---|
06-085646 | Mar 1994 | JP |
07-086410 | Mar 1995 | JP |