[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117112333A - Differential line detection method, device, equipment and storage medium - Google Patents

Differential line detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN117112333A
CN117112333A CN202311224077.2A CN202311224077A CN117112333A CN 117112333 A CN117112333 A CN 117112333A CN 202311224077 A CN202311224077 A CN 202311224077A CN 117112333 A CN117112333 A CN 117112333A
Authority
CN
China
Prior art keywords
network
sub
differential
differential line
pair
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311224077.2A
Other languages
Chinese (zh)
Inventor
郑重
刘士豪
李鑫
郭建君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Silicon Based Continental Chengdu Technology Co ltd
Original Assignee
Silicon Based Continental Chengdu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Silicon Based Continental Chengdu Technology Co ltd filed Critical Silicon Based Continental Chengdu Technology Co ltd
Priority to CN202311224077.2A priority Critical patent/CN117112333A/en
Publication of CN117112333A publication Critical patent/CN117112333A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a differential line detection method, a differential line detection device, differential line detection equipment and a storage medium. The method comprises the following steps: when a differential line route detection instruction is received, acquiring a non-empty network differential pair set in a target inspection layer; performing a first operation on each non-empty network differential pair in the set of non-empty network differential pairs in turn, wherein the first operation includes: judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not; if not, displaying the names of the non-empty network differential pairs; if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network; if the abnormal differential line route pairs exist, the abnormal differential line route pairs are highlighted, and through the technical scheme of the invention, each differential line route pair of each layer can be automatically detected, so that the detection efficiency and the coverage rate are improved.

Description

Differential line detection method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of printed circuit boards, in particular to a differential circuit line detection method, a differential circuit line detection device, differential circuit line detection equipment and a storage medium.
Background
With the development of computer and big data technologies, the design of a hardware circuit is more challenging, wherein the design of a PCB wiring is an important ring in the design of the hardware circuit. In order to ensure the signal transmission quality, each differential line pair on the PCB should keep the wiring length of each differential line route consistent as much as possible.
In the prior art, whether each pair of differential circuit lines is equal in length or not can only be detected through a software function of the allegro, but the routing of each section of each differential circuit line pair in each layer cannot be accurate, the routing is equal in length, the routing can only be ensured through manual detection, the efficiency is low, and the routing is easy to miss.
Disclosure of Invention
The embodiment of the invention provides a differential circuit line detection method, device, equipment and storage medium, which solve the problems of low detection efficiency and high omission factor caused by the fact that whether the length of each section of wiring in each differential circuit line pair in each layer in a PCB is equal or not is equal can not be accurately detected in the prior art by adopting a manual detection mode.
According to an aspect of the present invention, there is provided a differential line detection method including:
when a differential line route detection instruction is received, acquiring a non-empty network differential pair set in a target inspection layer;
Performing a first operation on each non-empty network differential pair in the set of non-empty network differential pairs in turn, wherein the first operation includes:
judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not;
if not, displaying the names of the non-empty network differential pairs;
if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network;
if an abnormal differential line pair exists, the abnormal differential line pair is highlighted.
According to another aspect of the present invention, there is provided a differential line detection apparatus including:
the acquisition module is used for acquiring a non-empty network differential pair set in the target inspection layer when receiving the differential line route detection instruction;
a detection module, configured to sequentially perform a first operation on each non-null network differential pair in the set of non-null network differential pairs, where the first operation includes:
judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not;
if not, displaying the names of the non-empty network differential pairs;
if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network;
If an abnormal differential line pair exists, the abnormal differential line pair is highlighted.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the differential line detection method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the differential line detection method according to any one of the embodiments of the present invention when executed.
When a differential line route detection instruction is received, acquiring a non-empty network differential pair set in a target inspection layer; performing a first operation on each non-empty network differential pair in the set of non-empty network differential pairs in turn, wherein the first operation includes: judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not; if not, displaying the names of the non-empty network differential pairs; if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network; if an abnormal differential line route pair exists, the abnormal differential line route pair is highlighted, so that the problems that in the prior art, due to the fact that whether the length of each section of wiring in each differential line pair in each layer in the PCB is equal or not and whether the length of each section of wiring in each differential line pair is equal are maintained or not can not be accurately detected, the detection efficiency is low and the omission ratio is high due to the fact that a manual detection mode is adopted are solved, automatic detection can be carried out on each differential line route pair in each layer, and the detection efficiency and the coverage rate are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a differential line detection method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a differential line detection interface according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram showing the result of a differential pair of a null network according to the first embodiment of the present invention;
FIG. 4 is a schematic diagram showing the result of a differential pair of a non-empty network that does not satisfy a set rule according to the first embodiment of the present invention;
fig. 5 is a flowchart for determining whether the network name of the non-empty network differential pair satisfies a set rule according to the first embodiment of the present invention;
FIG. 6 is a schematic diagram showing the result of a first type of non-empty network differential pair according to the first embodiment of the present invention;
FIG. 7 is a flow chart of detecting whether an abnormal differential line pair exists in a differential pair of a non-empty network in accordance with one embodiment of the present invention;
fig. 8 is a schematic structural diagram of a differential line detection device in a second embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device in a third embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
Example 1
Fig. 1 is a flowchart of a differential line detection method in a first embodiment of the present invention, where the present embodiment is applicable to the detection of each segment of differential line in each differential line pair in each layer of a PCB board, the method may be performed by a differential line detection device in the embodiment of the present invention, and the device may be implemented in software and/or hardware, as shown in fig. 1, and the method specifically includes the following steps:
s110, when a differential line route detection instruction is received, acquiring a non-empty network differential pair set in a target inspection layer.
The differential line detection instruction is an instruction generated when the touch operation of a user on a detection control in the differential line detection interface is detected, wherein various modes for acquiring the differential line detection interface exist, for example, an initial interface of the allegro software is displayed in response to a preset trigger operation; and responding to the triggering operation of the user on the differential line inspection control in the initial interface, displaying the differential line route detection interface, or responding to the input of a differential line detection command, such as a load input (check_diffpair_mismatch. Il) by the user on a console of the allegro software, and then, inputting exit to exit from the SKILL loading mode, and simultaneously, inputting the check_diffpair_mismatch by the console, running the SKILL, and displaying the differential line route detection interface. For example, fig. 2 is a schematic diagram of a differential line detection interface in the first embodiment of the present invention, where, as shown in fig. 2, the differential line detection interface includes a selection Check layer control (Select checking layer), a completion control (OK), a detection control (Check), and a cancel highlighting control (unSelect), where, in response to a triggering operation of a user on a drop-down list corresponding to the selection Check layer control in the differential line detection interface, the Check layer list is displayed, and in response to a touch operation of the user on identification information of a target Check layer in the Check layer list, the target Check layer is determined; responding to the triggering operation of a user on a detection control in the differential line route detection interface, triggering a differential line detection instruction, wherein the detection instruction can carry the identification information of a target inspection layer; responding to the trigger operation of the user for completing the control in the differential line route detection interface, and closing the differential line route detection interface; and responding to the triggering operation of canceling the highlight control in the differential line route detection interface by the user, cleaning the checked object on the PCB, canceling the highlight display effect and avoiding the error selection of the object. The differential line detection interface may further include a first threshold filling frame (max diffpair mismatch), where the first threshold is a maximum allowable length difference of each differential line pair in the same non-empty network differential pair in the same target inspection layer, a user may input the first threshold according to an actual requirement, and the differential line detection interface may further include a second threshold filling frame (manual check margin), where the second threshold is a length difference threshold of a differential line pair in the first type non-empty network differential pair, and the first type non-empty network differential pair is a non-empty network differential pair to be detected manually, and the user may input the second threshold according to an actual requirement.
The differential pair set of the non-empty network is that the network of each differential pair in the target inspection layer is the differential pair set of the non-empty network.
Specifically, when the differential line route detection instruction is received, the method for acquiring the non-empty network differential pair set in the target inspection layer may be: when a user clicks a detection control in the differential line route detection interface, a target detection layer carried in the differential line detection instruction is obtained, each non-empty network differential pair in the target detection layer is obtained, and a non-empty network differential pair set is generated.
Optionally, when receiving the differential line route detection instruction, acquiring a non-empty network differential pair set in the target inspection layer includes:
when a differential line route detection instruction is received, acquiring a differential pair set in a target inspection layer;
determining a network object corresponding to each differential pair based on the attribute information of each differential pair in the differential pair set;
and generating a non-empty network differential pair set according to the differential pair of which the network object is a non-empty network in the differential pair set.
Wherein the set of differential pairs includes all differential pairs in the target inspection layer. The attribute information of each differential pair may include dBid (database identifier ) of each differential pair, may further include a name of each differential pair, and may further include a constituent object (groupmemmers) of each differential pair. The network objects corresponding to each differential pair are a first network object (Xnet 1) and a second network object (Xnet 2).
Specifically, when the differential line route detection instruction is received, the manner of obtaining the differential pair set in the target inspection layer may be: when the differential line route detection instruction is received, each differential pair in the target inspection layer can be obtained, and a differential pair set is generated.
Specifically, the manner of determining the network object corresponding to each differential pair based on the attribute information of each differential pair in the differential pair set may be: and acquiring a first network object and a second network object corresponding to each differential pair based on the groupMembers attribute of each differential pair in the differential pair set.
Specifically, the method for generating the differential pair set of the non-empty network according to the differential pair with the network object being the non-empty network in the differential pair set may be: calling a first function, for example, an axlIsDummyNet () function to detect whether the first network object and the second network object are both empty networks, if the first network object and the second network object are both empty networks, determining the differential pair as an empty network differential pair, and printing out the names of the empty network differential pair and displaying the names on a software print result interface, if the first network object and the second network object are both non-empty networks, generating a non-empty network differential pair set according to the differential pair of the non-empty networks, if the differential pair set in the target inspection layer does not have an empty network differential pair, displaying the non-empty network differential pair by the software print result interface, for example, fig. 3 is a schematic diagram of displaying the result of an empty network differential pair in the first embodiment of the present invention, as shown in fig. 3, "Dummy net diffpair name" indicates the names of an empty network differential pair, and if the differential pair set in the target inspection layer does not have an empty network differential pair, displaying "No Dummy net diffpair! ".
The method comprises the steps of obtaining a differential pair set in a target inspection layer, determining a network object corresponding to each differential pair based on attribute information of each differential pair in the differential pair set, generating a non-empty network differential pair set according to the differential pair of which the network object is a non-empty network in the differential pair set, automatically detecting the empty network differential pair in the target inspection layer, reminding a user to perform manual detection by displaying the name of the empty network differential pair, or displaying that the empty network differential pair does not exist, and determining that the differential pair in the target inspection layer is the non-empty network differential.
S120, performing a first operation on each non-empty network differential pair in the non-empty network differential pair set in sequence, wherein the first operation comprises: judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not; if not, displaying the names of the non-empty network differential pairs; if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network; if an abnormal differential line pair exists, the abnormal differential line pair is highlighted.
The setting rule is that the network name of the network object in each non-empty differential pair is different by only one character, and the different characters are P and N.
The abnormal differential line pair is a differential line pair in which the difference of the lengths of two sections of differential line pairs is larger than a preset first threshold, wherein the first threshold is the maximum allowable length difference of each differential line pair in the same non-empty network differential pair in the same target inspection layer.
Specifically, a first operation is sequentially performed on each non-empty network differential pair in the non-empty network differential pair set, where the first operation includes: judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not; if not, displaying the names of the non-empty network differential pairs; if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network; if an abnormal differential line pair exists, the abnormal differential line pair may be highlighted by: performing a first operation on the set of non-empty network differential pairs in a loop to determine whether the network name of the network object of each non-empty network differential pair in the set of non-empty network differential pairs meets the set rule, that is, whether the network name of the network object has only one character different and the different characters meet the set rule, if the network name of the network object does not meet the set rule, it indicates that the network name of the network object of the non-empty network differential pair is wrong in naming, or the network objects of the non-empty network differential pair are not matched, that is, the network objects of the non-empty network differential pair are not identical non-empty network differential pairs, then the names of the non-empty network differential pair which do not meet the set rule are displayed on the software print result interface, for example, fig. 4 is a non-empty network differential pair result display schematic diagram of one non-empty network differential pair which does not meet the set rule in the first embodiment of the invention, as shown in fig. 4, "Diffpair net name mismatch" indicates the non-empty network differential pair name which does not meet the set rule, wherein, "rolling-! The names of the three differential pairs below represent the names of three non-empty network differential pairs which do not meet the set rule, and remind a user to perform manual detection; if the set rule is met, acquiring all differential line pairs of the differential pair of the non-empty network in a target inspection layer, and judging whether an abnormal differential line pair exists in the differential pair of the non-empty network according to the preset maximum allowable length difference of each differential line pair of the differential pair of the same non-empty network in the same target inspection layer; if an abnormal differential line pair exists, the abnormal differential line pair is highlighted.
Acquiring a non-empty network differential pair set in a target inspection layer when a differential line route detection instruction is received, and sequentially executing a first operation on each non-empty network differential pair in the non-empty network differential pair set, wherein the first operation comprises: judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not; if not, displaying the names of the non-empty network differential pairs; if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network; if the abnormal differential line pair exists, the abnormal differential line pair is highlighted, so that the non-empty network differential pair which does not meet the set rule in the target inspection layer can be automatically detected, the user is reminded to carry out manual detection by displaying the name of the non-empty network differential pair which does not meet the set rule, the abnormal differential line pair can be automatically detected, and the user is reminded to correct the highlighting of the abnormal differential line pair, so that the detection efficiency and coverage rate are improved.
Optionally, determining whether the network name of the network object in the non-empty network differential pair meets the set rule includes:
acquiring a first sub-network list and a second sub-network list corresponding to each non-empty network differential pair, wherein the first sub-network list comprises: the network name of the sub-network of the first network object, the second sub-network list comprising: network name of the sub-network of the second network object;
If the length of the first sub-network list and the length of the second sub-network list are both the first numerical value, judging whether the network name of the non-empty network differential pair meets the set rule according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list;
if the lengths of the first sub-network list and the second sub-network list are different from the first numerical value, judging whether the network name of the non-empty network differential pair meets the set rule according to the network name of each first sub-network in the first sub-network list and the network name of each second sub-network in the second sub-network list.
The first sub-network list is a sub-network list (net1_list) corresponding to the first network object, the second sub-network list is a sub-network list (net2_list) corresponding to the second network object, the first sub-network list includes a network name of a sub-network of the first network object, the second sub-network list includes a network name of a sub-network of the second network object, and it should be noted that the first sub-network list may also include dbids of all sub-networks of the first network object, and the second sub-network list may also include dbids of all sub-networks of the second network object.
The first value is 0, that is, when the first sub-network list length is the first value and the second sub-network list length is the first value, both the first sub-network list and the second sub-network list are empty. The first sub-network may be any sub-network in the first sub-network list, and the second sub-network may be any sub-network in the second sub-network list. It should be noted that the type of the network name may be a String (String). The number of first subnetworks in the first subnetwork list should be the same as the number of second subnetworks in the second subnetwork list.
Specifically, the manner of obtaining the first sub-network list and the second sub-network list corresponding to each non-empty network differential pair may be: the method comprises the steps of obtaining a first sub-network list corresponding to a first network object through a component object (groupmemmers) in attribute information of the first network object (Xnet 1), and obtaining a second sub-network list corresponding to a second network object through a component object (groupmemmers) in attribute information of the second network object (Xnet 2).
Specifically, if the first sub-network list length and the second sub-network list length are both the first values, the method for judging whether the network name of the non-empty network differential pair meets the set rule according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list may be as follows: if the length of the first sub-network list is the first value and the length of the second sub-network list is the first value, the network name of the first network object can be obtained according to the name (name) attribute in the attribute information of the first network object, the network name of the second network object can be obtained according to the name (name) attribute in the attribute information of the second network object, whether the lengths of the network names are the same or not is judged directly according to the network name of the first network object and the network name of the second network object, and if the lengths of the network names are the same, whether the two network names meet the set rule is continuously judged.
Specifically, if the lengths of the first sub-network list and the second sub-network list are different from the first numerical value, the method for judging whether the network name of the non-empty network differential pair meets the set rule according to the network name of each first sub-network in the first sub-network list and the network name of each second sub-network in the second sub-network list may be as follows: if the length of the first sub-network list is not the first value and the length of the second sub-network list is not the first value, the network name of the first sub-network can be obtained according to the name (name) attribute in the attribute information of each first sub-network in the first sub-network list, the network name of the second sub-network can be obtained according to the name (name) attribute in the attribute information of each second sub-network in the second sub-network list, the first sub-network and the second sub-network with the same character length can be obtained according to the network name of each first sub-network in the first sub-network list and the network name of each second sub-network in the second sub-network list, and whether the two network names meet the set rule or not can be judged according to the network name of the first sub-network and the network name of the second sub-network with the same character length.
By acquiring the first sub-network list and the second sub-network list corresponding to each non-empty network differential pair and determining different modes for judging whether the network names of the non-empty network differential pairs meet the set rules according to the lengths of the first sub-network list and the second sub-network list, the accuracy of judging whether the network names of the non-empty network differential pairs meet the set rules can be improved.
Optionally, determining whether the network name of the non-empty network differential pair meets the set rule according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list includes:
determining the network name of the first sub-network and the network name of the second sub-network according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list;
if the network name of the first sub-network is equal to the network name character length of the second sub-network, acquiring a first target value corresponding to the network name of the first sub-network and a second target value corresponding to the network name of the second sub-network;
if the difference value between the first target value and the second target value is the second value, determining that the first sub-network and the second sub-network are sub-network pairs, and determining that the network names of the non-empty network differential pairs meet the set rule;
If the network name of the first sub-network and the network name character length of the second sub-network are different, or the network name of the first sub-network and the network name character length of the second sub-network are the same, and the difference value between the first target value and the second target value is different from the second value, determining that the network name of the non-empty network differential pair does not meet the set rule.
The first target value is an ASCII accumulated value corresponding to the network name of the first sub-network, and the second target value is an ASCII accumulated value corresponding to the network name of the second sub-network. The second value is 2, namely, the network names of the non-empty network differential pairs meeting the set rule are different in one character, one is P, the other is N, and the difference value is 2 when the network names are converted into ASCII accumulated values.
Specifically, the manner of determining the network name of the first sub-network and the network name of the second sub-network according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list may be: when the first sub-network list length and the second sub-network list length are both the first value, determining the network name of the first network object as the network name of the first sub-network, and determining the network name of the second network object as the network name of the second sub-network.
Specifically, if the network name of the first sub-network and the network name of the second sub-network have equal character lengths, the manner of obtaining the first target value corresponding to the network name of the first sub-network and the second target value corresponding to the network name of the second sub-network may be: judging whether the network names of the first sub-network and the second sub-network are equal in character length, if the network names of the first sub-network and the second sub-network are equal in character length, converting the network names of the first sub-network into ASCII values according to the characters and accumulating the ASCII values to obtain a first target value corresponding to the network names of the first sub-network, converting the network names of the second sub-network into ASCII values according to the characters and accumulating the ASCII values to obtain a second target value corresponding to the network names of the second sub-network.
Specifically, if the difference between the first target value and the second target value is the second value, determining that the first sub-network and the second sub-network are the sub-network pair, and determining that the network name of the non-empty network differential pair meets the set rule may be: if the difference between the first target value and the second target value is the second value, the network names of the first sub-network and the second sub-network are only different in one character, one is P, the other is N, the current first sub-network and the second sub-network are determined to be a sub-network pair, and the network names of the non-empty network differential pair are determined to meet the set rule.
Specifically, if the network name of the first sub-network and the network name of the second sub-network have different character lengths, or the network name of the first sub-network and the network name of the second sub-network have the same character length and the difference between the first target value and the second target value is different from the second value, the manner of determining that the network name of the non-empty network differential pair does not satisfy the set rule may be: if the network name of the first sub-network is different from the network name of the second sub-network, the names of the first sub-network and the second sub-network are not matched, and if the network name of the first sub-network is the same as the network name of the second sub-network and the difference value between the first target value and the second target value is different from the second value, the name of the first sub-network is wrong with the name of the second sub-network, and the network name of the non-empty network differential pair is determined to not meet the set rule.
By determining the network name of the first sub-network and the network name of the second sub-network according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list, and by judging whether the network names of the first sub-network and the second sub-network are equal in length and whether the difference between the first target value and the second target value is a second value, it is possible to automatically detect whether the network names of the non-empty network differential pair satisfy the setting rule when the lengths of the first sub-network list and the second sub-network list are both the first value.
Optionally, determining whether the network name of the non-empty network differential pair meets the set rule according to the network name of each first sub-network in the first sub-network list and the network name of each second sub-network in the second sub-network list includes:
acquiring a network name of each first sub-network in the first sub-network list and a network name of each second sub-network in the second sub-network list;
generating a sub-network pair according to a second sub-network and a first sub-network, wherein the character length of the network name of the second sub-network is the same as that of the first sub-network, and the difference value of target values corresponding to the network names is a second value;
acquiring the number of sub-network pairs in a non-empty network differential pair;
if the number of the sub-network pairs is equal to the first sub-network number in the first sub-network list or the second sub-network number in the second sub-network list, determining that the network names of the non-empty network differential pairs meet the set rule;
if the number of the sub-network pairs is different from the number of the first sub-networks in the first sub-network list and the number of the second sub-networks in the second sub-network list, determining that the network names of the non-empty network differential pairs do not meet the set rule.
The target value corresponding to the network name is a first target value corresponding to the first sub-network and a second target value corresponding to the second sub-network, wherein each sub-network in the first sub-network list can be the first sub-network, and each sub-network in the second sub-network list can be the second sub-network. The number of sub-network pairs may be calculated by a counter, e.g. the counter (netnum) is incremented by 1 for each sub-network pair obtained.
Specifically, the manner of acquiring the network name of each first sub-network in the first sub-network list and the network name of each second sub-network in the second sub-network list may be: and acquiring the network name of each first sub-network according to the name attribute of each first sub-network in the first sub-network list, and acquiring the network name of each second sub-network according to the name attribute of each second sub-network in the second sub-network list.
Specifically, the generating a sub-network pair according to the second sub-network and the first sub-network in which the character length of the network name of the second sub-network is the same as that of the first sub-network and the difference value of the target values corresponding to the network names is the second numerical value may be: and executing outer loop operation on each first sub-network in the first sub-network list in turn, wherein the outer loop operation comprises: acquiring a network name of a first sub-network; and sequentially executing inner loop operation on each second sub-network in the second sub-network list, wherein the inner loop operation comprises the following steps: and acquiring the network name of the second sub-network, if the network name of the first sub-network is equal to the network name character length of the second sub-network, performing ASCII value conversion on the network name of the first sub-network and the network name of the second sub-network, accumulating the ASCII value to obtain a first target value corresponding to the first sub-network and a second target value corresponding to the second sub-network, and if the difference value of the first target value and the second target value is a second value, determining the first sub-network and the second sub-network as a pair of sub-networks.
Specifically, the method for obtaining the number of the sub-network pairs in the non-empty network differential pair may be: counting the number of the sub-network pairs in the non-empty network differential pair through a counter, and adding 1 to the counter every time a pair of sub-network pairs is obtained.
Specifically, if the number of the sub-network pairs is equal to the number of the first sub-networks in the first sub-network list or the number of the second sub-networks in the second sub-network list, the manner of determining that the network names of the non-empty network differential pairs meet the set rule may be: if the number of the sub-network pairs is equal to the number of the first sub-networks in the first sub-network list or the number of the second sub-networks in the second sub-network list, the first sub-networks in the first sub-network list are matched with the second sub-networks in the second sub-network list, and the matching is successful, and then the network names of the non-empty network differential pairs are determined to meet the set rule.
Specifically, if the number of the sub-network pairs is different from the number of the first sub-networks in the first sub-network list and the number of the second sub-networks in the second sub-network list, the manner of determining that the network names of the non-empty network differential pairs do not meet the set rule may be: if the number of the sub-network pairs is different from the number of the first sub-networks in the first sub-network list and the number of the second sub-networks in the second sub-network list, which means that the number of the sub-networks is too large or too small, and the matching between the first sub-network in the first sub-network list and the second sub-network in the second sub-network list fails, determining that the network names of the non-empty network differential pairs do not meet the set rule.
In a specific example, fig. 5 is a flowchart for judging whether the network name of the differential pair of the non-empty network meets the set rule, as shown in fig. 5, using the groupmemmers attribute of Xnet1 in the differential pair of the non-empty network to obtain the net1_list of Xnet1 and the net2_list of Xnet2 respectively, if the lengths of the net1_list and the net2_list are both 0, determining Xnet1 as net1, determining Xnet2 as net2, obtaining the network name of net1 and the network name of net2 through the name attribute, judging whether the network name of net1 and the network name of net2 are equal, if equal, converting the network name of net1 into an ASCII value and accumulating to obtain a first target value, converting the network name of net2 into an ASCII value and accumulating to obtain a second target value, judging whether the difference between the first target value and the second target value is 2, if the lengths of net1 and the net2 are both 0, determining Xnet1 as net2, determining that the network name of net1 and the network name of net2 are equal, and if the network name of net1 and the network name of net2 are not equal, and determining that the network name of net1 and the network name of net2 are equal, and the network name of net2 are not equal, and the network name of the differential pair is not equal, and the network name of net1 is not equal; if neither the net1_list nor the net2_list are 0 in length, then the outer loop is performed: acquiring a network name of one net1 in the net1_list, and executing inner loop: obtaining the network name of one net2 in the net2_list, judging whether the network name of the net1 is equal to the network name of the net2 in length, if so, converting the network name of the net1 into an ASCII value and accumulating to obtain a first target value, converting the network name of the net2 into the ASCII value and accumulating to obtain a second target value, judging whether the difference between the first target value and the second target value is 2, if so, determining the net1 and the net2 as a pair of sub-network pairs, if the network name of the net1 is unequal in length to the network name of the net2, or the network name of the net1 is equal to the network name of the net2 in length and the difference between the first target value and the second target value is not 2, obtaining the network name of the next net2 in the net2_list, ending the internal circulation until the network name of the next net1 in the net2_list is obtained, if so, determining the difference between the net1 and the net1 in the net_list is not equal to the net2, if the difference between the net1 and the net2 in length is not equal to the net2, and if not equal to the difference between the net1 is not equal to the net2, and if the difference between the net1 and the net1 is not equal to the net1 is set.
Optionally, if yes, determining whether an abnormal differential line path pair exists in the non-empty network differential pair includes:
generating a sub-network pair set of non-empty network differential pairs according to the sub-network pairs, wherein the sub-network pair set comprises at least one sub-network pair;
performing a second operation on each of the set of branch pairs in each of the set of sub-network pairs in turn, wherein the second operation comprises:
obtaining the sub-object type of the branch pair;
if the sub-object type is a route type, a first differential line route list and a second differential line route list corresponding to the branch pair are obtained;
if the first differential line route list only comprises a first differential line route and the second differential line route list only comprises a second differential line route, a first threshold value is obtained, wherein the first threshold value is the maximum allowable length difference of each differential line route pair in the same non-empty network differential pair in the same target inspection layer, and if the absolute value of the difference value between the length of the first differential line route and the length of the second differential line route is greater than the first threshold value, the differential line pair formed by the first differential line route and the second differential line is determined to be an abnormal differential line pair;
If the first differential line route list comprises at least two first differential line routes and the second differential line route list comprises at least two second differential line routes, judging whether an abnormal differential line route pair exists in the non-empty network differential pair according to the length of each first differential line route in the first differential line route list and the length of each second differential line route in the second differential line route list.
The sub-network pair set is generated by sub-network pairs in the non-empty network differential pair, and if the first sub-network list length and the second sub-network list length are both the first numerical value and the network name of the non-empty network differential pair meets the set rule, the sub-network pair set should contain one sub-network pair; if the first sub-network list length and the second sub-network list length are different from the first value and the network names of the non-empty network differential pairs meet the set rule, at least one sub-network pair should be included in the sub-network pair set.
Wherein the set of branch pairs for each sub-network pair is a set of branch pairs (branches) for each sub-network pair. The first differential line path (path 1) is a differential line path in the first differential line path list, the second differential line path (path 2) is a differential line path in the second differential line path list, the first threshold is a maximum allowable length difference of each differential line path pair in the same non-empty network differential pair in the same target inspection layer, that is, the wires of two differential line paths of each differential line path pair in the same target inspection layer need to be kept equal as much as possible, and the first threshold is a maximum length difference of two differential line paths allowed in each differential line pair.
Specifically, the manner of generating the sub-network pair set in the non-empty network differential pair according to the sub-network pair may be: if the first sub-network list length and the second sub-network list length are both the first numerical value, generating a sub-network pair set of the non-empty network differential pair according to the only one sub-network pair of the non-empty network differential pair meeting the preset rule; if the first sub-network list length and the second sub-network list length are different from the first numerical value, generating a sub-network pair set of the non-empty network differential pair according to all the sub-network pairs of the non-empty network differential pair meeting the preset rule.
Specifically, the manner of sequentially performing the second operation on each branch pair in the branch pair set in each sub-network pair set may be: each of the set of sub-network pairs is acquired first, and then each of the set of branch pairs, e.g., each of branch pairs may be branch1 and branch2, is acquired using the branch pair attribute of each of the sub-networks in each of the sub-network pairs, and a second operation is performed on each of the branch pairs in turn.
Specifically, the second operation includes: the manner of obtaining the child object type of the branch pair may be: the child object is acquired using a child object (child) attribute of each branch pair, and the type of each child object is acquired using a type (obj type) attribute of the child object.
Specifically, if the sub-object type is a route type, the manner of obtaining the first differential line route list and the second differential line route list corresponding to the branch pair may be: if the sub-object type is a route type and the layer of the sub-object is a target inspection layer, the first differential line route list (path 1_list) and the second differential line route list (path 2_list) corresponding to the branch pair are obtained, specifically, the sub-object (marked as a differential line) of which the sub-object type is a route type in branch1 is stored in the first differential line route list, the sub-object (marked as a differential line) of which the sub-object type is a route type in branch2 is stored in the second differential line route list, and if the number of differential line routes in the first differential line route list and the second differential line route list is inconsistent, the differential pair of the non-air network needs to be detected manually.
Specifically, if the first differential line route list only includes one first differential line route and the second differential line route list only includes one second differential line route, a first threshold is obtained, and if the absolute value of the difference between the length of the first differential line route and the length of the second differential line route is greater than the first threshold, the differential line pair formed by the first differential line route and the second differential line is determined to be an abnormal differential line pair. For example, if the path1_list includes only one first differential line (path 1) and the path2_list includes only one second differential line (path 2), the first threshold (maxmismatch) may be obtained, the length of the path1 and the length of the path2 may be obtained using an axldBGetLength () function, the absolute value of the difference between the length of the path1 and the length of the path2 may be calculated, and if the absolute value is greater than maxmismatch, the differential line pair formed by the path1 and the path2 may be determined as an abnormal differential line pair. If the absolute value of the difference between the length of the first differential line route and the length of the second differential line route is smaller than or equal to a first threshold value, detecting the next branch pair.
Specifically, if the first differential line list includes at least two first differential line lines and the second differential line list includes at least two second differential line lines, the method for determining whether the differential pair of non-empty network differential pairs exists according to the length of each first differential line in the first differential line list and the length of each second differential line in the second differential line list may be as follows: if the first differential line route list comprises at least two first differential line routes and the second differential line route list comprises at least two second differential line routes, searching for a unique second differential line route paired with each first differential line according to the length of each first differential line route in the first differential line route list and the length of each second differential line route in the second differential line route list, judging whether the absolute value of the length difference value of the first differential line route and the second differential line route is larger than a first threshold value, highlighting the differential line route pair if the absolute value of the length difference value of the first differential line route and the second differential line route is larger than the first threshold value, and determining the differential pair of the non-empty network as a differential pair of the non-empty network to be manually detected and displaying the differential pair of the non-empty network at a software printing result interface if the first differential line pair is paired.
Optionally, determining whether an abnormal differential line pair exists in the non-empty network differential pair according to the length of each first differential line in the first differential line list and the length of each second differential line in the second differential line list includes:
acquiring a second threshold, wherein the second threshold is a length difference value threshold of a differential line pair in a differential pair of the first type non-empty network;
sequentially executing a first outer loop operation on each first differential line in the first differential line route list, wherein the first outer loop operation comprises:
acquiring the length of a first differential line route;
determining the length of the first differential line as a target minimum differential value;
and sequentially executing a first inner loop operation on each second differential line in the second differential line route list, wherein the first inner loop operation comprises the following steps: acquiring the length of a second differential line route; if the difference between the length of the first differential line route and the length of the second differential line route is smaller than the target minimum difference, updating the difference between the length of the first differential line route and the length of the second differential line route to be the target minimum difference, and determining the second differential line route to be the target second differential line route;
Acquiring a first number of differential line length differences in a first differential line route and a second differential line route list, wherein the difference is smaller than a second threshold value;
if the first number is greater than or equal to the preset number, determining the non-empty network differential pair as a first type non-empty network differential pair, and displaying the name of the first type non-empty network differential pair;
if the first number is smaller than the preset number and the difference value between the length of the first differential line route and the length of the target second differential line route is larger than a first threshold value, determining the differential line pair generated by the first differential line route and the target second differential line route as an abnormal differential line pair, and removing the target second differential line route from the second differential line route list.
The second threshold is a length difference threshold of a differential line pair in a first type non-empty network differential pair, specifically, if the difference between the length of the first differential line pair and the length of the second differential line pair is smaller than the second threshold, it is determined that the first differential line pair and the second differential line pair can form a differential line pair, if more than one second differential line pair exists in the same target inspection layer when the first differential line pair is paired with the same first differential line pair, a first number that the difference between the lengths of the differential line pair in the first differential line pair and the second differential line pair list is smaller than the second threshold is obtained, and if the first number is larger than or equal to a preset number, the non-empty network differential pair is determined to be the first type non-empty network differential pair. The first type of non-empty network differential pair is a non-empty network differential pair needing manual detection, and the second threshold value can be recorded as a margingvalue.
And in the internal circulation process, if the difference between the length of the first differential line route and the length of the second differential line route is smaller than the target minimum difference, updating the difference between the length of the first differential line route and the length of the second differential line route to the target minimum difference. The target second differential line route is a differential line route matched with the first differential line route in pairs. The first number is a number that the difference in length between the first differential line path and each of the second differential line paths in the second differential line path list is less than a second threshold. The preset number is 2, and because each first differential line has only one second differential line, if at least two second differential lines are matched, an error occurs in the matching, and the non-empty network differential pair is determined to be a first type non-empty network differential pair, namely, the non-empty network differential pair needing to be detected manually.
Specifically, the manner of obtaining the second threshold may be: and setting a second threshold value according to the actual demand of the user.
Specifically, a first outer loop operation is sequentially performed on each first differential line in the first differential line route list, where the first outer loop operation includes: acquiring the length of a first differential line route; the manner of determining the length of the first differential line as the target minimum difference value may be: sequentially performing a first outer loop operation on each first differential line in the first differential line route list, the first outer loop operation including: and acquiring the length of the first differential line route (path 1) through an axldbgetelength () function, determining the length of the path1 as a target minimum difference value (minipath), then sequentially executing a first inner loop operation on each second differential line in the second differential line route list, and continuously judging whether an abnormal differential line route pair exists or not after the first inner loop operation is finished.
Specifically, a first inner loop operation is sequentially executed on each second differential line in the second differential line route list, where the first inner loop operation includes: acquiring the length of a second differential line route; if the difference between the length of the first differential line path and the length of the second differential line path is smaller than the target minimum difference, updating the difference between the length of the first differential line path and the length of the second differential line path to the target minimum difference, and determining the second differential line path as the target second differential line path may be: and sequentially executing a first inner circulation operation on each second differential line in the second differential line route list, wherein the first inner circulation operation comprises the following steps: and acquiring the length of a second differential line route (path 2) through an axldBGetLength () function, calculating the difference between the length of the first differential line route and the length of the second differential line route, if the difference between the length of the first differential line route and the length of the second differential line route is smaller than the target minimum difference, determining the difference between the length of the first differential line route and the length of the second differential line route as the current minimum difference, and then determining the second differential line corresponding to the target minimum difference as the target second differential line route. Meanwhile, judging whether the difference value between the length of the first differential line route and the length of the second differential line route is smaller than a second threshold value, and if so, adding 1 to the first number of counter flag.
Specifically, the method for obtaining the first number that the difference value of the lengths of the differential lines in the first differential line route and the second differential line route list is smaller than the second threshold may be: and ending the first inner circulation operation, continuing the first outer circulation operation, wherein the first outer circulation operation further comprises: and acquiring a first quantity of difference line length differences in the first difference line route and the second difference line route list, namely acquiring the quantity of difference values of each second difference line route in the first difference line route and the second difference line route list, wherein the difference values are smaller than the second threshold value, and recording the quantity as the first quantity.
Specifically, if the first number is greater than or equal to the preset number, determining the non-empty network differential pair as a first type non-empty network differential pair, and displaying the name of the first type non-empty network differential pair may be: if the first number is greater than or equal to the preset number, the fact that a plurality of second differential line routes are matched when the first number is matched with the first differential line is indicated, the non-empty network differential pair is determined to be a first type non-empty network differential pair, and names of the first type non-empty network differential pair are displayed on a software printing result interface. Fig. 6 is a schematic diagram showing a result display of a first type of non-empty network differential pair in the first embodiment of the present invention, as shown in fig. 6, "manual check diffpair name" indicates names of non-empty network differential pairs to be detected manually, that is, names of first type of non-empty network differential pairs, where the names of 1 st to 18 th non-empty network differential pairs all need to be detected manually.
Specifically, if the first number is smaller than the preset number and the difference between the length of the first differential line route and the length of the target second differential line route is greater than the first threshold, determining the differential line pair generated by the first differential line route and the target second differential line route as an abnormal differential line pair, and removing the target second differential line route from the second differential line route list may be: if the first number is smaller than the preset number, the first differential line route and the target second differential line route are indicated to be a differential line pair, whether the difference value between the length of the first differential line route and the length of the target second differential line route is larger than a first threshold value is judged, if so, the differential line pair generated by the first differential line route and the target second differential line route is determined to be an abnormal differential line pair, the target second differential line route is removed from the second differential line route list until all the differential line routes in the first differential line route list are detected, and then the first outer circulation is ended.
And sequentially executing a first outer loop operation on each first differential line in the first differential line route list by acquiring a second threshold, wherein the first outer loop operation comprises: acquiring the length of a first differential line route; determining the length of the first differential line as a target minimum differential value; and sequentially executing a first inner loop operation on each second differential line in the second differential line route list, wherein the first inner loop operation comprises the following steps: acquiring the length of a second differential line route; if the difference between the length of the first differential line route and the length of the second differential line route is smaller than the target minimum difference, updating the difference between the length of the first differential line route and the length of the second differential line route to be the target minimum difference, and determining the second differential line route to be the target second differential line route; acquiring a first number of differential line length differences in a first differential line route and a second differential line route list, wherein the difference is smaller than a second threshold value; if the first number is greater than or equal to the preset number, determining the non-empty network differential pair as a first type non-empty network differential pair, and displaying the name of the first type non-empty network differential pair; if the first number is smaller than the preset number and the difference between the length of the first differential line route and the length of the target second differential line route is larger than a first threshold, the differential line pair generated by the first differential line route and the target second differential line route is determined to be an abnormal differential line pair, the target second differential line route is removed from the second differential line route list, so that the error in matching of the differential line pairs can be avoided, each differential line pair is rapidly and accurately determined, each differential line pair is detected, the name of the first type of non-empty network differential pair can be displayed to prompt a user to perform manual detection, the abnormal differential line pair can be rapidly and accurately determined, and the user is reminded to perform manual detection through highlighting display, so that the detection efficiency and coverage rate are improved.
In a specific example, fig. 7 is a flowchart of detecting whether an abnormal differential line pair exists in a differential pair of a non-empty network in the first embodiment of the present invention, as shown in fig. 7, sequentially detecting each of a set of sub-network pairs in the differential pair of the non-empty network, assuming that the mth sub-network pair is net1 and net2, acquiring a set of branch pairs of each sub-network pair using a branches attribute of net, sequentially detecting each of the branch pairs in the set of branch pairs, assuming that the nth branch pair is branch1 and branch2, acquiring a sub-object of branch1 and a sub-object of branch2 using a child attribute of branch, if the type of the sub-object is "path" and the layer type is a target inspection layer, storing the child object of the branch1 into the path1_list to be a first differential line, storing the child object of the branch2 into the path2_list to be a second differential line, if the path1_list and the path2_list only contain one differential line, the two differential lines are a differential line pair, respectively acquiring the lengths of the two differential lines by using an axldBGetLength () function, subtracting the lengths of the two differential lines to obtain an absolute value, and if the absolute value is larger than a first threshold (maxmismate), the differential line pair is an abnormal differential line pair, acquiring dbids of the two differential lines, and highlighting the abnormal differential line pair according to the dbids of the two differential line pairs; if the path1_list and the path2_list each contain at least two paths, acquiring lengths of all paths by using an axldbgetethLength () function, and respectively storing the lengths into the path1Len and the path2Len, and executing an outer loop operation on each path in the path1Len, where the outer loop operation includes: taking out the ith path length in the path1Len, assigning the ith path length (path 1Len [ i ]) to the target minimum difference value (minpath Len), namely minpath Len=path 1Len [ i ], and then executing the inner loop operation, wherein the inner loop operation comprises: taking out the j-th path length (path 2 Lenj) in the path2Len, calculating the difference value between the path1Len [ i ] and the path2Len [ j ], if the path1Len [ i ] -path2Len [ j ] < minipath Len, updating the minipath Len according to the difference value between the path1Len [ i ] -path2Len [ j ], determining the current j as a miniport, wherein the differential line route corresponding to the miniport can be regarded as the differential line paired with the i-th differential line as a differential line route pair, if the path1Len [ i ] -path2Len [ j ] < second threshold (margin value), adding 1 to the margin 1, if the path1Len [ i ] -path2Len [ j ] > margin value, continuing to judge the j+1th path in the path2, wherein the margin is used for recording the difference value between the path 1_lii and the path2 [ j ] < margin value, and the margin 2 ] is not equal to the number of the margin value of the margin 1+1, if the margin 1-path 2 is larger than the margin value, and the number of the margin value is not equal to the margin value of the margin 1; if the flag is less than 2, judging that a path1Len [ i ] -a path2Len [ minpos ] > maxmidatch, if so, determining an ith path (path 1_list [ i ]) and a minpos path (path 2_list [ minpos ]) as a differential line pair, determining the differential line pair as an abnormal differential line pair, acquiring dBIDs of two differential line pairs in the abnormal differential line pair, highlighting the abnormal differential line pair according to the dBIDs of the two differential line pairs, removing the path2_list [ minpos ] in the path2_list, and detecting the (i+1) th path; if the flag is less than 2 and the path1 Leni-path 2Len minpos is less than or equal to maxmiosatch, removing the path2_list in the path2_list, detecting the i+1th path until the outer loop is finished, detecting the next pair of branches, and detecting the next sub-network pair after the branching loop is finished.
According to the technical scheme, when a differential line route detection instruction is received, a non-empty network differential pair set in a target inspection layer is obtained; performing a first operation on each non-empty network differential pair in the set of non-empty network differential pairs in turn, wherein the first operation includes: judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not; if not, displaying the names of the non-empty network differential pairs; if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network; if an abnormal differential line route pair exists, the abnormal differential line route pair is highlighted, so that the problems that in the prior art, due to the fact that whether the length of each section of wiring in each differential line pair in each layer in the PCB is equal or not and whether the length of each section of wiring in each differential line pair is equal are maintained or not can not be accurately detected, the detection efficiency is low and the omission ratio is high due to the fact that a manual detection mode is adopted are solved, automatic detection can be carried out on each differential line route pair in each layer, and the detection efficiency and the coverage rate are improved.
Example two
Fig. 8 is a schematic structural diagram of a differential line detection device in a second embodiment of the present invention. The embodiment may be suitable for the case of detecting each differential line pair of each layer in a PCB board, and the device may be implemented in a software and/or hardware manner, and may be integrated in any device that provides a function of differential line detection, as shown in fig. 8, where the differential line detection device specifically includes: an acquisition module 210 and a detection module 220.
The acquiring module 210 is configured to acquire a set of non-empty network differential pairs in the target inspection layer when receiving the differential line route detection instruction;
a detection module 220, configured to perform a first operation on each non-null network differential pair in the set of non-null network differential pairs in sequence, where the first operation includes:
judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not;
if not, displaying the names of the non-empty network differential pairs;
if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network;
if an abnormal differential line pair exists, the abnormal differential line pair is highlighted.
Optionally, the acquiring module is specifically configured to:
when a differential line route detection instruction is received, acquiring a differential pair set in a target inspection layer;
determining a network object corresponding to each differential pair based on the attribute information of each differential pair in the differential pair set;
and generating a non-empty network differential pair set according to the differential pair of which the network object is a non-empty network in the differential pair set.
Optionally, the detection module is specifically configured to:
acquiring a first sub-network list and a second sub-network list corresponding to each non-empty network differential pair, wherein the first sub-network list comprises: the network name of the sub-network of the first network object, the second sub-network list comprising: network name of the sub-network of the second network object;
If the length of the first sub-network list and the length of the second sub-network list are both the first numerical value, judging whether the network name of the non-empty network differential pair meets the set rule according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list;
if the lengths of the first sub-network list and the second sub-network list are different from the first numerical value, judging whether the network name of the non-empty network differential pair meets the set rule according to the network name of each first sub-network in the first sub-network list and the network name of each second sub-network in the second sub-network list.
Optionally, the detection module is specifically configured to:
determining the network name of the first sub-network and the network name of the second sub-network according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list;
if the network name of the first sub-network is equal to the network name character length of the second sub-network, acquiring a first target value corresponding to the network name of the first sub-network and a second target value corresponding to the network name of the second sub-network;
If the difference value between the first target value and the second target value is the second value, determining that the first sub-network and the second sub-network are sub-network pairs, and determining that the network names of the non-empty network differential pairs meet the set rule;
if the network name of the first sub-network and the network name character length of the second sub-network are different, or the network name of the first sub-network and the network name character length of the second sub-network are the same, and the difference value between the first target value and the second target value is different from the second value, determining that the network name of the non-empty network differential pair does not meet the set rule.
Optionally, the detection module is specifically configured to:
acquiring a network name of each first sub-network in the first sub-network list and a network name of each second sub-network in the second sub-network list;
generating a sub-network pair according to a second sub-network and a first sub-network, wherein the character length of the network name of the second sub-network is the same as that of the first sub-network, and the difference value of target values corresponding to the network names is a second value;
acquiring the number of sub-network pairs in a non-empty network differential pair;
if the number of the sub-network pairs is equal to the first sub-network number in the first sub-network list or the second sub-network number in the second sub-network list, determining that the network names of the non-empty network differential pairs meet the set rule;
If the number of the sub-network pairs is different from the number of the first sub-networks in the first sub-network list and the number of the second sub-networks in the second sub-network list, determining that the network names of the non-empty network differential pairs do not meet the set rule.
Optionally, the detection module is specifically configured to:
generating a sub-network pair set of non-empty network differential pairs according to the sub-network pairs, wherein the sub-network pair set comprises at least one sub-network pair;
performing a second operation on each of the set of branch pairs in each of the set of sub-network pairs in turn, wherein the second operation comprises:
obtaining the sub-object type of the branch pair;
if the sub-object type is a route type, a first differential line route list and a second differential line route list corresponding to the branch pair are obtained;
if the first differential line route list only comprises a first differential line route and the second differential line route list only comprises a second differential line route, a first threshold value is obtained, wherein the first threshold value is the maximum allowable length difference of each differential line route pair in the same non-empty network differential pair in the same target inspection layer, and if the absolute value of the difference value between the length of the first differential line route and the length of the second differential line route is greater than the first threshold value, the differential line pair formed by the first differential line route and the second differential line is determined to be an abnormal differential line pair;
If the first differential line route list comprises at least two first differential line routes and the second differential line route list comprises at least two second differential line routes, judging whether an abnormal differential line route pair exists in the non-empty network differential pair according to the length of each first differential line route in the first differential line route list and the length of each second differential line route in the second differential line route list.
Optionally, the detection module is specifically configured to:
acquiring a second threshold, wherein the second threshold is a length difference value threshold of a differential line pair in a differential pair of the first type non-empty network;
sequentially executing a first outer loop operation on each first differential line in the first differential line route list, wherein the first outer loop operation comprises:
acquiring the length of a first differential line route;
determining the length of the first differential line as a target minimum differential value;
and sequentially executing a first inner loop operation on each second differential line in the second differential line route list, wherein the first inner loop operation comprises the following steps: acquiring the length of a second differential line route; if the difference between the length of the first differential line route and the length of the second differential line route is smaller than the target minimum difference, updating the difference between the length of the first differential line route and the length of the second differential line route to be the target minimum difference, and determining the second differential line route to be the target second differential line route;
Acquiring a first number of differential line length differences in a first differential line route and a second differential line route list, wherein the difference is smaller than a second threshold value;
if the first number is greater than or equal to the preset number, determining the non-empty network differential pair as a first type non-empty network differential pair, and displaying the name of the first type non-empty network differential pair;
if the first number is smaller than the preset number and the difference value between the length of the first differential line route and the length of the target second differential line route is larger than a first threshold value, determining the differential line pair generated by the first differential line route and the target second differential line route as an abnormal differential line pair, and removing the target second differential line route from the second differential line route list.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 9 is a schematic structural diagram of an electronic device in a third embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 9, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having 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 specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the differential line detection method.
In some embodiments, the differential line detection method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When a computer program is loaded into RAM13 and executed by processor 11, one or more steps of the differential line detection method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the differential line detection method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A differential line detection method, comprising:
when a differential line route detection instruction is received, acquiring a non-empty network differential pair set in a target inspection layer;
performing a first operation on each non-empty network differential pair in the set of non-empty network differential pairs in turn, wherein the first operation includes:
judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not;
If not, displaying the names of the non-empty network differential pairs;
if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network;
if an abnormal differential line pair exists, the abnormal differential line pair is highlighted.
2. The method of claim 1, wherein when the differential line route detection instruction is received, obtaining the set of non-empty network differential pairs in the target inspection layer comprises:
when a differential line route detection instruction is received, acquiring a differential pair set in a target inspection layer;
determining a network object corresponding to each differential pair based on the attribute information of each differential pair in the differential pair set;
and generating a non-empty network differential pair set according to the differential pair of which the network object is a non-empty network in the differential pair set.
3. The method of claim 2, wherein determining whether the network names of the network objects in the non-empty network differential pair satisfy the set rule comprises:
acquiring a first sub-network list and a second sub-network list corresponding to each non-empty network differential pair, wherein the first sub-network list comprises: the network name of the sub-network of the first network object, the second sub-network list comprising: network name of the sub-network of the second network object;
If the length of the first sub-network list and the length of the second sub-network list are both the first numerical value, judging whether the network name of the non-empty network differential pair meets the set rule according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list;
if the lengths of the first sub-network list and the second sub-network list are different from the first numerical value, judging whether the network name of the non-empty network differential pair meets the set rule according to the network name of each first sub-network in the first sub-network list and the network name of each second sub-network in the second sub-network list.
4. The method of claim 3, wherein determining whether the network name of the non-empty differential pair meets the set rule based on the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list comprises:
determining the network name of the first sub-network and the network name of the second sub-network according to the network name of the first network object corresponding to the first sub-network list and the network name of the second network object corresponding to the second sub-network list;
If the network name of the first sub-network is equal to the network name character length of the second sub-network, acquiring a first target value corresponding to the network name of the first sub-network and a second target value corresponding to the network name of the second sub-network;
if the difference value between the first target value and the second target value is the second value, determining that the first sub-network and the second sub-network are sub-network pairs, and determining that the network names of the non-empty network differential pairs meet the set rule;
if the network name of the first sub-network and the network name character length of the second sub-network are different, or the network name of the first sub-network and the network name character length of the second sub-network are the same, and the difference value between the first target value and the second target value is different from the second value, determining that the network name of the non-empty network differential pair does not meet the set rule.
5. The method of claim 3, wherein determining whether the network name of the non-empty differential pair meets the set rule based on the network name of each first sub-network in the first sub-network list and the network name of each second sub-network in the second sub-network list comprises:
acquiring a network name of each first sub-network in the first sub-network list and a network name of each second sub-network in the second sub-network list;
Generating a sub-network pair according to a second sub-network and a first sub-network, wherein the character length of the network name of the second sub-network is the same as that of the first sub-network, and the difference value of target values corresponding to the network names is a second value;
acquiring the number of sub-network pairs in a non-empty network differential pair;
if the number of the sub-network pairs is equal to the first sub-network number in the first sub-network list or the second sub-network number in the second sub-network list, determining that the network names of the non-empty network differential pairs meet the set rule;
if the number of the sub-network pairs is different from the number of the first sub-networks in the first sub-network list and the number of the second sub-networks in the second sub-network list, determining that the network names of the non-empty network differential pairs do not meet the set rule.
6. The method of claim 4 or 5, wherein if so, determining whether an abnormal differential line pair exists in the non-empty network differential pair comprises:
generating a sub-network pair set of non-empty network differential pairs according to the sub-network pairs, wherein the sub-network pair set comprises at least one sub-network pair;
performing a second operation on each of the set of branch pairs in each of the set of sub-network pairs in turn, wherein the second operation comprises:
Obtaining the sub-object type of the branch pair;
if the sub-object type is a route type, a first differential line route list and a second differential line route list corresponding to the branch pair are obtained;
if the first differential line route list only comprises a first differential line route and the second differential line route list only comprises a second differential line route, a first threshold value is obtained, wherein the first threshold value is the maximum allowable length difference of each differential line route pair in the same non-empty network differential pair in the same target inspection layer, and if the absolute value of the difference value between the length of the first differential line route and the length of the second differential line route is greater than the first threshold value, the differential line pair formed by the first differential line route and the second differential line is determined to be an abnormal differential line pair;
if the first differential line route list comprises at least two first differential line routes and the second differential line route list comprises at least two second differential line routes, judging whether an abnormal differential line route pair exists in the non-empty network differential pair according to the length of each first differential line route in the first differential line route list and the length of each second differential line route in the second differential line route list.
7. The method of claim 6, wherein determining whether an abnormal differential line pair exists in the non-empty network differential pair based on the length of each first differential line in the first differential line list and the length of each second differential line in the second differential line list comprises:
acquiring a second threshold, wherein the second threshold is a length difference value threshold of a differential line pair in a differential pair of the first type non-empty network;
sequentially executing a first outer loop operation on each first differential line in the first differential line route list, wherein the first outer loop operation comprises:
acquiring the length of a first differential line route;
determining the length of the first differential line as a target minimum differential value;
and sequentially executing a first inner loop operation on each second differential line in the second differential line route list, wherein the first inner loop operation comprises the following steps: acquiring the length of a second differential line route; if the difference between the length of the first differential line route and the length of the second differential line route is smaller than the target minimum difference, updating the difference between the length of the first differential line route and the length of the second differential line route to be the target minimum difference, and determining the second differential line route to be the target second differential line route;
Acquiring a first number of differential line length differences in a first differential line route and a second differential line route list, wherein the difference is smaller than a second threshold value;
if the first number is greater than or equal to the preset number, determining the non-empty network differential pair as a first type non-empty network differential pair, and displaying the name of the first type non-empty network differential pair;
if the first number is smaller than the preset number and the difference value between the length of the first differential line route and the length of the target second differential line route is larger than a first threshold value, determining the differential line pair generated by the first differential line route and the target second differential line route as an abnormal differential line pair, and removing the target second differential line route from the second differential line route list.
8. A differential line detection device, comprising:
the acquisition module is used for acquiring a non-empty network differential pair set in the target inspection layer when receiving the differential line route detection instruction;
a detection module, configured to sequentially perform a first operation on each non-null network differential pair in the set of non-null network differential pairs, where the first operation includes:
judging whether the network names of the network objects in the non-empty network differential pair meet the set rule or not;
If not, displaying the names of the non-empty network differential pairs;
if yes, judging whether an abnormal differential line route pair exists in the differential pair of the non-empty network;
if an abnormal differential line pair exists, the abnormal differential line pair is highlighted.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the differential line detection method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the differential line detection method of any one of claims 1-7.
CN202311224077.2A 2023-09-21 2023-09-21 Differential line detection method, device, equipment and storage medium Pending CN117112333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311224077.2A CN117112333A (en) 2023-09-21 2023-09-21 Differential line detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311224077.2A CN117112333A (en) 2023-09-21 2023-09-21 Differential line detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117112333A true CN117112333A (en) 2023-11-24

Family

ID=88803957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311224077.2A Pending CN117112333A (en) 2023-09-21 2023-09-21 Differential line detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117112333A (en)

Similar Documents

Publication Publication Date Title
CN115396289B (en) Fault alarm determining method and device, electronic equipment and storage medium
CN116205542B (en) Quality management system, method, equipment and medium based on data comparison
CN115358411A (en) Data processing method, device, equipment and medium
CN117424850B (en) Abnormal link aggregation method, query method, device, equipment and medium
CN117112333A (en) Differential line detection method, device, equipment and storage medium
CN117743396A (en) Data quality detection method, device, equipment and storage medium
CN117670128A (en) Data processing method and device
CN115272381B (en) Metal wire segmentation method and device, electronic equipment and storage medium
CN116647377A (en) Website inspection method and device, electronic equipment and storage medium
CN114443493A (en) Test case generation method and device, electronic equipment and storage medium
CN114812576A (en) Map matching method and device and electronic equipment
CN115293096B (en) Line generation method, device, electronic equipment and storage medium
CN115361308B (en) Industrial control network data risk determination method, device, equipment and storage medium
CN117609234A (en) Data processing method and device
CN115858367A (en) Test case screening method, device, equipment and medium
CN116954662A (en) Knowledge system updating method, device, equipment and medium based on building facilities
CN116714646A (en) Line test sequence generation method, device, equipment and medium
CN116400956A (en) Code merging information determining method and device, electronic equipment and storage medium
CN117453747A (en) Data quality detection method and device, electronic equipment and storage medium
CN116991693A (en) Test method, device, equipment and storage medium
CN117331924A (en) Data model matching degree checking method, device, equipment and storage medium
CN114996157A (en) Method, device, equipment and storage medium for identifying risk of changing code
CN116662194A (en) Software quality measurement method, device, equipment and medium
CN116225390A (en) Warehouse-in method, device, equipment and medium for software development files
CN115827588A (en) Method, device, equipment and storage medium for generating business global serial number

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination