Circuit board chromatography netlist automatic acquisition method based on deep learning
Through a method based on deep learning, combined with machine vision and digital image acquisition technology, the automatic acquisition of the circuit board netlist is realized, solving the problem of low efficiency of PCB automatic wiring in traditional EDA tools, reducing labor costs and improving the efficiency of automatic wiring. accuracy.
Patent Information
- Application Number
- CN202410750040.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The PCB automatic routing function in existing EDA tools relies on traditional graph theory algorithms, which has high time complexity, low deployment rate, and poor adaptability to different PCB boards, resulting in the need for manual routing, which increases labor costs and reduces efficiency.
Using a method based on deep learning, the circuit board image is obtained through the machine vision inspection system, combined with a second-order Gaussian partial derivative filter and a digital image acquisition card, and the BOM table information exported by Cadence is used to realize the automatic acquisition of the circuit board netlist, including faults CT reconstruction and image stitching.
Without damaging the circuit board, automatic acquisition of the PCB netlist is achieved, reducing labor costs, improving efficiency, and solving the problem of relying on manual wiring in traditional methods.
Smart Images

Figure CN118736111A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit board tomography netlist extraction, and in particular to a method for automatically acquiring a circuit board tomography netlist based on deep learning. Background Art
[0002] PCB netlist extraction technology is becoming more and more mature, and PCB integration is getting higher and higher. Electronic equipment is booming towards high integration, automation and modernization. Traditional testing methods such as bed of nails and probes cannot fully meet the requirements of complete and effective testing of modern high-density PCBs.
[0003] In addition, the built-in PCB automatic routing functions in the current mainstream EDA tools mostly use traditional graph theory algorithms. These methods have high time complexity, low deployment rate, and poor adaptability to different PCB boards. Therefore, even if these EDA software integrates relevant PCB automatic routing auxiliary tools, currently, whether it is companies, research institutes or universities, they basically do not use the automatic routing tools that come with EDA software in the PCB design process. They still rely heavily on experienced engineers to manually route, resulting in high labor costs and low efficiency. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a method for automatically acquiring a circuit board layer netlist based on deep learning.
[0005] The technical problem to be solved by the present invention is achieved by adopting the following technical solutions:
[0006] A method for automatically acquiring a circuit board tomography netlist based on deep learning comprises the following steps:
[0007] Step (1) Obtaining the circuit board appearance image and position coordinates:
[0008] The appearance image of the circuit board is acquired through the machine vision inspection system, and the image matching algorithm of the second-order Gaussian partial derivative filter is used to match the acquired appearance image of the circuit board with the standard information image and the coordinate information of its pixels to obtain the position coordinates;
[0009] Step (2) CT reconstruction:
[0010] 3D modeling through industrial CT equipment;
[0011] Step (3) Tomography and Netlist Collection:
[0012] Use a digital image acquisition card to collect image data and process the collected images;
[0013] Step (4) Obtain the circuit board netlist:
[0014] Export the BOM information for the circuit board through Cadence, and obtain the circuit board netlist by analyzing the component information in the BOM;
[0015] Step (5) Automatic acquisition of netlist based on deep learning:
[0016] A column is selected as a comparison template in the overlapping area of the first digital image, and the overlapping part is searched in the second digital image to find the best matching column corresponding to the template obtained in the first digital image to be spliced. The matching places are spliced with software to obtain the netlist.
[0017] As a further improvement of the present invention, the process of obtaining the circuit board appearance image in step (1) is as follows:
[0018] The camera in the machine vision inspection system captures the optical signal formed by the reflection of the circuit board under visible light, completes the photoelectric signal conversion through the light sensor, converts the optical signal into an analog electrical signal, and then converts the analog signal to a digital signal through the digital-to-analog converter, finally obtaining the smallest "pixel" unit represented by the digital signal.
[0019] As a further improvement of the present invention, the CT reconstruction process in step (2) is as follows:
[0020] The circuit board to be tested is placed on the industrial CT equipment, and a CT scan is performed in a direction perpendicular to the narrow surface of the circuit board. The projection data of each rotation angle is obtained by scanning the object to be tested. After the scanning is completed, the CT image is reconstructed.
[0021] As a further improvement of the present invention, the BOM table information in step (4) includes component number, physical coordinates, mirror image, packaging information and rotation angle information of the packaged components in the circuit.
[0022] The beneficial effects of the present invention are:
[0023] The present invention provides a method for automatically acquiring a circuit board layer netlist based on deep learning, which can solve the problem of PCB automatic wiring that has not yet been solved in EDA tools and still heavily relies on manual wiring by experienced engineers, resulting in high labor costs and low efficiency; and can complete circuit board netlist extraction without damaging high-value electronic products and circuit boards. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The present invention is further described below in conjunction with the accompanying drawings and embodiments:
[0025] Figure 1 Schematic diagram of a machine vision inspection system for acquiring images;
[0026] Figure 2 This is a schematic diagram of image localization of the second-order Gaussian partial derivative filter;
[0027] Figure 3 It is a schematic diagram of the process of obtaining digital appearance image and coordinate information;
[0028] Figure 4 This is the effect of stitching multiple circuit board images. DETAILED DESCRIPTION
[0029] In order to make the technical means, creative features, objectives and effects achieved by the present invention easier to understand, the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0030] A method for automatically acquiring a circuit board tomography netlist based on deep learning comprises the following steps:
[0031] Step (1) Obtaining the appearance image and position coordinates of the circuit board.
[0032] Capture of circuit board appearance image: The camera in the machine vision inspection system captures the optical signal of Q / 36X·204GZ.05-2017 formed by the reflection of the circuit board under visible light. The optical signal is converted into a photoelectric signal through the light sensor. The electrical signal formed by the optical signal conversion is an analog electrical signal, which is then converted into a digital signal through a digital-to-analog converter, and finally the smallest "pixel" unit represented by the digital signal is obtained. Machine vision inspection systems that capture images and form images are such as Figure 1 shown.
[0033] Position coordinate acquisition: First, a standard information image and its pixel coordinate information are given, and then the image matching algorithm of the second-order Gaussian partial derivative filter is used for image matching to obtain the overlapping area between the image to be tested and the standard information image, so as to match the coordinates of the standard information image, and finally obtain the image information of the accurate position coordinates of each component on the circuit board. The process is as follows: Figure 3 As shown. Figure 2 As shown, the size is M×N. In the figure, H ij is the overlapping area between the image to be tested and the standard information image, and (i, i) is the coordinate of the overlapping area on the image to be tested.
[0034] Step (2) Sectional CT reconstruction.
[0035] Three-dimensional modeling is performed using an industrial CT device. In this embodiment, a YXLON FF-35 industrial CT is used. The circuit board to be tested is placed on the YXLON FF35 industrial CT stage, and a CT scan is performed in a direction perpendicular to the narrow surface of the circuit board. The projection data of each rotation angle is obtained by scanning the object to be tested. After the scan is completed, the CT image is reconstructed, and the reconstruction software of the YXLON FF35 industrial CT is used to reconstruct the three-dimensional data after scanning to complete the reconstruction of the tomographic image.
[0036] Step (3) Tomography and netlist acquisition.
[0037] The pads, wires and vias on the circuit board have relatively fixed geometric shapes and design rules. In order to extract the circuit board netlist in this article, it is necessary to add these shape features during the circuit board image processing to improve the accuracy of the processing results.
[0038] In this embodiment, a digital image acquisition card is used to collect image data, and the collected image is processed. First, the thickness of the reconstructed PCB image, that is, the distance between the top layer and the bottom layer, needs to be estimated. According to the spatial resolution of the reconstruction result and the physical thickness of the PCB substrate. The vertex position of the circuit board can be determined according to the position of the wire point closest to the vertex, or it can be manually selected in the slice diagram. Another method is to add copper foil to the four vertices of the top layer when scanning the circuit board. In this way, there is a visual reference when selecting the vertices. The top and bottom layers of the surface generated by fitting.
[0039] Step (4) Obtain the circuit board netlist.
[0040] Netlist analysis is an important module for realizing the automatic positioning algorithm of circuit board components. The physical coordinate information of the circuit board needs to be exported from the schematic drawing software Cadence. Cadence is a circuit design software specially used for drawing PCB circuit boards. Cadence exports the BOM information for the circuit board. The BOM information includes component number, physical coordinates, mirror image, package information, and rotation angle information of the packaged components in the circuit. By analyzing the component information in the BOM information, the mapping relationship between the physical coordinates of the component and the pixel coordinates is constructed to realize the automatic positioning algorithm.
[0041] In order to improve the accuracy of PCB image detection, the key is how to effectively separate the target feature information such as wires and pads on the PCB from the background information. Image segmentation is required. Image segmentation will directly affect the subsequent processing of the image. Among the many binarization methods, an adaptive threshold selection method is selected in this embodiment, and a better segmentation effect diagram can be obtained by setting the threshold.
[0042] The core idea of the adaptive threshold selection method is to dynamically determine the threshold based on the local characteristics of the image, rather than using a global fixed threshold. The advantage of this method is that it can adapt to the illumination changes and texture differences in different regions, thereby achieving more accurate segmentation in complex image scenes.
[0043] The specific steps to implement the adaptive threshold selection method may include the following aspects:
[0044] Image preprocessing: First, the collected circuit board images are preprocessed, such as denoising, smoothing and other operations, to reduce errors in subsequent processing.
[0045] Local region analysis: Divide the image into multiple small local regions and analyze each region. This can be achieved by sliding windows or block processing.
[0046] Calculate local threshold: Calculate a suitable threshold for each local region. This can be determined by statistical methods, such as calculating the mean, median, or region-based histogram.
[0047] Dynamically adjust the threshold: Dynamically adjust the threshold according to the characteristics of the local area. For example, if the pixel values of an area are mainly concentrated in the darker or brighter range, then the threshold of this area should be adjusted accordingly.
[0048] Binarization: Use the calculated local threshold to binarize the pixels in each area, that is, divide the pixels into foreground and background according to the threshold.
[0049] Post-processing: After segmentation, some post-processing steps may be required, such as removing small noise areas, filling broken areas, etc., to further improve the accuracy of segmentation.
[0050] Through the above steps, the adaptive threshold selection method can effectively improve the segmentation effect of the circuit board image, thereby providing accurate image data for subsequent automatic netlist acquisition and PCB design. This method is particularly suitable for image processing scenarios such as circuit boards with complex structures and diversity.
[0051] Step (5) Automatically obtain the netlist based on deep learning.
[0052] The deep learning algorithm used for circuit board netlist acquisition selects a column in the overlapping area of the first digital image as a comparison template. Then search for the overlapping part in the second digital image, find the distance of the corresponding column vector, and take the smallest column. That is, the column that best matches the template, and then use software to splice the matching places. In order to improve the accuracy of the algorithm, by searching the overlapping part of image Image2, such as Figure 4 As shown, the best matching column corresponding to the template obtained in the image to be stitched Image1 is found to achieve image stitching.
[0053] Compare algorithms from two different scenarios: routing length and distribution rate. Using traditional routing algorithms or MCTS algorithms alone cannot achieve good routing results. The shortest final routing length is DLMCTSROUTE. Neither the neural network can output prior probabilities to guide the MCTS exploration process, and the value assessment output by the neural network can also replace the simulation process as a reward, greatly improving the search efficiency of MCTS. Therefore, under the same number of iterations, DLMCTSROUTE has the best routing effect. The final routing operation can be achieved.
[0054] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for automatically acquiring circuit board layer netlist based on deep learning, Features: The following steps are involved: Step (1) Obtaining the circuit board appearance image and position coordinates: The appearance image of the circuit board is acquired through the machine vision inspection system, and the image matching algorithm of the second-order Gaussian partial derivative filter is used to match the acquired appearance image of the circuit board with the standard information image and the coordinate information of its pixels to obtain the position coordinates; Step (2) CT reconstruction: 3D modeling through industrial CT equipment; Step (3) Tomography and Netlist Collection: Use a digital image acquisition card to collect image data and process the collected images; Step (4) Obtain the circuit board netlist: Export the BOM information for the circuit board through Cadence, and obtain the circuit board netlist by analyzing the component information in the BOM; Step (5) Automatic acquisition of netlist based on deep learning: A column is selected as a comparison template in the overlapping area of the first digital image, and the overlapping part is searched in the second digital image to find the best matching column corresponding to the template obtained in the first digital image to be spliced. The matching places are spliced with software to obtain the netlist.
2. According to the method for automatically acquiring a circuit board layer tomography netlist based on deep learning according to claim 1, Features: Step (1) The process of obtaining the circuit board appearance image is as follows: The camera in the machine vision inspection system captures the optical signal formed by the reflection of the circuit board under visible light, completes the photoelectric signal conversion through the light sensor, converts the optical signal into an analog electrical signal, and then converts the analog signal to a digital signal through the digital-to-analog converter, finally obtaining the smallest "pixel" unit represented by the digital signal.
3. According to the method for automatically acquiring a circuit board layer tomography netlist based on deep learning according to claim 1, Features: Step (2) The CT reconstruction process is as follows: The circuit board to be tested is placed on the industrial CT equipment, and a CT scan is performed in a direction perpendicular to the narrow surface of the circuit board. The projection data of each rotation angle is obtained by scanning the object to be tested. After the scanning is completed, the CT image is reconstructed.
4. According to the method for automatically acquiring a circuit board tomography netlist based on deep learning in claim 1, Features: Step (4) The BOM table information includes component number, physical coordinates, mirror image, packaging information, and rotation angle information of the packaged components in the circuit.
