Chip layout wiring analysis method and device
Through the training and reasoning of the neural network model, combined with data annotation and skeleton extraction, the problem of difficulty in identifying tilted wiring with traditional methods is solved, and accurate identification of different tilt angles and learning of special wiring types are achieved, simplifying the data annotation process and improving the accuracy of the analysis results.
Patent Information
- Application Number
- CN202410535403.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional chip wiring analysis methods are difficult to accurately identify and reverse design skewed wiring, and the imbalance of positive and negative samples affects the semantic segmentation training of neural networks, making querying of special wiring types a major challenge.
The neural network model is used for training and reasoning. Through data annotation, skeleton extraction and loss calculation, combined with the screening of the number of pixels within the connected domain of the image, accurate recognition of different tilt angles and learning of wiring features are achieved.
It simplifies the data annotation process, solves the problem of imbalance between positive and negative samples, achieves accurate identification of slanted wiring and learning of special wiring types, and improves the ability to reverse design chip wiring features.
Smart Images

Figure CN118569190A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of chip reverse engineering, and in particular to a chip layout wiring analysis method and device. Background Art
[0002] The reverse design of integrated circuits refers to the process of reverse analysis and research on manufactured chips or integrated circuits to obtain their internal structure, function and design information. The reverse analysis of chip wiring data is an important part of the reverse design of integrated circuits.
[0003] Simple wiring consists only of horizontal and vertical lines. With the development of chip design requirements and wiring technology, inclined wiring may occur. The angle and direction of inclined wiring are not fixed during reverse design learning chip image wiring. Traditional image skeleton recognition can only assist in the recognition of horizontal and vertical wiring, and thus cannot achieve accurate search and reverse design of inclined wiring. The strong imbalance of positive and negative samples also makes it impossible to directly apply neural networks for semantic segmentation training and reasoning. The query of special wiring types has become a major challenge in the reverse design of some chip wiring features. Summary of the invention
[0004] In order to solve the problems in the prior art, the present invention provides a chip layout wiring analysis method and device to achieve effective analysis of inclined lines of different degrees in the chip.
[0005] In a first aspect, the present invention further provides a chip layout wiring analysis method, comprising: S1. Annotate data on the original chip image according to the project type; S2, training the neural network model using the labeled data, the chip image to be trained, and the skeleton image extracted from the chip image as input to obtain a trained neural network model; S3. Using the original chip image and the corresponding skeleton image as input to perform neural network model inference to obtain the wiring analysis result of the original chip image.
[0006] Optionally, after S3, the following steps are further included: S4. Filtering the wiring analysis results based on the number of pixels inside the image connected domain as a restriction condition to obtain filtered wiring analysis results.
[0007] Optionally, the S1 specifically includes: Make a coarse annotation on the original chip image using the same width as in the original chip image; The skeleton image of the original chip image is extracted using a skeleton extraction algorithm, and the intersection of the coarse annotation data and the skeleton image is used as the annotation data.
[0008] Optionally, when calculating the loss of the neural network model in S2, the loss value under the skeleton position index is calculated according to the skeleton image.
[0009] Optionally, in S3, the intersection of the inference result of the trained neural network and the skeleton image is used as the wiring analysis result of the chip image to be analyzed.
[0010] In a second aspect, the present invention further provides a chip layout wiring analysis device, comprising: Annotation module, used to annotate data on the original chip image according to the project type; A training module, used for training the neural network model by taking the labeled data, the chip image to be trained and the skeleton image extracted from the chip image as input, so as to obtain a trained neural network model; The inference module is used to use the original chip image and the corresponding skeleton image as input to perform neural network model inference to obtain the wiring analysis result of the original chip image.
[0011] Optionally, the device further comprises a screening module, for: The wiring analysis results are screened using the number of pixels inside the image connected domain as a restriction condition to obtain screened wiring analysis results.
[0012] The technical solution of the present invention simplifies the data annotation process and solves the problem of imbalance between positive and negative samples based on prior knowledge, providing a chip image wiring reverse analysis method. The method can achieve positive and negative sample imbalance and accurate identification of tilted wiring at different tilt angles, and realizes the learning of some special wiring types in the reverse design of chip wiring features. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A flowchart of a chip layout and wiring analysis method provided by an embodiment of the present invention; Figure 2 An original chip image to be analyzed provided by an embodiment of the present invention; Figure 3 A rough-labeled data diagram provided by an embodiment of the present invention; Figure 4 A skeleton image provided by an embodiment of the present invention; Figure 5 A diagram of a method for calculating and generating labeled data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0014] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings. Example
[0015] Figure 1 A flowchart of a chip layout wiring analysis method provided by an embodiment of the present invention specifically includes the following steps: S1. Perform data annotation on the original chip image according to the project type.
[0016] See also Figure 2 , the project types in this embodiment may include different wiring types such as horizontal, vertical, and specified angles.
[0017] First, manual data calibration of small samples is performed according to different types of wiring search requirements in the reverse process. In order to simplify the annotation operation, you can choose to perform coarse annotation directly on the original image, and use the skeleton graph information of the original image to calculate the intersection to achieve the final annotation data.
[0018] Specifically, when labeling, you do not need to strictly follow the final result. Instead, you can choose to label with the same width as the skeleton in the original image. For the rough labeling result, see Figure 3 After that, the skeleton extraction algorithm is used to extract the skeleton of the original image. The result of the rough extraction is shown in Figure 4 . See next Figure 5 , the intersection of the coarse annotation data and the image skeleton data is taken as the annotation information input into the network. This annotation method not only simplifies the annotation process, but also makes the potential features of the annotated image more unified.
[0019] S2. Using the labeled data, the chip image to be trained, and the skeleton image extracted from the chip image as input to train the neural network model to obtain a trained neural network model.
[0020] In this embodiment, the extracted chip skeleton image is used as part of the neural network input. Compared with the traditional neural network model training, one bit of data input is added. By utilizing this prior knowledge, the model can not only see the full image data, but also focus only on the validity of the data at the distribution of the skeleton image, thereby solving the problem of data imbalance.
[0021] Specifically, this embodiment uses a convolutional neural network for semantic segmentation, and skeleton data is used as an additional input of the convolutional neural network. When the neural network calculates the loss, the skeleton information of the image is used as the network calculation loss for reverse transmission to achieve the specific position index of the tuning model. This embodiment only calculates the loss value under the specific position index. This method can effectively solve the problem of imbalance between positive and negative samples.
[0022] S3. Using the original chip image and the corresponding skeleton image as input to perform neural network model inference to obtain the wiring analysis result of the original chip image.
[0023] During the network reasoning process, since the area where the neural network calculates the loss value is the chip skeleton image, the semantic segmentation network does not effectively learn the background area except for the skeleton, and there will be confusion in the reasoning results in the area outside the skeleton image. Therefore, the intersection is calculated in combination with the chip skeleton image input as the final output result.
[0024] S4. Filtering the wiring analysis results based on the number of pixels inside the image connected domain as a restriction condition to obtain filtered wiring analysis results.
[0025] Considering the high recall rate requirement of the output results, the score threshold is designed to be low, and there will be some noise points in the wiring analysis network extracted from the final network.
[0026] In order to improve the accuracy of the analysis results, this embodiment uses the number of pixels inside the image connected domain as a restriction condition to screen the wiring analysis results to obtain the final output result.
[0027] For example, for a bone line inclined at a certain angle, a pixel threshold may be set according to the actual situation, and the results with bone line pixels less than the set pixel threshold may be filtered to obtain the final wiring result.
[0028] The technical solution of this embodiment simplifies the data labeling process and solves the problem of imbalance between positive and negative samples based on prior knowledge, providing a chip image wiring reverse analysis method that can achieve imbalance between positive and negative samples and accurate identification of inclined wiring at different inclination angles, and realizes the learning of some special wiring types in the reverse design of chip wiring features.
[0029] The present invention also provides a chip layout wiring analysis device, and the device also includes: Annotation module, used to annotate data on the original chip image according to the project type; A training module, used for training the neural network model by taking the labeled data, the chip image to be trained and the skeleton image extracted from the chip image as input, so as to obtain a trained neural network model; The inference module is used to use the original chip image and the corresponding skeleton image as input to perform neural network model inference to obtain the wiring analysis result of the original chip image.
[0030] The screening module is used to screen the wiring analysis results based on the number of pixels inside the image connected domain as a restriction condition to obtain the screened wiring analysis results.
[0031] The marking module specifically includes: Make a coarse annotation on the original chip image using the same width as in the original chip image; The skeleton image of the original chip image is extracted using a skeleton extraction algorithm, and the intersection of the coarse annotation data and the skeleton image is used as the annotation information.
[0032] Specifically, when calculating the loss of the neural network model, the loss value under the skeleton position index is calculated based on the skeleton image.
[0033] In the inference module, the intersection of the inference result of the trained neural network and the skeleton image is used as the wiring analysis result of the chip image to be analyzed.
[0034] A chip layout and wiring analysis device provided in an embodiment of the present invention can execute a chip layout and wiring analysis method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0035] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A chip layout wiring analysis method, It is characterized in that include: S1. Annotate data on the original chip image according to the project type; S2, training the neural network model using the labeled data, the chip image to be trained, and the skeleton image extracted from the chip image as input to obtain a trained neural network model; S3. Using the original chip image and the corresponding skeleton image as input to perform neural network model inference to obtain the wiring analysis result of the original chip image.
2. The method according to claim 1, It is characterized in that After S3, the following is also included: S4. Filtering the wiring analysis results based on the number of pixels inside the image connected domain as a restriction condition to obtain filtered wiring analysis results.
3. The method according to claim 1, It is characterized in that The S1 specifically includes: Make a coarse annotation on the original chip image using the same width as in the original chip image; The skeleton image of the original chip image is extracted using a skeleton extraction algorithm, and the intersection of the coarse annotation data and the skeleton image is used as the annotation data.
4. The method according to claim 1, It is characterized in that When calculating the loss of the neural network model in S2, the loss value under the skeleton position index is calculated based on the skeleton image.
5. The method according to claim 1, It is characterized in that In S3, the intersection of the inference result of the trained neural network and the skeleton image is used as the wiring analysis result of the chip image to be analyzed.
6. A chip layout wiring analysis device, It is characterized in that include: Annotation module, used to annotate data on the original chip image according to the project type; A training module, used for training the neural network model by taking the labeled data, the chip image to be trained and the skeleton image extracted from the chip image as input, so as to obtain a trained neural network model; The inference module is used to use the original chip image and the corresponding skeleton image as input to perform neural network model inference to obtain the wiring analysis result of the original chip image.
7. The device according to claim 6, It is characterized in that Also includes screening modules for: The wiring analysis results are screened using the number of pixels inside the image connected domain as a restriction condition to obtain screened wiring analysis results.
