A cam-based object compensation automatic detection method
By automatically detecting object compensation in PCB design files within the CAM system, the problems of low detection accuracy and efficiency in existing technologies are solved, enabling efficient and accurate design optimization and production preparation.
Patent Information
- Application Number
- CN202510041801.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2045-01-10
AI Technical Summary
Existing PCB layout mapping systems cannot perform real-time detection when compensating for pads, which leads to changes in circuit principles, low detection accuracy and comprehensiveness, increased production risks, and is time-consuming and labor-intensive.
An automatic object compensation detection method based on CAM is adopted. By importing PCB design files into CAM, the object types on the signal layer are detected and compensation calculations are performed to generate a detection report to identify potential spacing issues.
Significantly improves the efficiency and accuracy of testing, reduces the frequency of communication between customers and engineers, shortens design optimization time, and increases production yield.
Smart Images

Figure CN120012679B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of PCB manufacturing, in particular to an object compensation automatic detection method based on CAM. BACKGROUND
[0002] The current PCB board map surveying system does not have pre-manufacturing simulation analysis capability for CAM design data, especially when compensating for the pad, it cannot perform real-time detection to evaluate whether the design data after compensation has problems or meets the process capability of the PCB factory, and the pad after compensation is prone to have too small spacing or even stagger with the surrounding objects, which changes the circuit principle and causes the actual use effect of the PCB to deviate or even cannot be used.
[0003] Currently, the design personnel mainly adopts the manual detection method for the pads in the PCB board map one by one to try to reduce the occurrence of this problem, but this not only reduces the accuracy and comprehensiveness of detection and increases the risk of subsequent production, but also is time-consuming and laborious, and the detection efficiency is very low, which cannot meet the increasingly high design and production requirements. SUMMARY
[0004] To solve the above technical problems, one technical solution adopted by the present application is:
[0005] Provided is an object compensation automatic detection method based on CAM, and the steps include:
[0006] (1) importing a PCB design file in the CAM and performing detection analysis on the signal layer;
[0007] (2) traversing all objects on the signal layer, judging the type of each object, and compensating according to the type information;
[0008] (2.1) obtaining attribute information of each object, judging the type of the object according to the type definition information in the attribute information;
[0009] (2.2) obtaining the position and contour parameter information of the object and the corresponding compensation parameter value according to the type of the object to compensate;
[0010] (2.2.1) when the object is a straight line object, an arc line object, a non-hole pad, a string object and a copper surface object, directly obtaining the original position and contour parameter of the object and the preset compensation value of the object, and calculating the current position and contour parameter of the object after compensation according to the original position and contour parameter and the compensation value;
[0011] (2.2.2) When the object is a hole pad: obtaining the original diameter parameter of the hole pad, the preset diameter compensation parameter of the corresponding hole, the original hole ring value and the preset minimum hole ring parameter, calculating the hole ring difference between the original hole ring value and the minimum hole ring parameter, then the diameter compensation value of the hole pad is the sum of the diameter compensation parameter value of the hole and the hole ring difference; calculating the current diameter parameter of the hole pad after compensation according to the diameter compensation value of the hole pad and the original diameter of the hole pad, thereby obtaining the current position and contour parameter of the hole pad;
[0012] (3) detecting and judging whether there are other objects around each object, and obtaining the detection result;
[0013] (3.1) selecting an object as a reference object, and calculating the search range of the object: obtaining the preset compensation parameters of all objects, and screening the maximum value as the possible compensation value a of the adjacent object; obtaining all the minimum spacing parameters of the object and the surrounding different types of objects, and screening the maximum value b; obtaining the compensation value c of the object; calculating the sum s of the possible compensation value a, the maximum value b and the compensation value c, and the search range is a circle with the center point of the object itself as the center and the sum of the radius of the object itself and S as the radius;
[0014] (3.2) searching according to the calculated search range to judge whether there are other objects around the object;
[0015] (3.2.1) if there is no other object in the search range, it means that the object after compensation will not cause any spacing problem, and further analysis is not needed;
[0016] (3.2.2) if there are other objects in the search range, obtaining the current position and contour parameter of the object after compensation and the current position and contour parameter of the searched object after compensation, to calculate the compensated spacing between the object and the searched object;
[0017] (3.2.2.1) when the compensated spacing is greater than or equal to the preset spacing threshold, no error is reported;
[0018] (3.2.2.2) when the compensated spacing is less than the preset spacing threshold, an error warning is reported;
[0019] (3.3) obtaining all the error information and generating a detection report.
[0020] In a preferred embodiment of the present application, the PCB design file includes the attribute information of all objects in each signal layer and hole layer.
[0021] In a preferred embodiment of the present application, the object type includes a straight line object, an arc object, a pad object, a string object and a copper surface object.
[0022] In a preferred embodiment of the present application, the pad object includes a hole pad and a non-hole pad.
[0023] In a preferred embodiment of the present application, when the object is a non-hole pad, the pad diameter compensation parameter of the pad is directly obtained, and the current diameter of the pad after compensation is calculated according to the pad diameter compensation parameter and the original diameter of the pad, so as to obtain the contour range of the current pad.
[0024] In a preferred embodiment of the present application, when the object is a straight line object, the current line width and line length parameters and the preset line width compensation and length compensation parameters are directly obtained, and the current line width and line length parameters of the straight line object after compensation are obtained according to the compensation values.
[0025] In a preferred embodiment of the present application, the position and contour information of the object includes object position coordinates, object shape, length, width, and diameter information.
[0026] In a preferred embodiment of the present application, the error reporting information includes the position and contour parameter information of the object and the problem distance value.
[0027] The present application has the beneficial effects that whether the distance between different types of objects in the current design data can meet the minimum distance requirement after parameter compensation can be detected, the efficiency and accuracy of detection can be significantly improved, problems in the design data can be found in time, the EQ frequency between the customer, the MI engineer, and the CAM engineer can be reduced, the EQ time can be shortened by more than 30%, the risk points can be avoided to enter the subsequent production process, which is beneficial to the subsequent design optimization and the improvement of production yield. BRIEF DESCRIPTION OF DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0029] Fig. 1 is a flow diagram of a CAM-based object compensation automatic detection method of the present application for detecting a pad as a reference object;
[0030] Fig. 2 is a structure diagram of a hole ring before and after compensation in the present application;
[0031] Fig. 3 is a distance structure diagram of a hole ring before and after compensation in the present application. DETAILED DESCRIPTION
[0032] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0033] Please see Figs. 1-3 The embodiments of the present invention include:
[0034] An automatic object compensation detection method based on CAM (Computer-Aided Design) verifies whether it can meet other customized requirements after optimization using custom input parameters by performing simulation analysis and calculation on data information. The steps include:
[0035] (1) Import the odb++ PCB design file into CAM. After importing, you can open the function window of the interface, select the signal layer for analysis, and the drill layer information will be automatically captured and searched by the CAM software during the analysis process.
[0036] PCB design files / data are usually in .tgz compressed format. The design file contains the attribute definition information of all features of each layer, and the feature types can be filtered and distinguished based on the definition information.
[0037] (2) Traverse all objects in the signal layer, determine the type of each object, and perform compensation based on the type information. In all steps of this case, only the compensation information is calculated and the results of the monitoring and analysis are fed back; the design documents / data are not directly edited or modified based on the compensation.
[0038] (2.1) Obtain the attribute information of each object and determine the type of the object based on the definition in the attribute information.
[0039] Further preferred features include line features, arc features, pad features, text features, and copper surface features. In the manufacturing process, different features usually need to be magnified and compensated.
[0040] More preferably, based on the properties of the pad object, the pad includes a hole pad and a non-hole pad.
[0041] (2.2) According to the type of the object, the position and contour parameter information of the object and the corresponding compensation parameter value are obtained for compensation. The position information includes position coordinates, and the contour information includes object shape, length, width, diameter, etc.
[0042] (2.2.1) When the object is a straight line object, an arc object, a non-hole Pad, a string object and a copper surface object, the original position and contour parameters of the object and the preset compensation value of the object are directly obtained, and the current position and contour parameters of the object after compensation are calculated according to the original position and contour parameters and the compensation value.
[0043] For example
[0044] When the object is a non-hole Pad, the Pad diameter compensation d' of the Pad is directly obtained, and the current diameter d''' of the Pad is calculated according to the Pad diameter compensation d' and the original diameter d of the Pad, so as to obtain the contour range of the Pad after compensation.
[0045] When the object is a Line, the current line width and line length values and the preset line width compensation and length compensation are directly obtained, and the current line width and line length parameters of the straight line object after compensation are obtained according to the compensation values.
[0046] (2.2.2) When the object is a hole Pad:
[0047] (2.2.2.1) The original diameter of the Pad, the preset diameter compensation d1' of the hole corresponding to the Pad and the preset minimum hole ring value d2' are obtained.
[0048] The Pad, the hole and the hole ring are concentric structures, and the hole ring is between the Pad and the hole, that is, the size d2 of the hole ring is the difference between the diameter d of the Pad and the diameter d1 of the hole divided by 2. Since the diameter of the Pad is always greater than the diameter of the hole, d2 = (d- d1) / 2.
[0049] In addition, the preset compensation parameter can be set according to the process parameters in the factory.
[0050] (2.2.2.2) According to the hole diameter compensation d1', the original hole ring value d2 and the minimum hole ring value d2', the Pad diameter compensation d' and the hole ring difference d2'' between the original hole ring value d2 and the minimum hole ring value d2' are calculated, that is, the sum of the hole diameter compensation d1' and the hole ring difference d2'' is the Pad diameter compensation of the Pad. Given that the hole ring value d2 = (d- d1) / 2 before compensation of both sides, when it does not meet the minimum hole ring parameter d2', the hole ring needs to be expanded by d2-d2', so the Pad diameter compensation d' = d2-d2'+d1';
[0051] (2.2.2.3) Calculate the current diameter d''of the Pad according to the compensation d' and the original diameter d of the Pad, to obtain the profile range of the current Pad.
[0052] (3) Search whether there is other object around the object according to the current position and profile parameter information of the object after compensation.
[0053] (3.1) Calculate the search range of the object
[0054] Since the type of other object to be encountered around is not known here, the search range is obtained by adding multiple parts:
[0055] (3.1.1) First, obtain the preset compensation parameters of all types of features, and filter out the maximum value as the possible compensation value a of the adjacent feature;
[0056] (3.1.2) Obtain the preset minimum spacing parameters of the object and the surrounding different types of objects, and filter out the maximum value b;
[0057] (3.1.3) Obtain the compensation value c of the object;
[0058] (3.1.3) The sum s of the possible compensation value a, the maximum value b, and the compensation value c, and the search range is a circle with the center point of the object itself as the center and the sum of the radius of the object itself and S as the radius.
[0059] Among them, when the object is a hole Pad, the compensation value is d'.
[0060] Since part of the adjacent feature does not need a compensation value as large as a, and a spacing as large as b, even if such a feature is searched, it can be compensated normally.
[0061] (3.2) Search according to the calculated search range to determine whether there is other object around the object.
[0062] (3.2.1) If there is no other object in the search range, it means that the object after compensation will not cause any spacing problem, and further analysis is not needed;
[0063] (3.2.2) If there is other object in the search range, obtain the current position and profile parameter of the object after compensation and the current position and profile parameter of the searched object after compensation, to calculate the compensated spacing between the object and the searched object;
[0064] (3.2.2.1) When the compensated spacing is greater than or equal to the preset spacing threshold, no error action is performed, and steps (1)-(3) are continued;
[0065] (3.2.2.2) When the compensated distance is less than the preset distance threshold, an error warning is given in the analysis result, and the current object and the searched object can be marked at the same time. When the detection is completed, all error / marking information is obtained to generate an error report for engineers to review and modify.
[0066] The error information can include reference Pad information, problem object information, and distance values.
[0067] The CAM-based object compensation automatic detection method has the beneficial effects that whether the distances between different types of objects in the current design data can meet the minimum distance requirement after parameter compensation can be detected, the efficiency and accuracy of detection can be significantly improved, problems in the design data can be found in time, the EQ frequency between customers, MI engineers, and CAM engineers can be reduced, the EQ time can be shortened by more than 30%, and the risk points can be avoided to enter the subsequent production process, which is beneficial to the subsequent design optimization and the improvement of the production yield.
[0068] The above description is only an embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation using the content of the present application specification, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A CAM-based automatic object compensation detection method, characterized in that the steps include... include: Step 1: Import the PCB design file into CAM and perform detection and analysis on the signal layers; Step 2 involves traversing all objects in the signal layer, determining the type of each object, and performing compensation calculations based on the type information. Step 2 specifically includes steps 2.1 and 2.2: Step 2.1: Obtain the attribute information of each object, and determine the type of the object based on the type definition information in the attribute information; Step 2.2: Based on the object type, obtain the object's position and contour parameters and corresponding compensation parameter values for compensation calculation. Specifically, when the object is a straight line object, curved object, non-hole pad, string object, or copper surface object: directly obtain the object's original position and contour parameters and the preset compensation value, and calculate the compensated current position and contour parameters based on the original position and contour parameters and the compensation value. When the object is a hole pad: obtain the hole pad's original diameter parameter, the preset corresponding hole diameter compensation parameter, the original hole ring value, and the preset minimum hole ring parameter, calculate the hole ring difference between the original hole ring value and the minimum hole ring parameter, then the hole pad's diameter compensation value is the sum of the hole diameter compensation parameter value and the hole ring difference. Calculate the compensated current diameter parameter of the hole pad based on the hole pad's diameter compensation value and the original diameter of the hole pad, thus obtaining the hole pad's current position and contour parameters. Step 3: Detect and determine whether there are other objects around each object, and obtain the detection results; Step 3 specifically includes steps 3.1, 3.2, and 3.3: Step 3.1: Select an object as a reference object and calculate the search range of this object: obtain the compensation parameters of all preset objects and filter out the maximum value as the possible compensation value a of the adjacent object; obtain all the minimum distance parameters between this object and surrounding objects and filter out the maximum value b; obtain the compensation value c of this object; calculate the sum s of the possible compensation value a, the maximum value b and the compensation value c. The search range is a circle with the center point of the object itself as the center and the sum of the radius of the object itself and s as the radius. Step 3.2: Search within the calculated search range to determine if there are other objects around the object. If no other objects are found within the search range, it means that the object will not cause any spacing issues after compensation, and no further analysis is needed. If other objects are found within the search range, obtain the current position and contour parameters of the object after compensation, as well as the current position and contour parameters of the searched objects after compensation, to calculate the compensated spacing between the object and the searched objects. No error is reported when the compensated spacing is greater than or equal to a preset spacing threshold; an error warning is issued when the compensated spacing is less than the preset spacing threshold. Step 3.3: Obtain all error messages and generate a test report.
2. The CAM-based automatic object compensation detection method according to claim 1, characterized in that, PCB design files include attribute information for all objects in each signal layer and via layer.
3. The CAM-based automatic object compensation detection method according to claim 1, characterized in that, Object types include straight objects, curved objects, pad objects, string objects, and copper-surface objects.
4. The CAM-based automatic object compensation detection method according to claim 1, characterized in that, Pad objects include perforated pads and non-perforated pads.
5. The CAM-based automatic object compensation detection method according to claim 1, characterized in that, When the object is a non-hole pad, the pad diameter compensation parameter is directly obtained, and the current diameter of the pad after compensation is calculated based on the pad diameter compensation parameter and the original diameter of the pad, so as to obtain the current Pad contour range.
6. The CAM-based automatic object compensation detection method according to claim 1, characterized in that, When the object is a straight object, the current line width and line length parameters, as well as the preset line width compensation and length compensation parameters, are directly obtained, and the current line width and line length parameters of the straight object after compensation are obtained according to the compensation value.
7. The CAM-based automatic object compensation detection method according to claim 1, characterized in that, The position and outline information of an object includes the object's position coordinates, shape, length, width, and diameter.
8. The CAM-based automatic object compensation detection method according to claim 1, characterized in that, The error message includes the object's position and contour parameters, as well as the problem spacing value.
Citation Information
Patent Citations
Etching compensation method for high-precision packaging substrate
CN105072808A
Dynamic PCB line compensation optimization method based on CAM
CN114760758A