This invention relates generally to the field of integrated circuit layout, and particularly to placement of nodes of trees without overcrowding or increasing wire lengths.
U.S. Pat. No. 6,564,361 granted May 13, 2003 to Andrej A. Zolotykh et al. for “Method and Apparatus for Timing Driven Resysthesis” and assigned to the same assignee as the present invention, describes techniques for optimizing integrated circuit (IC) designs employing local optimization. Local logic restructuring is a basic step of the resynthesis procedure. One such logic restructuring procedure is described in U.S. Pat. No. 6,543,032 granted Apr. 1, 2003 to Andrej A. Zolotykh et al. for “Method and Apparatus for Local Resynthesis of Logic Trees with Multiple Cost Functions” and assigned to the same assignee as the present invention. The input of the local logic restructuring procedure described in the U.S. Pat. No. 6,543,032 is a logical tree. The result of the local logic restructuring procedure is a new logical tree that is equivalent to the initial tree.
U.S. Pat. No. 6,513,148 granted Jan. 28, 2003 to Elyar E. Gasanov et al. for “Density Driven Assignment of Coordinates” and assigned to the same assignee as the present invention describes a procedure to assign coordinates to nodes of a new logical tree. But the procedure described in the U.S. Pat. No. 6,513,148 leads to increased summary wire length if the resynthesis stage is the area optimization.
IC chips generally comprise a plurality of cells. Each cell may include one or more circuit elements, such as transistors, capacitors and other basic circuit elements, which are interconnected in a standardized manner to perform a specific function.
The timing driven resynthesis described in the U.S. Pat. No. 6,564,361 patent has been used to change the chip design step by step, making the improvements of the chip locally. The main concept of the local resynthesis is to consecutively examine the cell trees of a chip for the necessity of the optimization, and then organize the chosen trees as local tasks for the resynthesis that follows. All necessary information about the tree neighborhood (neighboring cells, capacities, delays, etc.) is first collected. Next, local optimization procedures work with this information only. No additional information about the chip structure is required.
Within the logical resynthesis, ordinary logical cells are considered, i.e. those cells with one output pin constructed using standard logical gates NOT, AND, OR. A logical tree is a tree formed from ordinary logical cells. Inside a logical tree, the output pin of each cell, other than the root (or root cell), is connected to exactly one other input pin, and this one other input pin is a pin of a cell of the logical tree. In contrast, the output pin of the root may be connected to any number of cell input pins. All cells connected with the output pin of the root of a tree may not belong to the tree, and the cells are not necessarily logical. An input pin of a cell of the tree may be connected to the power or the ground, or to a cell outside the tree. The cell input pin may be called the entrances of the tree.
One goal of the logical resynthesis is to change a logical tree into a logically equivalent one, which is better with respect to a given estimator. The nodes of the initial logical tree have the coordinates, but it is necessary to assign coordinates to nodes of new logical tree.
The present invention is directed the assignment of coordinates to nodes of a new logical tree without increasing summary wire length or wire congestion.
In one embodiment of the invention, an iterative process assigns nodes of a new logical tree to positions in a space, wherein the space was previously assigned to an old logical tree that is equivalent to the new logical tree. A path in the new tree is identified for an essential node of the new tree. Coordinates of a position in the space are identified for an old tree node that is equivalent to a son of the essential node. Coordinates are iteratively identified for each node in the new tree path based on the nodes of the new tree path and the coordinates identified for the old tree node that is equivalent to the son of the essential node.
In some forms, if all sons of the essential node are leaves of the new tree, the old tree node is a leaf node equivalent to the son. Otherwise, (if all sons of the essential node are not leaves of the tree) the old tree node is identified in a prior iteration.
In some forms, the process is performed using a free space concept without increasing wire length of the tree.
In other embodiments, a computer useable medium contains a computer readable program comprising computer readable program code for addressing data to cause a computer to carry out the process of the invention.
The present invention finds corresponding essential nodes of old and new trees and uses coordinates of the old node as coordinates of the new node. The degree of a node of a tree is the number of edges incident to the node; an essential node is one having a degree of 2 (two edges). The coordinates of a cell are chosen using the concept of free space, which is the maximal size of a cell that can be placed in that position.
A tree is a graph without loops with one pole called root.
A node of a tree D is “essential” if the node meets at least one of two conditions. If the node has more than one son, it is essential. If the node has but one son and that son is a variable, the node is essential. If a node is not essential then it is called “simple”. For tree D1 shown in
Consider a tree D having a set of nodes {α, α1, α2, . . . , αm} where node α is an essential node and nodes α1, α2, . . . , αm are simple nodes. Node α1 is the father of the node α, the node α2 is the father of the node α1, the node αm is the father of the node αm-1, and either the father of node αm is essential or node αm is the root of tree D. The set {α, α1, α2, . . . , αm} is called the simple path associated with the essential node α. For example, for the tree D1 shown in
Consider that tree D1 shown in
For purposes of the following description, it is presumed that a correspondence between variables of the old and new logical trees is found.
All simple paths of new tree Dn are examined. This is accomplished by examining all essential nodes of Dn using a depth-first tree pass algorithm and for each essential nodes, constructing the simple path associated with the essential node. For example, for tree D1 shown in
If at step 102 all simple paths of Dn are considered, then the process exits at step 104. Otherwise the next simple path {N1, . . . , Nk} of new tree Dn is considered at step 106 where N1 is essential node.
If at step 108 all sons of node N1 are leaves, then at step 110 the node of the old tree D0 which corresponds to some son of node N1 is denoted Oin (i.e., Oin is a leaf node of the old tree that is equivalent to a son of node N1). If at step 108 at least one son of node N1 is not a leaf, Oin is set equal to Oout, where Oout had been obtained at the step 114 for the previous simple path.
At step 114, coordinates are assigned to nodes N1, . . . , Nk using the procedure described in conjunction with
At step 202, no is calculated as the number of essential parents of node Oin, and nn is calculated as the number of essential parents of node N1 plus 1.
At step 204, a process to get a path of the old tree, shown and described below in conjuction with
At step 206, i is set equal to 1 and j is set equal to 1. At step 208, the value of i is saved by setting e equal to i.
At step 210, the (x,y) coordinates of node Oi are identified, and the free space s of the (x,y) position is calculated, such as by the procedure described in U.S. Pat. No. 6,637,016 granted Oct. 21, 2003 to Elyar E. Gasanov et al. for “Assignment of Cell Coordinates” and assigned to the same assignee as the present invention. The coordinates of a cell are chosen using the concept of free space, which is the maximal size of a cell that can be placed in that position.
If at step 212 the value of the free space s less than the size of the node Nj, then the process proceeds to step 218. Otherwise the process proceeds to step 214.
If at step 214 the number of remained nodes in the set {O1, . . . , Om} is more than the number of remained nodes in the set {N1. . . , Nk} (i.e. (m−i)>(k−j)) then the process proceeds to step 216. Otherwise the process proceeds to step 220.
At step 216, i is incremented (i=i+1) and the process loops back to step 210.
If at step 214 (m−i)≦(k−j), then at step 220, the number i is restored to its previous value (i.e. i=e) and the (x,y) coordinates of the node O1 are determined as the closest position to the (x,y) position, where the free space s is more than the size of the node Nj. To find such closest position, the procedure described in the U.S. Pat. No. 6,637,016 may be used. The result of this procedure is again denoted by (x/y).
The use of the procedure described in the U.S. Pat. No. 6,637,016 would seemingly increase wire length, but if the procedure is performed in the area optimization mode the summary size of nodes of the old tree is greater than the summary size of nodes of the new tree. Therefore, the procedure of the U.S. Pat. No. 6,637,016 can usually be applied without increasing wire lengths.
At step 218, the coordinates (x,y) are assigned to the node Nj and j is incremented (j=j+1).
If at step 222 all nodes of the set {N1, . . . , Nk} have been considered (i.e, j>k) then the process proceeds to step 228. Otherwise (if j≦k), the process proceeds to step 224.
If at step 224 the number of remaining nodes in the set {O1, . . . , Om} is more than the number of remaining nodes in the set {Nj, . . . , Nk} (i.e. (m−i)>(k−j)), then at step 226 i is incremented (i=i+1) and the process loops back to step 208. Otherwise, (if (m−i)≦(k−j)) i is not incremented and the process loops back to step 208.
If at step 228 nn>no (meaning that the number of essential parents of the node Oj is more than the number of essential parents of the node N1), then the process proceeds to step 232. Otherwise the process proceeds to step 230.
At step 230 the closest essential parent O of node Oi is identified and the output node Oout is identified as a son of node O.
At step 232 the output node is identified as node Oi (Oout=Oi)
In either case, Oout is returned at step 234 as result of the procedure.
At step 300, the input of the procedure is received, namely a node Oin of the old tree, a node N1 of the new tree, a number no which is equal to the number of essential parents of the node Oin, and a number nn which is equal to the number of essential parents of the node N1 plus one.
At step 302, O is set equal to Oin and node Oin is added to the output set by setting m=1 and 01=Oin. If at step 304 nn>no then the process proceeds to step 318. Otherwise the process proceeds to step 306.
At step 306, the value of n is calculated as n=no−nn+1, and j is set to 0 (j=0). At step 308, the father of the node O is considered, i.e. node O is set to the father of node O.
If at step 310, node O is essential then the process proceeds to step 312. Otherwise the process proceeds to step 316 where node O is added to the output set, i.e. set m=m+1 and Om=O. Then the process loops back to step 308 and iterates until a node O is found that is essential.
At step 312, j is incremented (j=j+1) If at step 314 j≦n then the process loops back to step 316 and iterates until j>n, whereupon the process proceeds to step 326.
If at step 304 nn>n0, then at step 318 nois calculated as the number of parents of node Oin, and nn is calculated as the number of parents of node N1 plus 1. At step 320, n=no−nn+1, and j is set equal to 1.
If at step 322 j≦n, the process proceeds to step 324 where O is set equal to Father (O), j is incremented (j=j+1), and node O is added to the output set, i.e. set m=m+1 and Om=O. Then the process loops back to step 322. If at step 322 j>n, the process proceeds to step 326.
At step 326, the set {O1, . . . , Om} is returned as a result of the procedure.
The present invention thus provides a technique to assign nodes of a new tree to a space, such as an integrated circuit design, to replace an old tree. Coordinates for the nodes are found using a free space technique without increasing wire size within the tree or chip. In preferred embodiments, the process is carried out by a computer employing a computer program comprising computer readable program code recorded or embedded on a computer-readable medium, such as a recording disk or other readable device.
Although the present invention has been described with reference to preferred embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
6505331 | Bracha et al. | Jan 2003 | B1 |
6513148 | Gasanov et al. | Jan 2003 | B1 |
6543032 | Zolotykh et al. | Apr 2003 | B1 |
6564361 | Zolotykh et al. | May 2003 | B1 |
6637016 | Gasanov et al. | Oct 2003 | B1 |
20050210422 | Galatenko et al. | Sep 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20060048087 A1 | Mar 2006 | US |