The method that a kind of GDSII layout data merges
Technical field
The present invention relates to the method that a kind of semiconductor physics layout data is handled, particularly relate to the method that a kind of GDSII (Gerber Data Stream II) layout data merges.
Background technology
The GDSII form is a kind of binary data structure, is the semiconductor physics domain storage format that present industry is generally acknowledged, it is with data stream stored in form data.The present GDSII form various information that have 70 kinds of record (record) to be used to store domain comprise the structural information, coordinate information, hierarchical information of domain etc.
In the present IC layout design process, often need two or more GDSII data be combined, and the cell cube of these data (Cell) name repeats often, and actual domain is not necessarily identical.Existing way mainly is with these GDSII data stream in (importing) through the IC domain instrument; Replace the Cell of appointment through the function of Cell replacement again; Derive top layer Cell then, utilize to add a random number behind the Cell of function with all duplications of name of the automatic rename of domain instrument and derive.But mainly there are two kinds of problems in this way:
1) need be by external tool, and the GDSII number of files is when a lot, and operation is trouble very;
When 2) duplication of name Cell was a lot, increase that can be meaningless merged the size of back data volume.
Summary of the invention
The technical matters that the present invention will solve provides the method that a kind of GDSII layout data merges, and this method comes the distinguishing GDSII data of carrying out to merge through the interior figure coordinate of comparing unit body (Cell).
For solving the problems of the technologies described above, the method that GDSII layout data of the present invention merges may further comprise the steps:
The first step is set up two domain storehouses in layout tool, storing two groups of Cell layout data set respectively, and some Cell name is repetition in two storehouses;
In second step, these two storehouses are exported to corresponding GDSII data respectively;
The 3rd step, read in GDSII data to be combined with binary mode, find out each Cell in these two GDSII files respectively, forms two A gather A1, A2, A3, A4 ..., An} and B set B1, and B2, B3, B4 ..., Bn};
The 4th step, the comparison of bearing the same name of all Cell during Cell A1 in the A set and B gathered, if duplication of name is arranged then the contained figure of Cell A1 is compared,
If a) name is identical, figure is also identical, then removes the Cell A1 in the A set, form new A ' set A2, A3, A4 ..., An}
B) if name is identical, figure is inequality, then with Cell A1 RNTO A1_new, form new A ' set Al_new, A2, A3, A4 ..., An};
The 5th step, next Cell A2 is carried out the operation of step 4, each Cell in the A set compares;
The 6th step, new set is formed in final A ' set and B set, be exactly to merge the new GDSII data in back.
Wherein, two cell cubes (Cell) figure concrete grammar relatively in the 4th step comprises step:
1) number of plies that at first cell cube inside is contained is made comparisons, if the number of plies is inequality, the figure of then obvious two cell cubes is inconsistent;
2) if the number of plies is consistent, then need compare the individual layer figure respectively by number of plies order, this individual layer figure is polygon (boundary) figure and path (path) figure, relatively is that coordinate with the point of forming polygonal shape compares one by one for polygonal shape; For graphics path relatively, at first need compare the width in path, relatively form the coordinate of the point of graphics path more one by one;
3), confirm that then two cell cube figures are consistent if the number of plies is all consistent with every layer individual layer figure.
Beneficial effect:
The present invention is a kind of method of automatic merging GDSII data, and the hypothesis that this method is without loss of generality is applicable to two or more GDSII data are merged.
The present invention can analyze the figure consistance of duplication of name Cell in the data merging process automatically, and the duplication of name Cell of figure unanimity is reduced to 1, has significantly reduced the data redundancy amount, has optimized data structure.
The invention enables the various customer datas of quick merging, IP data, mask plate scribe line data to become possibility, significantly improved design efficiency and strengthened reliability.Experimentize on the integrated circuit of certain 0.13 μ m technology according to principle of the invention design of program; Under the identical situation of other conditions; Originally needed the data merging task of ability completion in 1 day (promptly to pass through the IC domain instrument with these GDSII data importings, replace the Cell of appointment through the function of Cell replacement again, derive top layer Cell then; Utilize and add a random number behind the Cell of function with all duplications of name of the automatic rename of domain instrument and derive), only need one hour now less than accomplishing.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further detailed explanation:
Fig. 1 is that the present invention realizes the process flow diagram that the GDSII data merge;
Whether consistent Fig. 2 be relatively two Cell figures process flow diagram of the present invention.
Embodiment
The method that GDSII layout data of the present invention merges, its operational flowchart can be referring to Fig. 1.
Existing is example respectively to contain 4 Cell in two GDSII files, illustrates the method that GDSII layout data of the present invention merges, and specifically may further comprise the steps:
The first step is set up two domain storehouses in layout tool, storing two groups of Cell layout data set respectively, and some Cell name is repetition in two storehouses;
In second step, these two storehouses are exported to corresponding GDSII data respectively;
The 3rd step, read in GDSII data to be combined with binary mode, find out each Cell in these two GDSII files respectively, form two A set { A1, A2, A3, A4} and B set { B1, B2, B3, B4};
The 4th step, with the Cell A1 in the A set and all Cell in B set comparison of bearing the same name, if duplication of name (for example Cell A1 and Cell B1 duplication of name) is arranged then the contained figure of Cell A1 is compared,
If a) name is identical, figure is also identical, then removes the Cell A1 in the A set, forms new A ' set { A2, A3, A4};
B) if name is identical, figure is inequality, then with Cell A1 RNTO A1_new, forms new A ' set { A1_new, A2, A3, A4};
The 5th step, next Cell A2 is carried out the operation of step 4, each Cell in the A set compares;
The 6th step, new set is formed in final A ' set and B set, be exactly to merge the new GDSII data in back, for example these data contain Cell A2, A3_new, A4, B1, B2, B3, B4.
Wherein, realize two Cell figures concrete grammar relatively, can be referring to Fig. 2, concrete steps are following:
1) number of plies that at first Cell inside is contained is made comparisons, if the number of plies is inequality, then clearly the figure of two Cell is inconsistent;
2) under the situation that the number of plies is consistent, need compare the individual layer figure respectively, because the inner representative of graphics type of GDSII is boundary (polygon) and path (path), so will make comparisons to the two by number of plies order;
3) the Boundary figure is made up of the coordinate of n point, so as long as compare just passable one by one to the coordinate of these points;
4) the Path figure is a kind of figure with width attribute, also is made up of the coordinate of a series of point, so at first need compare the width of path, the coordinate of comparison point gets final product one by one again;
5) if above (number of plies with every layer individual layer figure) is all consistent, can confirm that two Cell figures are consistent.
Above-mentioned is example respectively to contain 4 Cell in two GDSII files only, and method of the present invention is applicable to two or more GDSII data are merged.According to step of the present invention, can significantly reduce the data redundancy amount, optimized data structure; And significantly improved design efficiency and strengthened reliability.Because the present invention directly carries out data processing with the GDSII file, often Billy is higher with layout editing instrument efficient, because can save the time of data importing and derivation.
Therefore, merge, then not only can increase substantially efficient, and strengthen reliability greatly if can utilize the GDSII file directly to carry out data.