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 processed, 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 form storage data.At present the GDSII form has the various information that 70 kinds of record (record) are used for storing domain, comprises the structural information, coordinate information, hierarchical information of domain etc.
In the present IC layout design process, often two or more GDSII data need to 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) by the IC domain instrument, the function of replacing by Cell is again replaced the Cell of appointment, then derive top layer Cell, 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 to 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 is a lot, the size of data volume after increase that can be meaningless merges.
Summary of the invention
The technical problem to be solved in the present invention provides the method that a kind of GDSII layout data merges, and the method comes the distinguishing GDSII data of carrying out to merge by 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 respectively two groups of Cell layout data set, and some Cell name is repetition in two storehouses;
Second step exports to respectively corresponding GDSII data with these two storehouses;
The 3rd step, read in GDSII data to be combined with binary mode, find out respectively each Cell in these two GDSII files, 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 the 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 not identical, then with Cell A1 RNTO A1_new, form new A ' set Al_new, A2, A3, A4 ..., An};
In the 5th step, next Cell A2 is carried out the operation of step 4, until each Cell in the A set compares;
The 6th step formed new set with final A ' set and B set, was exactly new GDSII data after merging.
Wherein, two cell cubes (Cell) figure concrete grammar relatively in the 4th step comprises step:
1) at first the contained number of plies in cell cube inside is made comparisons, if the number of plies is not identical, then the figure of obvious two cell cubes is inconsistent;
2) if the number of plies is consistent, then need respectively the individual layer figure to be compared by number of plies order, this individual layer figure is polygon (boundary) figure and path (path) figure, relatively is that the coordinate that will form the point of polygonal shape compares one by one for polygonal shape; For graphics path relatively, at first need the width in comparison path, relatively form one by one again the coordinate of the point of graphics path;
3) if the number of plies is all consistent with every layer individual layer figure, confirm that then two cell cube figures are consistent.
Beneficial effect:
The present invention is a kind of method of automatic merging GDSII data, and the hypothesis that the method is without loss of generality is applicable to two or more GDSII data are merged.
The present invention can automatic analysis data merging process in the figure consistance of duplication of name Cell, and the duplication of name Cell that figure is consistent is reduced to 1, greatly reduced the data redundancy amount, 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.Program according to principle of the invention design is tested at the integrated circuit of certain 0.13 μ m technique, in the identical situation of other conditions, the data merging task that originally needed just can finish in 1 day (is namely passed through the IC domain instrument with these GDSII data importings, the function of replacing by Cell is again replaced the Cell of appointment, then derive top layer Cell, 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 now one hour less than finishing.
Description of drawings
The present invention is further detailed explanation below in conjunction with accompanying drawing and embodiment:
Fig. 1 is that the present invention realizes the process flow diagram that the GDSII data merge;
Fig. 2 is relatively two Cell figures consistent process flow diagram whether 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.
Now in two GDSII files, respectively contain 4 Cell as example, illustrate the method that GDSII layout data of the present invention merges, specifically may further comprise the steps:
The first step is set up two domain storehouses in layout tool, storing respectively two groups of Cell layout data set, and some Cell name is repetition in two storehouses;
Second step exports to respectively corresponding GDSII data with these two storehouses;
The 3rd step, read in GDSII data to be combined with binary mode, find out respectively each Cell in these two GDSII files, 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 not identical, then with Cell A1 RNTO A1_new, forms new A ' set { A1_new, A2, A3, A4};
In the 5th step, next Cell A2 is carried out the operation of step 4, until each Cell in the A set compares;
The 6th step formed new set with final A ' set and B set, was exactly new GDSII data after merging, and 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 as follows:
1) at first the contained number of plies in Cell inside is made comparisons, if the number of plies is not identical, then clearly the figure of two Cell is inconsistent;
2) in the situation that the number of plies is consistent, need to compare the individual layer figure respectively by number of plies order, because the inner representative of graphics type of GDSII is boundary (polygon) and path (path), so will make comparisons to the two;
3) the Boundary figure is comprised of the coordinate of n point, so need only relatively 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 comprised of the coordinate of a series of point, so at first need the width of comparison 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-mentionedly only respectively contain 4 Cell as example in two GDSII files, method of the present invention is applicable to two or more GDSII data are merged.According to step of the present invention, can greatly reduce the data redundancy amount, optimized data structure; And significantly improved design efficiency and strengthened reliability.Process because the present invention directly carries out data 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 if can utilize the GDSII file directly to carry out data, then not only can increase substantially efficient, and greatly strengthen reliability.