Method for inspecting high-speed signal line in PCB, inspection device and electronic equipment
By forming a check set of high-speed signal line pairs in the PCB board and grouping them according to differences in line width and length, the problem of low inspection efficiency and missed detection in the prior art is solved, realizing efficient and accurate signal line inspection and simplifying the correction process.
Patent Information
- Application Number
- CN202311651815.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-05
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-12-05
AI Technical Summary
Existing technologies for checking the differences in line length and line width of high-speed signal lines on PCBs are inefficient and prone to missing detections, affecting logic judgment.
By using high-speed signal line pairs in the PCB as elements to form a set to be inspected, the routing layer they occupy is determined, they are grouped by line width and the length difference is calculated. It is then judged whether the preset conditions are met, signal lines whose lengths do not meet the conditions are highlighted, and the inspection results are output.
It improves inspection efficiency and accuracy, prevents missed detections, simplifies the signal line length correction process, and avoids the impact of wiring layer differences on logic judgment.
Smart Images

Figure CN117574848B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of PCB (Printed Circuit Board) design technology, and in particular to a method, apparatus and electronic device for inspecting high-speed signal lines in a PCB. Background Technology
[0002] In PCB boards, high-speed signals are typically differential signals, transmitted via two signal lines. The signals on these two lines have the same amplitude but opposite phase. After receiving the signals transmitted from the two signal lines, the signal receiver determines whether the transmitter sent a logic 0 or a logic 1 by comparing the voltage difference between the two signals.
[0003] Each of the two signal lines transmitting high-speed signals typically occupies a different routing layer on a PCB. Within each occupied layer, the difference in line length between the two signal lines, and also the difference in line length between identical linewidth segments within the same layer (i.e., each signal line includes different linewidth segments), will affect the time difference between the high-speed signal arrival at the receiving end, thus impacting logic processing. Current technology uses manual inspection of signal line length differences, which is inefficient, prone to omissions, and susceptible to false positives. Summary of the Invention
[0004] This invention provides a method, apparatus, and electronic device for inspecting high-speed signal lines on a PCB board, in order to improve the efficiency and accuracy of signal line inspection and prevent missed detection of signal lines.
[0005] According to one aspect of the present invention, a method for inspecting high-speed signal lines in a PCB board is provided, comprising:
[0006] Each high-speed signal line pair to be inspected in the PCB board is taken as an element to form an inspection set; wherein, each high-speed signal line pair includes a first high-speed signal line and a second high-speed signal line;
[0007] Determine the wiring layer occupied by the first high-speed signal line and the second high-speed signal line of the same high-speed signal line pair in the set to be inspected;
[0008] Group the signal lines in the same layer according to different line widths, and check whether the line width of the signal lines in the corresponding layer meets the preset line width conditions based on the number of line width groups in the same layer.
[0009] Calculate the length difference between the first and second high-speed signal lines with the same line width and continuous wiring in the same high-speed signal line pair on the same layer.
[0010] Based on the length difference, check whether the high-speed signal line pair meets the preset length condition.
[0011] The technical solution provided by the embodiments of the present invention can quickly check the internal length equality of different layers and line widths of high-speed signal lines on the entire board or part of the board, reducing the time of manual inspection, improving the accuracy of signal line inspection, and preventing missed detection of signal lines.
[0012] Optionally, after determining the wiring layer occupied by the first high-speed signal line and the second high-speed signal line of the same high-speed signal line pair in the set to be inspected, the method further includes:
[0013] Determine whether the routing layer occupied by the first high-speed signal line in the same high-speed signal line pair on the PCB board is the same as that occupied by the second high-speed signal line on the PCB board; if they are different, provide routing layer difference information.
[0014] The technical solution provided by this invention enables the inspection of wiring layer differences for the same pair of high-speed signal lines and provides prompts for wiring layer difference information at different times, thereby avoiding the impact of wiring layer differences on the time difference of high-speed signals to the receiving end, which in turn affects the judgment of logic.
[0015] Optionally, the routing layer occupied by the first high-speed signal line in the same high-speed signal line pair on the PCB board is the same as that occupied by the second high-speed signal line in the same high-speed signal line pair; and the first high-speed signal line and the second high-speed signal line in the same high-speed signal line pair switch layers synchronously.
[0016] The technical solution provided by the embodiments of the present invention can avoid the difference in the wiring layer occupied by the same pair of high-speed signal lines, which affects the time difference of the high-speed signal to the receiving end and thus affects the judgment of logic; and can also eliminate the need to check the difference in the wiring layer occupied by the signal lines, further improving the inspection efficiency of high-speed signal lines in PCB boards.
[0017] Optionally, in the same high-speed signal line pair, the line width of the first high-speed signal line located in the same wiring layer belongs to at least one line width group, and the line width of the second high-speed signal line located in the same wiring layer belongs to at least one line width group; and / or, in the same high-speed signal line pair, the line width group to which the line width of the first high-speed signal line located in the same wiring layer belongs is the same as the line width group to which the line width of the second high-speed signal line belongs.
[0018] The technical solution provided by the embodiments of the present invention can avoid the difference in line width of the same pair of high-speed signal lines in the same wiring layer, which affects the time difference of high-speed signals to the receiving end and thus affects the logic judgment.
[0019] Optionally, check whether the line width of the high-speed signal lines in the same layer meets the preset line width conditions based on the number of line width groups in the same layer, including:
[0020] Determine whether the number of line width groups for high-speed signal lines in the same layer is less than a first preset value;
[0021] If so, it is determined that the line width of the high-speed signal line in that layer does not meet the preset line width condition, and a line width error message is issued;
[0022] If not, then it is determined that the line width of the high-speed signal line in this layer meets the preset line width condition.
[0023] The technical solution provided by this invention addresses the limitation that, in a PCB board, the number of different line widths typically set on a single wiring layer is limited. Therefore, by determining whether the number of line width groups for signal lines in the same layer is less than a first preset value, the determination of whether the line width of the signal lines in that layer meets the preset line width condition can be achieved. Furthermore, by judging the line width of the two signal lines in each element one by one, the line width of the two signal lines in each element can be checked. The first preset value can be set according to actual needs.
[0024] Optionally, based on the length difference, check whether the high-speed signal line pair corresponding to the element meets a preset length condition, including:
[0025] Determine whether the absolute value of the length difference is greater than a second preset value;
[0026] If so, then it is determined that the length of the high-speed signal line pair in this layer does not meet the preset length condition.
[0027] If not, then the length of the high-speed signal line pair in this layer is determined to meet the preset length condition.
[0028] The technical solution provided by this invention checks the length differences of high-speed signal lines corresponding to each element across all occupied layers by determining whether the length difference between a first high-speed signal line and a second high-speed signal line of the same width in the same layer and belonging to the same high-speed signal line pair is greater than a second preset value. This saves a significant amount of time compared to manual inspection and is more accurate. The second preset value can be set according to actual needs.
[0029] Optionally, after determining that the length of the high-speed signal line in this layer does not meet the preset length condition, the method further includes:
[0030] Obtain the high-speed signal name, routing layer, line width, and absolute value of the length difference between the two high-speed signal lines of the shorter high-speed signal line in the high-speed signal line pair, and highlight the shorter high-speed signal line with a preset color.
[0031] The technical solution provided by this invention facilitates the location of signal lines with varying lengths in the layer by highlighting them. Furthermore, by highlighting shorter high-speed signal lines in a preset color, the subsequent lengthening process for these shorter lines can be simplified compared to shortening longer high-speed signal lines, thus simplifying the process of correcting the length of high-speed signal lines on the PCB board.
[0032] Optionally, the inspection method for high-speed signal lines in the PCB board further includes:
[0033] Determine whether all elements in the set to be checked have been checked;
[0034] If so, a pop-up window will display the high-speed signal name, wiring layer, line width, and absolute value of the length difference between the two high-speed signal lines, which are highlighted in the preset color.
[0035] If not, continue checking the elements in the set to be checked.
[0036] The technical solution provided by this invention can prevent omissions in the inspection set by determining whether all elements in the set to be inspected have been inspected. Furthermore, after all elements in the set to be inspected have been inspected, a report is output, displaying the high-speed signal name, routing layer, line width, and absolute value of the length difference between two high-speed signal lines highlighted in a preset color. This facilitates the acquisition of information on all detected signal lines with discrepancies, enabling subsequent unified correction.
[0037] According to another aspect of the present invention, an inspection device for high-speed signal lines in a PCB board is provided, comprising:
[0038] The inspection set forming module is used to form an inspection set by taking each pair of high-speed signal lines to be inspected in the PCB board as an element; wherein each pair of high-speed signal lines includes a first high-speed signal line and a second high-speed signal line.
[0039] The routing layer determination module is used to determine the routing layer occupied by the first high-speed signal line and the second high-speed signal line of the same high-speed signal line pair in the set to be inspected.
[0040] The line width checking module is used to group signal lines in the same layer according to different line widths, and check whether the line width of the signal lines in that layer meets the preset line width conditions based on the number of line width groups.
[0041] The line length checking module is used to calculate the length difference between the first high-speed signal line and the second high-speed signal line with the same line width and continuous wiring in the same high-speed signal line pair on the same layer, and to check whether the high-speed signal line pair meets the preset length condition based on the length difference.
[0042] The technical solution provided by this invention, through an inspection device for high-speed signal lines in a PCB board designed based on Allegro software, can inspect the length differences of each pair of high-speed signal lines in each layer, as well as the length differences of different segments (referring to continuous wiring with the same line width). This allows for rapid inspection of the internal length equality of high-speed signal lines of different layers and line widths on the entire board or a portion thereof, reducing manual inspection time and improving the accuracy of signal line inspection.
[0043] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0044] At least one processor; and
[0045] A memory communicatively connected to the at least one processor; wherein,
[0046] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the inspection method for high-speed signal lines in a PCB board according to any embodiment of the present invention.
[0047] Optionally, the computer program includes skill programs written in free software library software.
[0048] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a flowchart of a method for inspecting high-speed signal lines in a PCB board according to an embodiment of the present invention;
[0051] Figure 2 This is a flowchart of another method for inspecting high-speed signal lines in a PCB board provided by an embodiment of the present invention;
[0052] Figure 3 This is an interface diagram provided by an embodiment of the present invention for displaying the high-speed signal name, wiring layer, line width, and absolute value of the length difference between two high-speed signal lines that are highlighted in a preset color.
[0053] Figure 4 This is a block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0054] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0055] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0056] This invention provides a method for inspecting high-speed signal lines in a PCB board, which can be executed by a PCB high-speed signal line inspection device designed based on Allegro software. Allegro (a free software library) is a PCB design and routing tool that provides a relatively complete solution for complex high-speed, high-density, and multi-layer PCB design and routing. Skill is a high-level programming language built into Allegro software, based on C and LISP (List Processing). Allegro software provides a rich set of interactive functions for Skill. Studying Skill and then writing tools for its application can greatly improve work efficiency. Figure 1 This is a flowchart of a method for inspecting high-speed signal lines on a PCB board according to an embodiment of the present invention. (Refer to...) Figure 1 The inspection methods for high-speed signal lines on a PCB board include:
[0057] S110. Take each pair of high-speed signal lines to be inspected in the PCB board as an element to form a set to be inspected; wherein, each pair of high-speed signal lines includes a first high-speed signal line and a second high-speed signal line.
[0058] Specifically, the entire board or a portion of the high-speed signals are selected as the high-speed signals to be inspected. Each pair of high-speed signal lines corresponding to the high-speed signal to be inspected is treated as a component element, forming a set to be inspected. The high-speed signals are differential signals, transmitted via two signal lines with the same amplitude but opposite phase. After receiving the signals transmitted through the two signal lines, the signal receiver determines whether the signal transmitter sent a logic 0 or a logic 1 by comparing the voltage difference between the two signals. Each high-speed signal line pair includes a first high-speed signal line A and a second high-speed signal line B.
[0059] S120. Determine the wiring layer occupied by the first high-speed signal line and the second high-speed signal line of the same high-speed signal line pair in the set to be inspected.
[0060] Specifically, PCB designs include single-sided, double-sided, and multi-layer boards. For non-single-sided PCBs, the two high-speed signal lines (first high-speed signal line A and second high-speed signal line B) in a high-speed signal pair corresponding to a high-speed signal can be placed in the same routing layer; or, both high-speed signal lines can be placed in at least two routing layers. Typically, the routing layer occupied by the first high-speed signal line in the same high-speed signal pair is the same as that occupied by the second high-speed signal line in the same high-speed signal pair; and the first and second high-speed signal lines in the same high-speed signal pair switch layers synchronously. For example, a PCB can be a 6-layer circuit board. In a high-speed signal pair corresponding to a high-speed signal Q1, the first high-speed signal line A includes segments A1, A2, and A3 sequentially placed in the first routing layer; then the second high-speed signal line B includes segments B1, B2, and B3 sequentially placed in the first routing layer.
[0061] For another example, high-speed signal lines may also exist: the first high-speed signal line A includes segments A1 arranged in the first wiring layer, segments A2 arranged in the second wiring layer, and segments A3 arranged in the first wiring layer; then the second high-speed signal line B includes segments B1 arranged in the first wiring layer, segments B2 arranged in the second wiring layer, and segments B3 arranged in the first wiring layer.
[0062] S130. Group the signal lines in the same layer according to different line widths, and check whether the line width of the signal lines in the corresponding layer meets the preset line width conditions according to the number of line width groups; among them, high-speed signal lines with the same line width or belonging to the same line width range are divided into the same group.
[0063] Specifically, the linewidths of different segments of the two high-speed signal lines (first high-speed signal line A and second high-speed signal line B) in each high-speed signal line pair are obtained. The high-speed signal lines in the same layer are grouped according to different linewidths, thereby determining the number of linewidth types of high-speed signal lines included in each conductive layer of the PCB board. Signal lines with the same linewidth or belonging to the same linewidth range are grouped together. Since it is generally not advisable to have too many linewidth types on a single wiring layer in a PCB board, in this embodiment, signal lines with the same linewidth are grouped together. The high-speed signal lines in the same layer are grouped according to different linewidths. Based on the number of linewidth groups in the same layer, the linewidth of the high-speed signal lines in that layer is checked to see if it meets the preset linewidth condition. If it exceeds the preset linewidth condition, it can be determined that the linewidth of the high-speed signal lines in that layer does not meet the preset linewidth condition. If it does not exceed the preset linewidth condition, it can be determined that the linewidth of the high-speed signal lines in that layer meets the preset linewidth condition.
[0064] It should be noted that for a high-speed signal line segment within a certain layer, the line widths of these segments can be the same or different. That is, within the same high-speed signal line pair, the line width of the first high-speed signal line located in the same routing layer belongs to at least one line width group, and the line width of the second high-speed signal line located in the same routing layer also belongs to at least one line width group. Furthermore, within the same high-speed signal line pair, the line width group to which the line width of the first high-speed signal line belongs is the same as the line width group to which the line width of the second high-speed signal line belongs.
[0065] S140. Calculate the length difference between the first and second high-speed signal lines with the same line width and continuous wiring in the same high-speed signal line pair on the same layer, and check whether the high-speed signal line pair meets the preset length condition based on the length difference.
[0066] Specifically, when a high-speed signal line has segments with different line widths on a certain layer, the segment can be further divided into sub-segments based on the line width. Taking a 6-layer PCB as an example, consider a high-speed signal line pair corresponding to a high-speed signal Q1. The first high-speed signal line A includes segments A1 on the first routing layer, A2 on the second routing layer, and A3 on the third routing layer; the second high-speed signal line B includes segments B1 on the first routing layer, B2 on the second routing layer, and B3 on the third routing layer. If segment A2 of the first high-speed signal line A on the second routing layer has two line widths, then segment A2 can be further divided into a first sub-segment A21 and a second sub-segment A22. The first sub-segment A21 is a continuous routing segment, and the second sub-segment A22 is also a continuous routing segment. Correspondingly, the second high-speed signal line B is also laid out in segment B2 of the second wiring layer, which also includes two line widths, dividing segment B2 into a first sub-segment B21 and a second sub-segment B22. The first sub-segment B21 is a continuous wiring, and the second sub-segment B22 is a continuous wiring. Among them, the first sub-segment A21 has the same line width as the first sub-segment B21, and the second sub-segment B21 has the same line width as the second sub-segment B22.
[0067] Calculate the length difference between the first sub-segment A21 and the first sub-segment B21, and calculate the length difference between the second sub-segment B21 and the second sub-segment B22. Determine whether the length differences between the first sub-segment A21 and the first sub-segment B21, and the length differences between the second sub-segment B21 and the second sub-segment B22, satisfy the preset length conditions. If at least one of them is not satisfied, it is determined that the length of the high-speed signal line corresponding to the high-speed signal Q1 in the second wiring layer does not meet the condition, that is, it is determined that the high-speed signal line corresponding to the high-speed signal Q1 does not meet the preset length conditions, and subsequent process correction is required.
[0068] It should be noted that continuous wiring refers to forming an uninterrupted metallic trace. Sub-segments, after being divided according to line width, are metallic traces with the same and continuous line width. For example, if the first high-speed signal line A is laid out in segment A2 of the second wiring layer, it includes two line widths, but there are cases where the same line width is not continuous wiring; for example, segment A2 can be divided into a first sub-segment A21, a second sub-segment A22, and a third sub-segment A23; where the line widths of the first sub-segment A21 and the second sub-segment A22 are different, and the line widths of the first sub-segment A21 and the third sub-segment A23 are the same. However, since the first sub-segment A21 and the third sub-segment A23 are separated by the second sub-segment A22, they are not continuous wiring and are therefore divided into different sub-segments. Correspondingly, the second high-speed signal line B, laid out in segment B2 of the second film layer wiring layer, also includes two line widths, and segment B2 is divided into a first sub-segment B21, a second sub-segment B22, and a third sub-segment B23. The line widths of the first sub-segment B21 and the second sub-segment B22 are different, while the line widths of the first sub-segment B21 and the third sub-segment B23 are the same.
[0069] When calculating the length difference, the length difference between the first sub-segment A21 and the first sub-segment B21, the length difference between the second sub-segment B21 and the second sub-segment B22, and the length difference between the third sub-segment A23 and the third sub-segment B23 are calculated. If at least one of these length differences is not met, it is determined that the length of the high-speed signal line corresponding to the high-speed signal Q1 in the second wiring layer does not meet the condition, that is, it is determined that the high-speed signal line corresponding to the high-speed signal Q1 does not meet the preset length condition and requires correction in subsequent processes.
[0070] The technical solution provided in this invention, through an inspection device designed based on Allegro software, acquires elements in the set to be inspected one by one, determines the routing layer occupied by the first high-speed signal line and the second high-speed signal line in the same high-speed signal line pair on the PCB board, and then groups the signal lines in the same layer according to different line widths. Based on the number of line width groups in the same layer, it checks whether the line width of the signal lines in that layer meets the preset line width conditions, thereby achieving the inspection of the line width of the signal lines in each high-speed signal line pair. By calculating the length difference between the first and second high-speed signal lines with the same line width in the same layer and belonging to the same high-speed signal line pair, it can achieve the inspection of the line length difference of each pair of high-speed signal lines in each layer and the line length difference of different segments (referring to continuous routing with the same line width). This allows for rapid inspection of the equal length of high-speed signal lines in different layers and with different line widths on the entire board or a portion thereof, reducing manual inspection time and improving the accuracy of signal line inspection. The method provided in this embodiment can be used during and after PCB design, and is simple, convenient, and fast.
[0071] Optionally, after determining the wiring layer occupied by the first and second high-speed signal lines of the same high-speed signal line pair in the set to be inspected, the method further includes:
[0072] Determine whether the routing layer occupied by the first high-speed signal line in the same high-speed signal line pair on the PCB board is the same as that occupied by the second high-speed signal line on the PCB board; if they are different, provide routing layer difference information.
[0073] The technical solution provided by this invention determines whether the wiring layers occupied by the first high-speed signal line and the second high-speed signal line in the same high-speed signal line pair are the same on the PCB board. Furthermore, it provides a prompt indicating the wiring layer difference information at different times, thereby enabling the checking of wiring layer differences for the same pair of high-speed signal lines. This avoids wiring layer differences affecting the time difference of high-speed signals to the receiving end, and consequently affecting logic judgment.
[0074] Optionally, the routing layer occupied by the first high-speed signal line in the same high-speed signal line pair on the PCB board is the same as that occupied by the second high-speed signal line in the same high-speed signal line pair; and the first high-speed signal line and the second high-speed signal line in the same high-speed signal line pair are switched on the same layer simultaneously.
[0075] The technical solution provided by this invention sets the routing layer occupied by the first high-speed signal line in the same high-speed signal line pair on the same PCB board as the routing layer occupied by the second high-speed signal line in the same PCB board; and the first high-speed signal line and the second high-speed signal line in the same high-speed signal line pair switch layers synchronously; thus avoiding the impact of the difference in the routing layer occupied by the same pair of high-speed signal lines on the time difference of the high-speed signal to the receiving end, thereby affecting the judgment of logic, and also eliminating the need to check the difference in the routing layer occupied by the signal lines, further improving the inspection efficiency of high-speed signal lines in the PCB board.
[0076] Optionally, in the same high-speed signal line pair, the line width of the first high-speed signal line located in the same wiring layer belongs to at least one line width group, and the line width of the second high-speed signal line located in the same wiring layer belongs to at least one line width group; and / or, in the same high-speed signal line pair, the line width group to which the line width of the first high-speed signal line located in the same wiring layer belongs is the same as the line width group to which the line width of the second high-speed signal line belongs.
[0077] The technical solution provided by this invention avoids the impact of linewidth differences of the same pair of high-speed signal lines in the same wiring layer on the time difference of high-speed signals to the receiving end, thereby affecting the logic judgment, by setting the linewidth group to which the linewidth of the first high-speed signal line in the same wiring layer belongs to the same linewidth group as the linewidth group to which the linewidth of the second high-speed signal line belongs.
[0078] Optionally, check whether the line width of the high-speed signal lines in the same layer meets the preset line width conditions based on the number of line width groups in the same layer, including:
[0079] Determine whether the number of line width groups for high-speed signal lines in the same layer is less than a first preset value;
[0080] If so, it is determined that the line width of the high-speed signal line in that layer does not meet the preset line width condition, and a line width error message is issued;
[0081] If not, then it is determined that the line width of the high-speed signal line in this layer meets the preset line width condition.
[0082] The technical solution provided by this invention addresses the limitation that, in a PCB board, the number of different line widths typically set on a single wiring layer is limited. Therefore, by determining whether the number of line width groups for high-speed signal lines in the same layer is less than a first preset value, the determination of whether the line width of the signal lines in that layer meets the preset line width condition can be achieved. Furthermore, by judging the line width of two signal lines in each element one by one, the line width of the two signal lines in each element can be checked on different layers. The first preset value can be set according to actual needs. For example, the first preset value can be 3.
[0083] Optionally, check whether the high-speed signal line pair meets the preset length condition based on the length difference, including:
[0084] Determine whether the absolute value of the length difference is greater than the second preset value;
[0085] If so, then it is determined that the length of the high-speed signal line in this layer does not meet the preset length condition.
[0086] If not, then the length of the high-speed signal line in this layer is determined to meet the preset length condition.
[0087] The technical solution provided by this invention checks the length differences of high-speed signal lines corresponding to each element across all occupied layers by determining whether the length difference between a first high-speed signal line and a second high-speed signal line of the same width located in the same layer and belonging to the same high-speed signal line pair is greater than a second preset value. This saves a significant amount of time compared to manual inspection and is more accurate. The second preset value can be set according to actual needs. For example, the second preset value can be 1 mil.
[0088] Optionally, after determining that the length of the high-speed signal line in this layer does not meet the preset length condition, the method further includes:
[0089] Obtain the high-speed signal name, routing layer, line width, and absolute value of the length difference between the two high-speed signal lines of the shorter high-speed signal line in the high-speed signal line pair, and highlight the shorter high-speed signal line with a preset color.
[0090] The technical solution provided in this invention, after determining that the length of a high-speed signal line in a wiring layer does not meet the preset length condition, highlights the signal lines with different lengths in that layer, making it easy to locate them. Furthermore, it acquires and records the high-speed signal name, wiring layer, line width, and absolute value of the length difference between the two high-speed signal lines of the shorter line. This allows for subsequent lengthening of the shorter high-speed signal line, simplifying the process of correcting the length of high-speed signal lines on the PCB board compared to shortening the longer high-speed signal line.
[0091] Optionally, the inspection methods for high-speed signal lines on the PCB board also include:
[0092] Determine whether all elements in the set to be checked have been checked;
[0093] If so, a pop-up window will display the high-speed signal name, wiring layer, line width, and absolute value of the length difference between the two high-speed signal lines, which are highlighted in the preset color.
[0094] If not, continue checking the elements in the set to be checked.
[0095] The technical solution provided by this invention can prevent omissions in the inspection set by determining whether all elements in the set to be inspected have been inspected. Furthermore, after all elements in the set to be inspected have been inspected, a report is output, displaying the high-speed signal name, routing layer, line width, and absolute value of the length difference between two high-speed signal lines highlighted in a preset color. This facilitates the acquisition of information on all detected signal lines with discrepancies requiring correction, enabling subsequent correction to ensure uniform signal line lengths.
[0096] In conclusion, Figure 2 This is a flowchart of another method for inspecting high-speed signal lines in a PCB board provided by an embodiment of the present invention, see reference. Figure 2 The inspection methods for high-speed signal lines on a PCB board include:
[0097] S210. Determine the high-speed signals to be inspected in the PCB board, and take the high-speed signal line pair corresponding to each high-speed signal to be inspected as an element to form an inspection set; wherein, each high-speed signal line pair includes a first high-speed signal line and a second high-speed signal line.
[0098] S220. Obtain the elements in the set to be inspected one by one, and determine the routing layer occupied by the first high-speed signal line and the second high-speed signal line in the same high-speed signal line pair on the PCB board.
[0099] S230. Group the high-speed signal lines on the same layer according to different line widths.
[0100] S240. Determine whether the number of line width groups of high-speed signal lines in the same layer is less than the first preset value; if yes, proceed to step S260; if no, proceed to step S250.
[0101] S250, Error message indicating incorrect line width.
[0102] S260. Calculate the length difference between the first and second high-speed signal lines that are located on the same layer, belong to the same high-speed signal line pair, have the same line width, and are continuously wired.
[0103] S270. Determine whether the absolute value of the length difference is greater than the second preset value; if yes, proceed to step S280; if no, return to step S220.
[0104] S280: Obtain the high-speed signal name, wiring layer, line width, and absolute value of the length difference between the two high-speed signal lines of the shorter high-speed signal line in the high-speed signal line pair, and highlight the shorter high-speed signal line with a preset color.
[0105] S290. Determine whether all elements in the set to be checked have been checked; if yes, proceed to step S2100; if no, return to step S220.
[0106] S2100: A pop-up window displays the high-speed signal name, wiring layer, line width, and absolute value of the length difference between two high-speed signal lines, highlighted in a preset color.
[0107] Figure 3 This is an interface diagram provided by an embodiment of the present invention for displaying the high-speed signal name, wiring layer, line width, and absolute value of the length difference between two high-speed signal lines highlighted in a preset color. (Refer to...) Figure 3 Once all elements in the set to be checked have been checked, a pop-up window will display the high-speed signal name (Net name), the routing layer (Layer), the line width (Width), and the absolute value of the length difference between the two high-speed signal lines, all highlighted in a preset color.
[0108] This invention also provides an inspection device for high-speed signal lines in a PCB board, comprising:
[0109] The inspection set forming module is used to form an inspection set by taking each pair of high-speed signal lines to be inspected as an element; wherein each pair of high-speed signal lines includes a first high-speed signal line and a second high-speed signal line.
[0110] The routing layer determination module is used to determine the routing layer occupied by the first and second high-speed signal lines of the same high-speed signal line pair in the set to be inspected.
[0111] The line width checking module is used to group high-speed signal lines in the same layer according to different line widths, and check whether the line width of the high-speed signal lines in the layer meets the preset line width conditions based on the number of line width groups.
[0112] The line length checking module is used to calculate the length difference between the first and second high-speed signal lines with the same line width and continuous wiring in the same high-speed signal line pair on the same layer, and to check whether the high-speed signal line pair corresponding to the element meets the preset length condition based on the length difference.
[0113] The inspection device for high-speed signal lines on a PCB board provided in this embodiment of the invention can execute the inspection method for high-speed signal lines on a PCB board provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. The inspection device for high-speed signal lines on a PCB board can be designed and obtained based on Allegro software.
[0114] This invention also provides an electronic device, which includes:
[0115] At least one processor; and
[0116] A memory that is communicatively connected to at least one processor; wherein,
[0117] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the inspection method for high-speed signal lines in a PCB board as described in any embodiment of the present invention.
[0118] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers.
[0119] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0120] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0121] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above.
[0122] The computer program includes skill programs written in Allegro software. Allegro (a free software library) is a PCB design and routing tool that provides a relatively complete solution for the design and routing of complex, high-speed, high-density, and multi-layered PCBs. The skill language is a high-level programming language built into Allegro software, based on C and LISP. Allegro provides a rich set of interactive functions for the skill language. By studying the skill language and then writing tools, users can develop their own solutions, enabling inspection devices designed based on Allegro software to quickly check for differences in line length across all layers and between different segments (referring to the same line width) of high-speed signal lines on the entire board or in portions. This reduces manual inspection time, improves the accuracy of signal line inspection, and prevents missed signal lines.
[0123] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A method for inspecting high-speed signal lines in a PCB board, characterized in that, include: Each high-speed signal line pair to be inspected in the PCB board is taken as an element to form an inspection set; wherein, each high-speed signal line pair includes a first high-speed signal line and a second high-speed signal line; Determine the wiring layer occupied by the first high-speed signal line and the second high-speed signal line of the same high-speed signal line pair in the set to be inspected; High-speed signal lines on the same layer are grouped according to different line widths. Based on the number of groups, the line widths of the high-speed signal lines in the corresponding layer are checked to see if they meet the preset line width conditions. High-speed signal lines with the same line width or within the same line width range are grouped together. Calculate the length difference between the first and second high-speed signal lines with the same line width and continuous wiring in the same high-speed signal line pair on the same layer. Based on the length difference, check whether the high-speed signal line pair meets the preset length condition; The continuous wiring refers to forming uninterrupted metal traces; if two segments of the same high-speed signal line with the same line width in a certain layer are separated by segments with different line widths, then the two segments belong to different sub-segments, and the length difference between each sub-segment and the corresponding sub-segment in another high-speed signal line is calculated; if the length difference of at least one sub-segment does not meet the preset length condition, then it is determined that the length of the high-speed signal line in that layer does not meet the preset length condition. The method for inspecting high-speed signal lines in a PCB board is characterized by checking whether the line width of the high-speed signal lines in the corresponding layer meets the preset line width condition based on the number of line width groups of the high-speed signal lines in the same layer, including: Determine whether the number of line width groups for high-speed signal lines in the same layer is greater than a first preset value; If so, it is determined that the line width of the high-speed signal line in that layer does not meet the preset line width condition, and a line width error message is issued; If not, then it is determined that the line width of the high-speed signal line in this layer meets the preset line width condition.
2. The method for inspecting high-speed signal lines in a PCB board according to claim 1, characterized in that, The routing layer occupied by the first high-speed signal line in the same high-speed signal line pair on the PCB board is the same as that occupied by the second high-speed signal line on the PCB board; and the first high-speed signal line and the second high-speed signal line in the same element are synchronously switched layers. And / or, in the same high-speed signal line pair, the line width of the first high-speed signal line located in the same wiring layer belongs to at least one line width group, and the line width of the second high-speed signal line located in the same wiring layer belongs to at least one line width group; And / or, in the same high-speed signal line pair, the line width group to which the line width of the first high-speed signal line located in the same wiring layer belongs is the same as the line width group to which the line width of the second high-speed signal line belongs.
3. The method for inspecting high-speed signal lines in a PCB board according to claim 1, characterized in that, After determining the wiring layer occupied by the first high-speed signal line and the second high-speed signal line of the same high-speed signal line pair in the set to be inspected, the method further includes: Determine whether the routing layer occupied by the first high-speed signal line in the same high-speed signal line pair on the PCB board is the same as that occupied by the second high-speed signal line on the PCB board; if they are different, provide routing layer difference information.
4. The method for inspecting high-speed signal lines in a PCB board according to claim 1, characterized in that, Based on the length difference, check whether the high-speed signal line pair meets the preset length condition, including: Determine whether the absolute value of the length difference is greater than a second preset value; If so, then it is determined that the length of the high-speed signal line pair in this layer does not meet the preset length condition; If not, then the length of the high-speed signal line pair in this layer is determined to meet the preset length condition.
5. The method for inspecting high-speed signal lines in a PCB board according to claim 4, characterized in that, After determining that the length of the high-speed signal line pair in this layer does not meet the preset length condition, the method further includes: Obtain the high-speed signal name, routing layer, line width, and absolute value of the length difference between the two high-speed signal lines of the shorter high-speed signal line in the high-speed signal line pair, and highlight the shorter high-speed signal line with a preset color.
6. The method for inspecting high-speed signal lines in a PCB board according to claim 5, characterized in that, Also includes: Determine whether all elements in the set to be checked have been checked; If so, a pop-up window will display the high-speed signal name, wiring layer, line width, and absolute value of the length difference between the two high-speed signal lines, which are highlighted in the preset color. If not, continue checking the elements in the set to be checked.
7. A device for inspecting high-speed signal lines in a PCB board, characterized in that, include: The inspection set forming module is used to form an inspection set by taking each pair of high-speed signal lines to be inspected in the PCB board as an element; wherein each pair of high-speed signal lines includes a first high-speed signal line and a second high-speed signal line. The routing layer determination module is used to determine the routing layer occupied by the first high-speed signal line and the second high-speed signal line of the same high-speed signal line pair. The line width checking module is used to group signal lines on the same layer according to different line widths, and check whether the line width of the high-speed signal lines in the corresponding layer meets the preset line width conditions based on the number of line width groups. The line length checking module is used to calculate the length difference between the first high-speed signal line and the second high-speed signal line with the same line width and continuous wiring in the same high-speed signal line pair on the same layer, and to check whether the high-speed signal line pair meets the preset length condition based on the length difference. The line width inspection module is specifically used for: Determine whether the number of line width groups for high-speed signal lines in the same layer is greater than a first preset value; If so, it is determined that the line width of the high-speed signal line in that layer does not meet the preset line width condition, and a line width error message is issued; If not, then determine that the line width of the high-speed signal line in this layer meets the preset line width condition; The line length checking module is specifically used for: The continuous wiring refers to forming an uninterrupted metallic trace; if two segments of the same high-speed signal line with the same line width are separated by segments with different line widths in a certain layer, then the two segments belong to different sub-segments, and the length difference between each sub-segment and the corresponding sub-segment in another high-speed signal line is calculated respectively; if the length difference of at least one sub-segment does not meet the preset length condition, then it is determined that the length of the high-speed signal line in that layer does not meet the preset length condition.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the inspection method for high-speed signal lines in the PCB board according to any one of claims 1-6.
9. The electronic device according to claim 8, characterized in that, The computer program includes skill programs written in free software library software.
Citation Information
Patent Citations
Automatic checking method and system based on differential pair segmentation equal length on PCB (Printed Circuit Board)
CN107194058A
Circuit board routing detection method and device and electronic equipment
CN115310404A
Method and system for automatically checking traces in segments
US20070118823A1
