Method, device, terminal and medium for detecting effective distance from detection capacitor to power-consuming pin
By obtaining the pad coordinates and automatically calculating the effective distance between the capacitor and the power-eating pin, the problem of large manual inspection error is solved, and efficient and accurate detection of the distance between the capacitor and power-eating pin is achieved, saving manpower and improving design efficiency.
Patent Information
- Application Number
- CN202211664083.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2042-12-23
AI Technical Summary
In the prior art, engineers need to check the effective distance between the capacitor and the power-eating pin on the PCB board one by one. The manual measurement error is large and labor-consuming. The design software cannot directly calculate the effective distance between the capacitor and the power-eating pin.
By obtaining the pad coordinates of the capacitor and the power-eating pin, the connection method is automatically judged, and the effective distance between the capacitor and the power-eating pin is calculated based on the coordinates, a method, device, terminal and medium is provided to detect the effective distance between the capacitor and the power-eating pin.
It automatically detects the effective distance between all capacitors on the board and the power-eating pin, reduces the error of manual inspection, improves detection accuracy and efficiency, saves labor costs, and can automatically identify the capacitance value of the capacitor to determine whether its filtering distance meets the requirements.
Smart Images

Figure CN115790357B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of detecting the effective distance from a capacitor to a power pin, and specifically relates to a method, device, terminal and medium for detecting the effective distance from a capacitor to a power pin. Background Art
[0002] With the development of cloud computing applications, informatization has gradually covered all fields of society. People's daily work and life increasingly communicate through the network, the network data volume is constantly increasing, and higher performance requirements are imposed on servers. Among them, the number of chips is increasing continuously, and a power supply without clutter interference is required to maintain the normal transmission of various signals in the system.
[0003] The PCB board on the server has a large area, and the power transmission distance is often relatively long. Electrical signal coupling will occur with other signals on the path, causing the power supply to be coupled with useless clutter, which we call power noise.
[0004] Before the power supply is delivered to the power pin of the chip from a relatively far position, the power noise needs to be filtered out by a capacitor first. However, the filtering ability of the capacitor is strongly related to its distance from the power pin, and the effective filtering distances of capacitors with different capacitance values are also different. There are often 10 - 500 capacitor pins designed on a PCB board, and engineers need to check whether the distance meets the requirements one by one, and the design software cannot directly calculate the effective distance from the capacitor to the power pin. As Figure 1 shown in the schematic diagram of the trace (the metal conductor used to connect two chip pins in circuit board design) between the capacitor pin and the power pin, engineers will measure the lengths of three traces, and the sum of the three is used as the distance from the capacitor pin to the power pin. However, the current will propagate along the shortest path, and the actual effective distance is the length of the conductor between the two dots in Figure 1 . Therefore, the deviation between the manually measured distance and the actual effective distance is relatively large, the possibility of omission in manual inspection is very high, and the labor cost consumed is also very high. Summary of the Invention
[0005] To solve the above problems, the present invention provides a method, device, terminal and medium for detecting the effective distance from a capacitor to a power pin, which obtains the pad coordinates and automatically calculates the distance between the capacitor pin and the power pin according to the pad coordinates, realizes the automatic detection of the effective distances from all capacitors on the board to the power pins, and the calculated distance has a small deviation from the actual effective distance, improving the detection accuracy and efficiency.
[0006] In a first aspect, the technical solution of the present invention provides a method for detecting the effective distance from a capacitor to a power pin, including the following steps:
[0007] Obtain the pad shape coordinates of the capacitor pin and the pad shape coordinates of the power pin; wherein, the pad shape coordinates include the coordinates of the four vertices of the pad;
[0008] Determine the connection method between the capacitor pin and the power-consuming pin;
[0009] Based on the corresponding connection method, calculate the effective distance from the capacitor to the power-consuming pin according to the shape coordinates of the capacitor pin pad and the shape coordinates of the power-consuming pin pad.
[0010] Further, the method specifically includes the following steps:
[0011] If the capacitor pin and the power-consuming pin are connected by a trace, denote that the trace between the capacitor pin pad and the power-consuming pin pad includes a first trace, a second trace, and a third trace; where the first trace is parallel to the capacitor pin pad, the third trace is parallel to the power-consuming pin pad, and the second trace is connected between the first trace and the third trace;
[0012] Obtain the coordinates of both ends of the first trace, the second trace, and the third trace respectively;
[0013] Calculate the effective distance from the capacitor to the power-consuming pin according to the shape coordinates of the capacitor pin pad, the shape coordinates of the power-consuming pin pad, and the coordinates of both ends of each trace.
[0014] Further, calculating the effective distance from the capacitor to the power-consuming pin according to the shape coordinates of the capacitor pin pad, the shape coordinates of the power-consuming pin pad, and the coordinates of both ends of each trace specifically includes:
[0015] Calculate the distances between the four vertices of the capacitor pin pad and the four vertices of the power-consuming pin pad respectively, find the two vertices with the closest distance, and denote them as reference vertices;
[0016] In the first case, if the power-consuming pin pad does not completely cover the third trace, calculate the length of the third trace that is not covered according to the end coordinates of the third trace outside the power-consuming pin pad and the coordinates of the reference vertex of the power-consuming pin pad, and denote it as the third effective length;
[0017] Calculate the length of the second trace according to the coordinates of both ends of the second trace, and denote it as the second effective length;
[0018] Calculate the length of the first trace that is not covered according to the end coordinates of the first trace outside the capacitor pin pad and the coordinates of the reference vertex of the capacitor pin pad, and denote it as the first effective length;
[0019] Add the first effective length, the second effective length, and the third effective length to obtain the effective distance from the capacitor to the power-consuming pin;
[0020] In the second case, if the power-consuming pin pad completely covers the third trace and the second trace covers the reference vertex of the power-consuming pin pad, then calculate the uncovered length of the first trace based on the end coordinates of the first trace outside the power-consuming pin pad and the coordinates of the reference vertex of the capacitor pin pad, and denote it as the fourth effective length;
[0021] Calculate the length between the reference vertex of the power-consuming pin pad and the end of the second trace close to the capacitor pin, and denote it as the fifth effective length;
[0022] Add the fourth effective length and the fifth effective length to obtain the effective distance from the capacitor to the power-consuming pin.
[0023] Furthermore, the method specifically includes the following steps:
[0024] If the capacitor pin and the power-consuming pin are connected through a copper clad, then obtain the vertex coordinates of the hollowed-out area on the copper clad;
[0025] Calculate the effective distance from the capacitor to the power-consuming pin according to the shape coordinates of the capacitor pin pad, the shape coordinates of the power-consuming pin pad, and the vertex coordinates of the hollowed-out area.
[0026] Furthermore, calculating the effective distance from the capacitor to the power-consuming pin according to the shape coordinates of the capacitor pin pad, the shape coordinates of the power-consuming pin pad, and the vertex coordinates of the hollowed-out area specifically includes:
[0027] Calculate the distances between the four vertices of the capacitor pin pad and the four vertices of the power-consuming pin pad respectively, find the two closest vertices, and denote them as the reference vertices;
[0028] Denote the hollowed-out area corresponding to the reference vertex of the capacitor pin as the reference hollowed-out area;
[0029] Denote the two vertices of the reference hollowed-out area on one side of the reference vertex of the capacitor pin as the first hollowed-out vertex and the second hollowed-out vertex respectively, and the two vertices on the other side as the third hollowed-out vertex and the fourth hollowed-out vertex respectively; among them, the first hollowed-out vertex and the third hollowed-out vertex are on the inner side, and the second hollowed-out vertex and the fourth hollowed-out vertex are on the outer side;
[0030] Denote the intersection point of the line connecting the two reference vertices of the capacitor pin and the power-consuming pin and the reference hollowed-out area as the reference intersection point;
[0031] Calculate the coordinates of the reference intersection point;
[0032] Calculate the length between the reference intersection point and the reference vertex of the power-consuming pin, and denote it as the sixth effective length;
[0033] Calculate the length between the reference intersection point and the second hollowed-out vertex, and denote it as the seventh effective length;
[0034] Calculate the length between the second hollow vertex and the first hollow vertex, denoted as the eighth effective length;
[0035] Calculate the length between the reference intersection point and the fourth hollow vertex, denoted as the ninth effective length;
[0036] Calculate the length between the fourth hollow vertex and the third hollow vertex, denoted as the tenth effective length;
[0037] Calculate the sum of the lengths among the sixth effective length, the seventh effective length, and the eighth effective length, denoted as the first effective distance;
[0038] Calculate the sum of the lengths among the sixth effective length, the ninth effective length, and the tenth effective length, denoted as the second effective distance;
[0039] Compare the magnitudes of the first effective distance and the second effective distance, and the smaller distance is the effective distance from the capacitor to the power-consuming pin.
[0040] Furthermore, the method further includes the following steps:
[0041] Obtain the capacitance value parameter of the capacitor pin;
[0042] Calculate the capacitor filtering radius according to the capacitance value parameter;
[0043] Judge whether the effective distance from the capacitor to the power-consuming pin is less than or equal to the capacitor filtering radius;
[0044] If so, the effective distance from the capacitor to the power-consuming pin meets the requirements; otherwise, the effective distance from the capacitor to the power-consuming pin does not meet the requirements.
[0045] Furthermore, the method specifically includes the following steps:
[0046] Select the pins to be detected by drawing a box; the pins to be detected include capacitor pins and power-consuming pins;
[0047] Obtain the identity identifiers of the pins to be detected and store them in the first sequence;
[0048] Successively take out each identity identifier from the first sequence;
[0049] Find the affiliated component according to the identity identifier;
[0050] If the affiliated component is a capacitor, read out the capacitance value parameter according to the identity identifier, and store the capacitance value parameter and the taken-out identity identifier in the first array;
[0051] If the affiliated component is a power-consuming chip, store the taken-out identity identifier in the second array;
[0052] Successively take out each identity identifier from the first array, and read out the corresponding capacitor pin pad shape coordinates according to the identity identifier;
[0053] Successively take out each identity identifier from the second array, and read out the corresponding shape coordinates of the power-consuming pin pads according to the identity identifier.
[0054] In a second aspect, the technical solution of the present invention provides a device for detecting the effective distance from a capacitor to a power-consuming pin, including:
[0055] A coordinate acquisition module: acquire the shape coordinates of the capacitor pin pads and the shape coordinates of the power-consuming pin pads; wherein, the pad shape coordinates include the coordinates of the four vertices of the pad.
[0056] A connection method judgment module: judge the connection method between the capacitor pin and the power-consuming pin.
[0057] A distance calculation module: based on the corresponding connection method, calculate the effective distance from the capacitor to the power-consuming pin according to the shape coordinates of the capacitor pin pads and the shape coordinates of the power-consuming pin pads.
[0058] In a third aspect, the technical solution of the present invention provides a terminal, including:
[0059] A memory, configured to store a program for detecting the effective distance from a capacitor to a power-consuming pin.
[0060] A processor, configured to implement the steps of the method for detecting the effective distance from a capacitor to a power-consuming pin as described in any one of the above when executing the program for detecting the effective distance from a capacitor to a power-consuming pin.
[0061] In a fourth aspect, the technical solution of the present invention provides a computer-readable storage medium, on which a program for detecting the effective distance from a capacitor to a power-consuming pin is stored, and when the program for detecting the effective distance from a capacitor to a power-consuming pin is executed by a processor, the steps of the method for detecting the effective distance from a capacitor to a power-consuming pin as described in any one of the above are implemented.
[0062] The method, device, terminal and medium for detecting the effective distance from a capacitor to a power-consuming pin provided by the present invention have the following beneficial effects compared with the prior art: automatically acquire the pad coordinates, automatically calculate the distance between the capacitor and the power-consuming pin according to the pad coordinates, realize automatic detection of the effective distances from all filter capacitors on the board to the power-consuming pins, can replace the cumbersome manual inspection, save manpower and avoid omissions; and the calculated distance has a small deviation from the actual effective distance, improving the detection accuracy and efficiency; preferably, it can automatically identify and read out the capacitance value of the capacitor, convert the capacitance value into the filtering distance supported by the capacitor, compare the filtering distance supported by the capacitor with the effective shortest distance of the actual trace or shape, analyze whether the placement position of this capacitor meets the requirements, provide a basis for design, and improve the design efficiency. Description of the Drawings
[0063] To more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0064] Figure 1 It is a schematic diagram of the trace between the capacitor pin and the power-consuming pin.
[0065] Figure 2 It is a schematic flowchart of a method for detecting the effective distance from a capacitor to a power-consuming pin provided by an embodiment of the present invention.
[0066] Figure 3 It is a schematic diagram of the first case of the trace connection between the capacitor pin and the power-consuming pin through a trace.
[0067] Figure 4 It is Figure 3 The corresponding point coordinate schematic diagram in
[0068] Figure 5 It is a schematic diagram of the second case of the trace connection between the capacitor pin and the power-consuming pin through a trace.
[0069] Figure 6 It is Figure 5 The corresponding point coordinate schematic diagram in
[0070] Figure 7 It is a schematic diagram of the copper skin connection structure between the capacitor pin and the power-consuming pin.
[0071] Figure 8 It is Figure 7 The schematic diagram of the vertex coordinates of the reference hollowed-out area in
[0072] Figure 9 It is a schematic block diagram of a device for detecting the effective distance from a capacitor to a power-consuming pin provided by this embodiment.
[0073] Figure 10 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention.
[0074] In the figure, 1 - capacitor, 2 - power input trace, 3 - capacitor pin pad, 4 - power-consuming pin pad, 5 - first trace, 6 - second trace, 7 - third trace, 8 - first reference vertex, 9 - second reference vertex, 10 - first target point, 11 - second target point, 12 - copper skin, 13 - reference hollowed-out area, 14 - reference intersection point. Detailed implementation manners
[0075] To enable those skilled in the art to better understand the solution of this application, the following further detailed description of this application will be given in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
[0076] Figure 1 Figure 1 is a schematic diagram of the wiring of capacitor 1 and the power consumption pin. The power input wiring 2 is connected to the capacitor pin, and the capacitor pin is connected to the power consumption pin of the chip through wiring. The wiring between capacitor 1 and the power consumption pin includes a first wiring 5, a second wiring 6, and a third wiring 7. Among them, the first wiring 5 is parallel to the capacitor pin pad 3, the third wiring 7 is parallel to the power consumption pin pad 4, and the second wiring 6 is connected between the first wiring 5 and the third wiring 7. Currently, engineers will measure the lengths of the first wiring 5, the second wiring 6, and the third wiring 7, and add the lengths of the three segments as the distance from capacitor 1 to the power consumption pin. However, the current actually propagates along the shortest path, and the actual effective distance should be the conductor length between the two dots in the figure. Therefore, there is a large deviation between the currently manually measured distance and the actual effective distance, and the possibility of loopholes in manual inspection is very high, consuming a high amount of labor costs.
[0077] The core of the present invention is to provide a method for detecting the effective distance from capacitor 1 to the power consumption pin, determine the connection method (copper skin 12 (shape) or wiring connection) between the filter capacitor 1 and the power consumption pin, automatically obtain the corresponding pad coordinates, and automatically calculate the effective distance between capacitor 1 and the power consumption pin according to the corresponding coordinates for different connection methods, realizing automatic detection, improving efficiency, and reducing the deviation between the calculated distance and the actual effective distance.
[0078] Figure 2 Figure 2 is a schematic flow chart of a method for detecting the effective distance from capacitor 1 to the power consumption pin provided by an embodiment of the present invention. As Figure 2 shown, the method includes the following steps.
[0079] S1. Obtain the shape coordinates of the capacitor pin pad 3 and the shape coordinates of the power consumption pin pad 4.
[0080] Among them, the pad shape coordinates include the coordinates of the four vertices of the pad.
[0081] That is, the coordinates of the four vertices and the center point of the capacitor pin pad 3, and the coordinates of the four vertices and the center point of the power consumption pin pad 4.
[0082] S2. Determine the connection method between the capacitor pin and the power consumption pin.
[0083] There are different connection methods between the capacitor pin and the power-consuming pin, including copper foil 12 connection and trace connection. The effective distances corresponding to different connection methods are different. Therefore, first determine the connection method, and then calculate the effective distance based on the corresponding connection method.
[0084] S3. Based on the corresponding connection method, according to the shape coordinates of the capacitor pin pad 3 and the shape coordinates of the power-consuming pin pad 4, calculate the effective distance from the capacitor 1 to the power-consuming pin.
[0085] It should be noted that after obtaining the corresponding coordinates, the basic data is obtained, and the program automatically calculates the effective distance from the capacitor 1 to the power-consuming pin according to the corresponding rules, improving the distance detection efficiency. At the same time, the accuracy is improved based on the coordinate calculation, reducing the deviation between the calculated distance and the actual effective distance.
[0086] To further understand the present invention, the calculation methods corresponding to different connection methods are described in detail below.
[0087] (1) The capacitor pin and the power-consuming pin are connected by traces
[0088] As Figure 3 and 5 shown, denote the traces between the capacitor pin pad 3 and the power-consuming pin pad 4 as the first trace 5, the second trace 6, and the third trace 7; among them, the first trace 5 is parallel to the capacitor pin pad 3, the third trace 7 is parallel to the power-consuming pin pad 4, and the second trace 6 is connected between the first trace 5 and the third trace 7. For the trace connection method, obtain the coordinates of both ends of the first trace 5, the second trace 6, and the third trace 7 respectively, and then calculate the effective distance from the capacitor 1 to the power-consuming pin according to the shape coordinates of the capacitor pin pad 3, the shape coordinates of the power-consuming pin pad 4, and the coordinates of both ends of each trace.
[0089] It should be noted that the trace connection is divided into two cases. The first case is as Figure 3 shown, the third trace 7 is not completely covered by the power-consuming pin. The second case is as Figure 5 shown, the third trace 7 is completely covered by the power-consuming pin, and the second trace 6 extends from one end of the power-consuming pin.
[0090] When calculating the effective distance from the capacitor 1 to the power-consuming pin, first calculate the distances between the four vertices of the capacitor pin pad 3 and the four vertices of the power-consuming pin pad 4 respectively, and find the two vertices with the closest distance, denoted as the reference vertices. In Figure 3 and Figure 5Among them, the lower left corner vertex of the capacitor pin is the reference vertex of the capacitor pin pad 3, denoted as the first reference vertex 8, and the upper right corner vertex of the power-consuming pin is the reference vertex of the power-consuming pin pad 4, denoted as the second reference vertex 9. It is possible to determine whether it is the first case or the second case based on the second reference vertex 9, the coordinates of the third trace 7, and the second trace 6 end coordinates. Correspondingly, the corresponding lengths are calculated according to the reference vertices.
[0091] For the first case, the power-consuming pin pad 4 does not completely cover the third trace 7. The effective distance from the capacitor 1 to the power-consuming pin is specifically calculated through the following steps.
[0092] Step 1: According to the end coordinates of the third trace 7 outside the power-consuming pin pad 4 and the coordinates of the reference vertex of the power-consuming pin pad 4, calculate the uncovered length of the third trace 7, denoted as the third effective length.
[0093] Step 2: Calculate the length of the second trace 6 according to the two end coordinates of the second trace 6, denoted as the second effective length.
[0094] Step 3: According to the end coordinates of the first trace 5 outside the power-consuming pin pad 4 and the coordinates of the reference vertex of the capacitor pin pad 3, calculate the uncovered length of the first trace 5, denoted as the first effective length.
[0095] Step 4: Add the first effective length, the second effective length, and the third effective length to obtain the effective distance from the capacitor 1 to the power-consuming pin;
[0096] Figure 3 and 4 Among them, actually the length of the conductor between the first target point 10 and the second target point 11 is the distance from the capacitor 1 to the power-consuming pin to be calculated. (x1, y1) are the coordinates of the second reference vertex 9, (x2, y2) are the coordinates of one end of the third trace 7 outside the power-consuming pin pad 4, which is also equivalent to the first end coordinates of the second trace 6, (x3, y3) are the second end coordinates of the second trace 6, which is also equivalent to the coordinates of one end of the first trace 5 outside the capacitor pin pad 3, and (x4, y4) are the coordinates of the first reference vertex 8.
[0097] First of all, x2 - x1 gives the uncovered length of the third trace 7, that is, the third effective length. The straight-line distance between (x2, y2) and (x3, y3) is the second effective length, and y4 - y3 is the uncovered length of the first trace 5, that is, the first effective length. Adding the three effective lengths together gives the effective distance from the capacitor 1 to the power-consuming pin. This calculation method removes the covered lengths of the first trace 5 and the third trace 7, greatly improving the calculation accuracy.
[0098] For the first case, the power-consuming pin pad 4 completely covers the third trace 7, and the second trace 6 covers the second reference vertex 9 of the power-consuming pin pad 4. Specifically, the effective distance from capacitor 1 to the power-consuming pin is calculated through the following steps.
[0099] Step 1: According to the end coordinates of the first trace 5 outside the power-consuming pin pad 4 and the coordinates of the reference vertex of the capacitor pin pad 3, calculate the uncovered length of the first trace 5, denoted as the fourth effective length.
[0100] Step 2: Calculate the length from the reference vertex of the power-consuming pin pad 4 to the end of the second trace 6 close to the capacitor pin, denoted as the fifth effective length.
[0101] Step 3: Add the fourth effective length and the fifth effective length to obtain the effective distance from capacitor 1 to the power-consuming pin.
[0102] Figure 5 and 6 In [reference], actually, the conductor length between the second reference point and the second target point 11 is the distance from capacitor 1 to the power-consuming pin to be calculated. (x1, y1) are the coordinates of the second reference vertex 9, (x3, y3) are the coordinates of the second end of the second trace 6, which is also equivalent to the coordinates of the end of the first trace 5 outside the capacitor pin pad 3, and (x4, y4) are the coordinates of the first reference vertex 8.
[0103] First, the distance between (x1, y1) and (x3, y3) is the fifth effective length, and y4 - y3 is the uncovered length of the first trace 5, that is, the fourth effective length. Adding the fourth effective length and the fifth effective length gives the effective distance from capacitor 1 to the power-consuming pin. This calculation method removes the covered lengths of the first trace 5 and the third trace 7, greatly improving the calculation accuracy.
[0104] It should be noted that by removing the covered lengths of the first trace 5 and the third trace 7, most of the errors are basically removed. In this embodiment, directly taking the distance between (x1, y1) and (x3, y3) as the fifth effective length can meet the accuracy requirements.
[0105] (2) The capacitor pin and the power-consuming pin are connected by a copper foil 12
[0106] Figure 7 is a schematic diagram of the connection structure between the capacitor pin and the power-consuming pin by a copper foil 12. When connecting by the copper foil 12, in order to prevent the tombstone phenomenon, a cutout is made on the copper foil 12. In this embodiment, first, the vertex coordinates of the cutout area on the copper foil 12 are obtained, and then according to the shape coordinates of the capacitor pin pad 3, the shape coordinates of the power-consuming pin pad 4, and the vertex coordinates of the cutout area, the effective distance from capacitor 1 to the power-consuming pin is calculated.
[0107] Specifically, calculate the distances between the four vertices of the capacitor pin pad 3 and the four vertices of the power-consuming pin pad 4 respectively, and find the two vertices with the closest distance, which are denoted as reference vertices. The lower left vertex of the capacitor pin is the reference vertex of the capacitor pin pad 3, denoted as the first reference vertex 8, and the upper right vertex of the power-consuming pin is the reference vertex of the power-consuming pin pad 4, denoted as the second reference vertex 9.
[0108] Correspondingly, denote the hollowed-out area corresponding to the reference vertex of the capacitor pin as the reference hollowed-out area 13. Denote the two vertices of the reference hollowed-out area 13 on one side of the first reference vertex 8 as the first hollowed-out vertex and the second hollowed-out vertex respectively, and the two vertices on the other side as the third hollowed-out vertex and the fourth hollowed-out vertex respectively; among them, the first hollowed-out vertex and the third hollowed-out vertex are on the inner side, and the second hollowed-out vertex and the fourth hollowed-out vertex are on the outer side. Denote the intersection point of the line connecting the first reference vertex 8 and the second reference vertex 9 and the reference hollowed-out area 13 as the reference intersection point 14.
[0109] Calculate the effective distance from the capacitor 1 to the power-consuming pin through the following calculation process.
[0110] Step 1, calculate the coordinates of the reference intersection point 14;
[0111] Step 2, calculate the length between the reference intersection point 14 and the second reference vertex 9, denoted as the sixth effective length;
[0112] Step 3, calculate the length between the reference intersection point 14 and the second hollowed-out vertex, denoted as the seventh effective length;
[0113] Step 4, calculate the length between the second hollowed-out vertex and the first hollowed-out vertex, denoted as the eighth effective length;
[0114] Step 5, calculate the length between the reference intersection point 14 and the fourth hollowed-out vertex, denoted as the ninth effective length;
[0115] Step 6, calculate the length between the fourth hollowed-out vertex and the third hollowed-out vertex, denoted as the tenth effective length;
[0116] Step 7, calculate the sum of the lengths of the sixth effective length, the seventh effective length, and the eighth effective length, denoted as the first effective distance;
[0117] Step 8, calculate the sum of the lengths of the sixth effective length, the ninth effective length, and the tenth effective length, denoted as the second effective distance;
[0118] Step 9, compare the magnitudes of the first effective distance and the second effective distance, and the smaller distance is the effective distance from the capacitor 1 to the power-consuming pin.
[0119] Such as Figure 8The figure shows a schematic diagram of the coordinates of each vertex of the reference hollow area 13. (x4, y4) are the coordinates of the first reference vertex 8, (x1, y1) are the coordinates of the second reference vertex 9, (x5, y5) are the coordinates of the first hollow vertex, (x6, y6) are the coordinates of the second hollow vertex, (x7, y7) are the coordinates of the third hollow vertex, (x8, y8) are the coordinates of the fourth hollow vertex, and (x9, y9) are the coordinates of the reference intersection point 14.
[0120] First, calculate the distance of the second reference vertex 9 - reference intersection point 14 - second hollow vertex - first hollow vertex, which is the first effective distance. Then, calculate the distance of the second reference vertex 9 - reference intersection point 14 - fourth hollow vertex - third hollow vertex, which is the second effective distance. Then, compare the magnitudes of the first effective distance and the second effective distance, and select the smaller one as the effective distance from capacitor 1 to the power-consuming pin.
[0121] Based on the above embodiments, as a preferred implementation, after calculating the effective distance from capacitor 1 to the power-consuming pin, the filtering radius of capacitor 1 can be further obtained to automatically determine whether the effective distance meets the requirements.
[0122] Specifically, obtain the capacitance value parameter of capacitor 1 of the capacitor pin, calculate the filtering radius of capacitor 1 according to the capacitance value parameter of capacitor 1, and determine whether the effective distance from capacitor 1 to the power-consuming pin is less than or equal to the filtering radius of capacitor 1. If so, the effective distance from capacitor 1 to the power-consuming pin meets the requirements; otherwise, the effective distance from capacitor 1 to the power-consuming pin does not meet the requirements.
[0123] To obtain the pad coordinates, in some specific embodiments, the pad coordinates can be automatically obtained through the following steps.
[0124] Step 1: Select the pins to be detected by drawing a box; the pins to be detected include capacitor pins and power-consuming pins.
[0125] Step 2: Obtain the identity identifiers of the pins to be detected and store them in the first sequence.
[0126] Step 3: Sequentially take out each identity identifier from the first sequence.
[0127] Step 4: Find the affiliated components according to the identity identifiers.
[0128] Step 5: If the affiliated component is capacitor 1, read out the capacitance value parameter according to the identity identifier, and store the capacitance value parameter and the taken-out identity identifier in the first array.
[0129] Step 6: If the affiliated component is a power-consuming chip, store the taken-out identity identifier in the second array.
[0130] Step 7: Sequentially take out each identity identifier from the first array, and read out the shape coordinates of the corresponding capacitor pin pad 3 according to the identity identifier.
[0131] Step 8: Successively take out each identity identifier from the second array, and read the shape coordinates of the corresponding power-consuming pin pad 4 according to the identity identifier.
[0132] During specific implementation, the following steps are executed.
[0133] 1) After the engineer selects the capacitor 1 and chip pins to be detected by box selection, the program stores the identity identifier pad_DBID of the pins into the sequence l_pad_DBID.
[0134] 2) Take out an element pad1_DBID from l_pad_DBID. According to pad1_DBID, the device (symbol) to which this pin belongs can be found. The keywords in the device information can determine whether the device is capacitor 1 or a chip. If the device is capacitor 1, read the capacitance value parameter and record it as A1, assign pad1_DBID to pad1_CAP_DBID, and store (pad1_CAP_DBID A1) into the two-dimensional array l_symbol_CAP; if the device is a chip, assign pad1_DBID to pad1_IC_DBID, and also store pad1_IC_DBID into the array l_symbol_IC. By taking out the elements in l_pad_DBID one by one in this way, the capacitor pins and chip pins can be stored separately in the two arrays l_symbol_CAP and l_symbol_IC.
[0135] 3) Take out an element (pad1_CAP_DBID A1) from l_symbol_CAP. From pad1_CAP_DBID, the coordinates of the pad shape pad1_CAP_coordinate1, pad1_CAP_coordinate2... can be read and stored in the array l_pad1_CAP_coordinate. Take out an element pad1_IC_DBID from l_symbol_IC, and the coordinates of the pad shape pad1_IC_coordinate1, pad1_IC_coordinate2... can be read and stored in the array l_pad1_IC_coordinate. Calculate the distance between each element of l_pad1_CAP_coordinate and l_pad1_IC_coordinate, and find the minimum value.
[0136] 4) Denote the calculated effective distance from Capacitor 1 to the power pin as S. The filtering radius R of Capacitor 1 can be calculated from the capacitance value parameter A1 of Capacitor 1 in the two-dimensional array l_symbol_CAP. Subtract R from S. If S - R ≤ 0, the distance from Capacitor 1 to the power pin of the chip meets the requirement; if S - R > 0, the distance from Capacitor 1 to the power pin of the chip does not meet the requirement.
[0137] In the above text, an embodiment of a method for detecting the effective distance from Capacitor 1 to the power pin is described in detail. Based on the method for detecting the effective distance from Capacitor 1 to the power pin described in the above embodiment, an embodiment of the present invention also provides a device for detecting the effective distance from Capacitor 1 to the power pin corresponding to this method.
[0138] Figure 9 is a schematic block diagram of the structure of a device for detecting the effective distance from Capacitor 1 to the power pin provided in this embodiment, as Figure 9 shown. The device includes: a coordinate acquisition module, a connection method determination module, and a distance calculation module.
[0139] Coordinate acquisition module: Acquire the shape coordinates of the capacitor pin pad 3 and the shape coordinates of the power pin pad 4; wherein, the pad shape coordinates include the coordinates of the four vertices of the pad.
[0140] Connection method determination module: Determine the connection method between the capacitor pin and the power pin.
[0141] Distance calculation module: Based on the corresponding connection method, calculate the effective distance from Capacitor 1 to the power pin according to the shape coordinates of the capacitor pin pad 3 and the shape coordinates of the power pin pad 4.
[0142] The device for detecting the effective distance from Capacitor 1 to the power pin in this embodiment is used to implement the aforementioned method for detecting the effective distance from Capacitor 1 to the power pin. Therefore, the specific implementation manners in this device can be seen in the embodiment part of the method for detecting the effective distance from Capacitor 1 to the power pin in the previous text. Therefore, its specific implementation manners can refer to the descriptions of the corresponding various part embodiments and will not be elaborated here.
[0143] In addition, since the device for detecting the effective distance from Capacitor 1 to the power pin in this embodiment is used to implement the aforementioned method for detecting the effective distance from Capacitor 1 to the power pin, its function corresponds to the function of the above method and will not be elaborated here.
[0144] Figure 10 is a schematic structural diagram of a terminal device 1000 provided in an embodiment of the present invention, including: a processor 1010, a memory 1020, and a communication unit 1030. The processor 1010 is used to implement the following steps when implementing the program for detecting the effective distance from Capacitor 1 to the power pin stored in the memory 1020:
[0145] S1, obtain the shape coordinates of the capacitor pin pad 3 and the shape coordinates of the power-consuming pin pad 4;
[0146] S2, determine the connection method between the capacitor pin and the power-consuming pin;
[0147] S3, based on the corresponding connection method, calculate the effective distance from the capacitor 1 to the power-consuming pin according to the shape coordinates of the capacitor pin pad 3 and the shape coordinates of the power-consuming pin pad 4.
[0148] The present invention automatically obtains the pad coordinates and automatically calculates the distance between the capacitor 1 and the power-consuming pin according to the pad coordinates, realizing the automatic detection of the effective distances from all filter capacitors 1 on the board to the power-consuming pins, which can replace the cumbersome manual inspection, save manpower and avoid omissions; moreover, the calculated distance has a small deviation from the actual effective distance, improving the detection accuracy and efficiency; preferably, it can automatically identify and read out the capacitance value of the capacitor 1, convert the capacitance value into the filtering distance supported by the capacitor 1, compare the filtering distance supported by the capacitor 1 with the effective shortest distance of the actual trace or shape, analyze whether the placement position of this capacitor 1 meets the requirements, provide a basis for the design, and improve the design efficiency.
[0149] The terminal device 1000 includes a processor 1010, a memory 1020 and a communication unit 1030. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not constitute a limitation to the present invention. It can be a bus structure, a star structure, and can also include more or fewer components than shown in the figure, or combine some components, or different component arrangements.
[0150] Among them, the memory 1020 can be used to store the execution instructions of the processor 1010. The memory 1020 can be implemented by any type of volatile or non-volatile storage terminal or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 1020 are executed by the processor 1010, the terminal 1000 can execute some or all of the steps in the above method embodiments.
[0151] The processor 1010 is the control center of the storage terminal, connecting various parts of the entire electronic terminal through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1020, and by calling data stored in the memory, it executes various functions of the electronic terminal and / or processes data. The processor may be composed of an integrated circuit (IC), for example, it may be composed of a single packaged IC, or it may be composed of multiple packaged ICs with the same or different functions connected together. For example, the processor 1010 may only include a central processing unit (CPU). In the embodiment of the present invention, the CPU may be a single arithmetic core or may include multiple arithmetic cores.
[0152] The communication unit 1030 is used to establish a communication channel so that the storage terminal can communicate with other terminals. It receives user data sent by other terminals or sends user data to other terminals.
[0153] The present invention also provides a computer storage medium, and the storage medium mentioned here may be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0154] The computer storage medium stores a program for detecting the effective distance from capacitor 1 to the power-consuming pin. When the program for detecting the effective distance from capacitor 1 to the power-consuming pin is executed by the processor, the following steps are implemented:
[0155] S1, obtain the shape coordinates of the capacitor pin pad 3 and the shape coordinates of the power-consuming pin pad 4;
[0156] S2, determine the connection method between the capacitor pin and the power-consuming pin;
[0157] S3, based on the corresponding connection method, calculate the effective distance from capacitor 1 to the power-consuming pin according to the shape coordinates of the capacitor pin pad 3 and the shape coordinates of the power-consuming pin pad 4.
[0158] The present invention automatically obtains the coordinates of the pads, automatically calculates the distance between capacitor 1 and the power-consuming pin according to the pad coordinates, realizes the automatic detection of the effective distances between all the filtering capacitors 1 and the power-consuming pins on the board, can replace the cumbersome manual inspection, save manpower and avoid omission; moreover, the calculated distance has a small deviation from the actual effective distance, improving the detection accuracy and efficiency; preferably, it can automatically identify and read out the capacitance value of capacitor 1, convert the capacitance value into the filtering distance supported by capacitor 1, compare the filtering distance supported by capacitor 1 with the effective shortest distance of the actual trace or shape, and analyze whether the placement position of this capacitor 1 meets the requirements, providing a basis for the design and improving the design efficiency.
[0159] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention, in essence, or the part that makes contributions to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disc, etc., which can store program codes, and includes several instructions for causing a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
[0160] In several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form.
[0161] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0162] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0163] The above are only the preferred embodiments of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by those skilled in the art, as well as several improvements and refinements made without departing from the principle of the present invention, should fall within the protection scope of the present invention.
Claims
1. A method for detecting the effective distance from a capacitor pin to a power-consuming pin, characterized in that, It includes the following steps: Obtain the shape coordinates of the capacitor pin pad and the power-consuming pin pad; wherein, the shape coordinates of the pad include the coordinates of the four vertices of the pad; Judge the connection mode between the capacitor pin and the power-consuming pin; Based on the corresponding connection mode, according to the shape coordinates of the capacitor pin pad and the power-consuming pin pad, calculate the effective distance from the capacitor pin to the power-consuming pin; obtain the capacitance value parameter of the capacitor pin; calculate the capacitance filtering radius according to the capacitance value parameter; judge whether the effective distance from the capacitor pin to the power-consuming pin is less than or equal to the capacitance filtering radius; if so, the effective distance from the capacitor pin to the power-consuming pin meets the requirements; otherwise, the effective distance from the capacitor pin to the power-consuming pin does not meet the requirements.
2. The method for detecting the effective distance from the capacitor pin to the power-consuming pin according to claim 1, wherein The method specifically includes the following steps: If the capacitor pin and the power-consuming pin are connected by a trace, record that the trace between the capacitor pin pad and the power-consuming pin pad includes a first trace, a second trace and a third trace; wherein the first trace is parallel to the capacitor pin pad, the third trace is parallel to the power-consuming pin pad, and the second trace is connected between the first trace and the third trace; Obtain the coordinates of both ends of the first trace, the second trace and the third trace respectively; According to the shape coordinates of the capacitor pin pad, the power-consuming pin pad and the coordinates of both ends of each trace, calculate the effective distance from the capacitor pin to the power-consuming pin.
3. The method for detecting the effective distance from the capacitor pin to the power-consuming pin according to claim 2, wherein Calculating the effective distance from the capacitor pin to the power-consuming pin according to the shape coordinates of the capacitor pin pad, the power-consuming pin pad and the coordinates of both ends of each trace specifically includes: Calculate the distances between the four vertices of the capacitor pin pad and the four vertices of the power-consuming pin pad respectively, find the two closest vertices, and record them as reference vertices; In the first case, if the power-consuming pin pad does not completely cover the third trace, then according to the end coordinates of the third trace outside the power-consuming pin pad and the coordinates of the reference vertex of the power-consuming pin pad, calculate the uncovered length of the third trace, and record it as the third effective length; Calculate the length of the second trace according to the coordinates of both ends of the second trace, and record it as the second effective length; According to the end coordinates of the first trace outside the capacitor pin pad and the coordinates of the reference vertex of the capacitor pin pad, calculate the uncovered length of the first trace, and record it as the first effective length; Add the first effective length, the second effective length and the third effective length to obtain the effective distance from the capacitor pin to the power-consuming pin; In the second case, if the power-consuming pin pad completely covers the third trace and the second trace covers the reference vertex of the power-consuming pin pad, then according to the end coordinates of the first trace outside the power-consuming pin pad and the coordinates of the reference vertex of the capacitor pin pad, calculate the uncovered length of the first trace, and record it as the fourth effective length; Calculate the length from the reference vertex of the power-consuming pin pad to the end of the second trace close to the capacitor pin, and record it as the fifth effective length; Add the fourth effective length and the fifth effective length to obtain the effective distance from the capacitor pin to the power-consuming pin.
4. The method for detecting the effective distance from the capacitor pin to the power-consuming pin according to any one of claims 1-3, characterized in that The method specifically includes the following steps: If the capacitor pin and the power-consuming pin are connected by a copper clad, then obtain the vertex coordinates of the hollowed-out area on the copper clad; Calculate the effective distance from the capacitor pin to the power-consuming pin according to the capacitor pin pad shape coordinates, the power-consuming pin pad shape coordinates, and the vertex coordinates of the hollowed-out area.
5. The method for detecting the effective distance from the capacitor pin to the power-consuming pin according to claim 4, characterized in that, Calculate the effective distance from the capacitor pin to the power-consuming pin according to the capacitor pin pad shape coordinates, the power-consuming pin pad shape coordinates, and the vertex coordinates of the hollowed-out area, specifically including: Calculate the distances between the four vertices of the capacitor pin pad and the four vertices of the power-consuming pin pad respectively, find the two vertices with the shortest distance, and record them as the reference vertices; Record the hollowed-out area corresponding to the reference vertex of the capacitor pin as the reference hollowed-out area; Record the two vertices of the reference hollowed-out area on one side of the reference vertex of the capacitor pin as the first hollowed-out vertex and the second hollowed-out vertex respectively, and the two vertices on the other side as the third hollowed-out vertex and the fourth hollowed-out vertex respectively; among them, the first hollowed-out vertex and the third hollowed-out vertex are on the inner side, and the second hollowed-out vertex and the fourth hollowed-out vertex are on the outer side; Record the intersection point of the line connecting the two reference vertices of the capacitor pin and the power-consuming pin and the reference hollowed-out area as the reference intersection point; Calculate the coordinates of the reference intersection point; Calculate the length between the reference intersection point and the reference vertex of the power-consuming pin, and record it as the sixth effective length; Calculate the length between the reference intersection point and the second hollowed-out vertex, and record it as the seventh effective length; Calculate the length between the second hollowed-out vertex and the first hollowed-out vertex, and record it as the eighth effective length; Calculate the length between the reference intersection point and the fourth hollowed-out vertex, and record it as the ninth effective length; Calculate the length between the fourth hollowed-out vertex and the third hollowed-out vertex, and record it as the tenth effective length; Calculate the sum of the lengths of the sixth effective length, the seventh effective length, and the eighth effective length, and record it as the first effective distance; Calculate the sum of the lengths of the sixth effective length, the ninth effective length, and the tenth effective length, and record it as the second effective distance; Compare the magnitudes of the first effective distance and the second effective distance, and the smaller distance is the effective distance from the capacitor pin to the power-consuming pin.
6. The method for detecting the effective distance from the capacitor pin to the power-consuming pin according to claim 5, wherein The method specifically includes the following steps: Select the pins to be detected by box selection; the pins to be detected include capacitor pins and power-consuming pins; Obtain the identity identifiers of the pins to be detected and store them in the first sequence; Successively take out each identity identifier from the first sequence; Find the affiliated component according to the identity identifier; If the affiliated component is a capacitor, read out the capacitance parameter according to the identity identifier, and store the capacitance parameter and the taken-out identity identifier in the first array; If the affiliated component is a power-consuming chip, store the taken-out identity identifier in the second array; Successively take out each identity identifier from the first array, and read out the corresponding capacitor pin pad shape coordinates according to the identity identifier; Successively take out each identity identifier from the second array, and read out the corresponding power-consuming pin pad shape coordinates according to the identity identifier.
7. A device for detecting the effective distance from a capacitor pin to a power-consuming pin, characterized in that, Including, Coordinate acquisition module: acquire the capacitor pin pad shape coordinates and the power-consuming pin pad shape coordinates; wherein, the pad shape coordinates include the coordinates of the four vertices of the pad; Connection method judgment module: judge the connection method between the capacitor pin and the power-consuming pin; Distance calculation module: Based on the corresponding connection method, calculate the effective distance from the capacitor pin to the power-consuming pin according to the shape coordinates of the capacitor pin pad and the shape coordinates of the power-consuming pin pad; obtain the capacitance value parameter of the capacitor pin; calculate the capacitance filtering radius according to the capacitance value parameter; determine whether the effective distance from the capacitor pin to the power-consuming pin is less than or equal to the capacitance filtering radius; if so, the effective distance from the capacitor pin to the power-consuming pin meets the requirements; otherwise, the effective distance from the capacitor pin to the power-consuming pin does not meet the requirements.
8. A terminal, characterized in that, Including: A memory for storing a program for detecting the effective distance from the capacitor pin to the power-consuming pin; A processor for implementing the steps of the method for detecting the effective distance from the capacitor pin to the power-consuming pin as described in any one of claims 1-6 when executing the program for detecting the effective distance from the capacitor pin to the power-consuming pin.
9. A computer-readable storage medium, characterized in that, The readable storage medium stores a program for detecting the effective distance from the capacitor pin to the power-consuming pin, and when the program for detecting the effective distance from the capacitor pin to the power-consuming pin is executed by the processor, the steps of the method for detecting the effective distance from the capacitor pin to the power-consuming pin as described in any one of claims 1-6 are implemented.
Citation Information
Patent Citations
Method and system for avoiding overlapping of wiring and solder mask layer in PCB
CN111291530A
Bonding type selection method and device, electronic equipment and medium
CN114065689A