BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention generally relates to analog integrated circuit layout, and more particularly to a nonlinear optimization method for resistor matching in analog integrated circuits.
2. Description of Related Art
Integrated circuit (IC) layout is a representation of an integrated circuit in terms of planar geometric shapes corresponding to layer patterns of the integrated circuit. The key performance of modern analog integrated circuits, such as digital-to-analog converters (DACs), is related to the accuracy of resistance ratios. Severe distortion will present between the input and output signals if the resistors in the analog ICs are mismatched. Due to the cost issue, designers usually design an IC under the strict fixed-outline constrains. To fit the whole design into the fixed-sized chip, devices with low shape flexibility, such as macros and IPs, are placed first. After that, resistors with high shape flexibility are placed in the remaining space. However, the remaining space for resistors is usually in rectilinear shape rather than rectangular shape, and the resistors placement thus becomes a challenge of layout engineers. FIG. 1A shows a layout with a resistor block A according to a conventional method. FIG. 1B shows an enlarged view of the resistor block that is composed of three local matching resistor blocks with their associated centroids, and therefore the resistor block A as a whole commonly does not have high matching quality.
Although several works have studied the detail about the matching methodologies, however, none of the existing works has proposed a methodology to consider matching quality and fixed-outline constraint simultaneously.
Accordingly, a need has thus arisen to propose a novel method of resistor matching in analog integrated circuit layout to effectively improve matching quality and conform to fixed-outline constraint.
SUMMARY OF THE INVENTION
In view of the foregoing, the embodiment of the present invention provides a method of resistor matching in analog integrated circuit layout to improve matching quality of the decomposed matching structures in rectilinear blocks, while maintaining the block topology during the whole improving process in order not to change the original circuit property.
According to one embodiment, shapes of mismatching resistor blocks are analyzed to obtain geometrical information for deforming the mismatching resistor blocks. The mismatching resistor blocks are deformed into centrosymmetrical blocks according to the obtained geometrical information, each said mismatching resistor block being decomposed to a plurality of unit-resistors. The unit-resistors are placed into matching resistor blocks to return a resulting layout with improved matching quality by reducing centroid offset between a centroid of the unit-resistors and a centroid of the matching resistor block.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1A shows a layout with a resistor block according to a conventional method;
FIG. 1B shows an enlarged view of the resistor block of FIG. 1A;
FIG. 2 shows a flow diagram generally illustrating a method of resistor matching in analog integrated circuit layout according to one embodiment of the present invention;
FIG. 3 shows an exemplary mismatching resistor block with two decomposed unit-resistors;
FIG. 4A and FIG. 4B exemplify evaluating the degree of centrosymmetry of a block;
FIG. 5A through FIG. 5D specifically show the matching analysis stage of FIG. 2;
FIG. 6 shows a flow diagram illustrating the matching deformation stage of FIG. 2 according to one embodiment of the present invention; and
FIG. 7A through FIG. 7D show examples that demonstrate deforming mismatching resistor blocks to matching resistor blocks after applying the embodiment.
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention discloses a nonlinear optimization method for resistor matching in analog integrated circuits. According to one aspect of the embodiment, i.e., a coincidence rule, centers of constituent resistors (or unit-resistors) may be coincided at a centroid of a matching resistor block (that is deformed from a mismatching resistor block). According to another aspect of the embodiment, i.e., a dispersion rule, the unit-resistors of the common-centroid matching resistor block may be placed uniformly. Accordingly, matching quality of a matching resistor block in a layout may be evaluated in terms of both the degree of coincidence and the degree of dispersion. In this specification, let NB={NB1, NB2, . . . , NBn} denote a set of n normal blocks which are soft (or deformable) blocks and each element NBi in NB has its specific aspect ratio range ASi=[ASi—min,ASi—max]. If the ASi—min is equal to ASi—max, this means that the block NBi is a hard (or undeformable) block. Let MB={MB1, MB2, . . . , MBm} denote a set of m mismatching resistor blocks which are rectilinear blocks (each having more than four sides) to be matched. The disclosed embodiment can improve the matching quality of each mismatching resistor block in MB under fixed-outline constraint. The embodiment can also maintain the block topology in an initial layout L during the process such that the designed circuit features will not be changed. Therefore, no extra cost for redesigning the circuit features will be needed.
FIG. 2 shows a flow diagram generally illustrating a method of resistor matching in analog integrated circuit layout according to one embodiment of the present invention. In stage 1, shapes of the mismatching resistor blocks are analyzed to obtain geometrical information for deforming the mismatching resistor blocks. Subsequently, in stage 2, according to the obtained geometrical information, a nonlinear optimization technique is applied to deform the mismatching resistor blocks into centrosymmetrical blocks which are appropriate for obtaining better matching. Finally, in stage 3, the unit-resistors are assigned into modified mismatching resistor blocks, that is, matching resistor blocks, to return a resulting layout with improved matching quality.
The embodiment improves matching quality by reducing centroid offset between a centroid of the constituent resistors (or unit-resistors) and a centroid of the matching resistor block. FIG. 3 shows an exemplary mismatching resistor block MBi with two decomposed unit-resistors A. The matching quality (or centrosymmetry) is low because there exists substantial centroid offset between the centroid 31 of the unit-resistors A and the centroid 32 of the mismatching resistor block MBi. As exemplified in FIG. 4A and FIG. 4B, the degree of centrosymmetry of a (mismatching resistor) block may be evaluated by rotating the block 180 degrees and then comparing the rotated block to the original block. More overlapping between a block and its rotated one implies more centrosymmetry. The block exemplified in FIG. 4A has low degree of centrosymmetry because of low overlap between the block and its rotated one. The block exemplified in FIG. 4B, however, has high degree of centrosymmetry because of high overlap between the block and its rotated one.
FIG. 5A through FIG. 5D specifically show the matching analysis stage 1 of FIG. 2. Although the analysis process of vertical edges of a mismatching resistor block is illustrated in the figures, the analysis process of horizontal edges of the mismatching resistor block, however, is similar and is thus omitted for brevity. As shown in FIG. 5A, two mirrored blocks MBi—1 and MBi—r of MBi are placed to the left and right sides of the mismatching resistor MBi. All the end points 51, excluding the top and bottom end points, of the right-side vertical edges of the left mirrored block MBi—1 and the left-side vertical edges of the right mirrored block MBi—r are projected to the mismatching resistor block MBi. The projected points on MBi are called cut points 52.
After obtaining the cut points 52, the mismatching resistor block MBi is decomposed by horizontally cut through end points 51 of its vertical edges and the cut points 52 (FIG. 5B), resulting in decomposed rectangles RectMB—i={recti—1, recti-2, recti-3} (FIG. 5C), which will be used later for deformation. Moreover, all left-side vertical edges of the rectangles are collected as Ei—L={ei—1, ei—1—2, . . . , ei—1—n}, and all right-side vertical edges of the rectangles are collected as Ei—R={ei—r—1, ei—r—2, . . . , ei—r—n}. Subsequently, one edge from Ei—L from top to bottom and one edge from Ei—R from bottom to top are taken as a centrosymmetry pair. Repeat above process until the edges in Ei—L and Ei—R are totally paired. All the centrosymmetry pairs of MB; form a set CS-pairsMB—i. As exemplified in FIG. 5D, three centrosymmetry pairs {ei—1—1,ei—r—3}, {ei—1—2,ei—r—2} and {ei—1—3,ei—r—1} are formed. As the distances (d1, d2, d3) to the centroid of the block of the two edges in each centrosymmetry pair are the same, the block is a centrosymmetrical block.
Subsequently, in the matching deformation stage 2 (FIG. 2), the shapes of the mismatching resistor blocks will be modified, under the fixed-outline constrains, to centrosymmetrical blocks for improving the matching quality, and, simultaneously, the original block topology in the layout should be preserved in order not to destroy the circuit features which were designed in early stages (not shown).
FIG. 6 shows a flow diagram illustrating the matching deformation stage 2 according to one embodiment of the present invention. In step 21, all blocks in the normal block set NB and all rectangles of each mismatching resistor block in MB are limited not to exceed the coverage (i.e., width W and height H) of the layout:
xi+wi≦W, ∀NBiεNB
yi+hi≦H, ∀NBiεNB
xi—a+wi—a≦W, ∀recti—aεRectMB—i, ∀MBiεMB
yi—a+hi—a≦H, ∀recti—aεRectMB—i, ∀MBiεMB
where (xi,yi) is the lower left corner of a blocki, wi and hi are width and height of the block, (xi—a,yi—a) is the lower left corner of a rectangle recti—a of MBi, wi—a and hi—a are width and height of the rectangle.
In step 22, the range of width of each NBi is constrained and the area ai of NBi in NB is kept consistent after deformation:
ai/ASi—max≦wi≦ai/ASi—min, ∀NBiεNB
wi·hi=ai, ∀NBiεNB
In step 23, the positions of the blocks in NB are limited such that their relative positions arc not changed after deformation:
xi+wi≦xj, ∀NBiεNB
yi+hi≦yj, ∀NBiεNB
In step 24, each neighboring normal block of the mismatching resistor block is limited not overlap with MBj. Take left side as example:
xi+wi≦xj—a+Bi,j—a,1·W, ∀NBiεNBleft, ∀rectj—aεRectMB—j, Bi,j—a,1 is binary
|(yi+hi/2)−(ya+ha/2)≧(hi/2+ha/2)−Bi,j—a,2·H, ∀NBiεNBleft, ∀rectj—aεRectMB—j, Bi,j—a,2 is binary
0≦Bi,j—a,1+Bi,j—a,2≦1
In step 25, rectangles of a mismatching resistor block should be connected:
xi—a+wi—a≧xi—b, recti—a, recti—bεRectMB—i
xi—b+wi—b≧xi—a, recti—a, recti—bεRectMB—i
yi—a+hi—a=yi—b, recti—a, recti—bεRectMB—i
Finally, in step 26, the area aMB—i of each MBi in MB is kept consistent after deformation:
Σrect—i—aεRect—MB—iwi—a·hi—a=aMB—i, ∀MBiεMB
Regarding the unit-resistor placement stage 3 of FIG. 2, one unit-resistor is first removed from the mismatching resistor block, if there are odd number of unit-resistors. Subsequently, the removed unit-resistor is then placed at the center of the modified block. Accordingly, the remaining unit-resistors of the same resistor block will be perfectly paired, and each pair of the unit-resistors is then placed centrosymmetrically to the centroid of matching resistor block. The degree of coincidence of the resistor block will be improved after this assignment.
Moreover, two unit-resistors from different resistors may be randomly selected, and their positions being exchanged, and their corresponding centrosymmetrical unit-resistors are also exchanged. The exchange may be repeated until the degree of dispersion can no longer be enhanced.
According to the embodiment as discussed above, the matching quality may be substantially improved by deforming the mismatching resistor block into a centrosymmetrical block which is more appropriate for matching than arbitrary rectilinear block. FIG. 7A and FIG. 7B show an example that demonstrates deforming a mismatching resistor block (FIG. 7A) to a rectangular block (FIG. 7B) after applying the embodiment. FIG. 7C and FIG. 7D show another example that demonstrates deforming a mismatching resistor block (FIG. 7C) to a centrosymmetrical block (FIG. 7D) after applying the embodiment.
Although specific embodiments have been illustrated and described, it will be appreciated by those skilled in the art that various modifications may be made without departing from the scope of the present invention, which is intended to be limited solely by the appended claims.