Method of Obtaining Circuit Netlist by Using Node Electrical Characteristics

Constructing a circuit netlist based on node electrical characteristics solves the problem of heavy workload in circuit board fault detection in the existing technology, enables rapid fault detection and simplified drawing of circuit schematics, and is suitable for repairing broken wires on multi-layer boards.

CN114417778BActive Publication Date: 2024-09-27韩熔
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202210080704.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2024-09-27
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

The existing technology is difficult to repair third-party electronic circuit board faults, especially multi-layer board disconnection faults, and the use of test tools such as multimeters and circuit breakers results in a huge workload, making it difficult to quickly reverse the circuit schematic diagram.

Method used

By using the node electrical characteristics, the electrical characteristics of each pin on the circuit board are obtained in advance, a node search netlist is constructed, pins without actual connections are eliminated, a circuit netlist is generated, and the circuit netlist is optimized to reduce the detection workload.

Benefits of technology

It realizes the rapid detection of circuit board faults, reduces the workload of comprehensive pin detection, can find faults more quickly, makes it possible to repair the disconnection problem of multi-layer boards, and simplifies the drawing of circuit schematic diagrams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417778B
    Figure CN114417778B
Patent Text Reader

Abstract

The present invention provides a method for obtaining a circuit netlist by means of node electrical characteristics. The electrical characteristics of each pin on the circuit board under test are obtained in advance; in the empty pin set, a pin is randomly selected, and the electrical characteristics are compared with all other pins in the empty pin set, and the pins of the same type whose electrical characteristic errors are less than the specified preset value are determined, and a node netlist is constructed based on the pins of the same type; a connection test is performed on the pins in the node netlist, and the pins that are not actually connected are eliminated according to the test results to obtain the actual netlist of the node; all the pins of the node are deleted from the empty pin set; in the remaining empty pin set, a pin is randomly selected to start obtaining the next node netlist, and this is repeated until the empty pin set is empty, and the netlist of the entire circuit board is obtained. The beneficial effect is that by introducing the pin electrical characteristics as constraints in the process of obtaining the netlist, the workload can be reduced to one tenth to several tens of tenths of the method of obtaining the netlist only through connection testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit testing, and in particular to a method for obtaining a circuit netlist by means of node electrical characteristics. Background Art

[0002] At present, in the third-party electronic circuit board fault detection, the lack of circuit schematics poses a great obstacle to successful repair, and multilayer board disconnection faults are basically unrepairable. The only way to obtain the schematic diagram is to reverse the circuit diagram from a known fault-free circuit board.

[0003] The inverse circuit diagram mainly includes two steps:

[0004] 1. Obtain the connection relationship between components on the circuit board;

[0005] 2. Draw a circuit diagram based on the components and their connections.

[0006] There are two completely different ways to find connections:

[0007] 1. Destructive. Peel off the circuit board layer by layer, take photos of each layer, and observe the specific connections from the images of each layer;

[0008] 2. Non-destructive. Confirm the connection relationship through testing. The present invention belongs to the second type.

[0009] Given the characteristics of the repair industry, it is impossible to use equipment with a large value (tens to hundreds of thousands) to find connections. The only test tools currently used are multimeters or switches, which measure whether the resistance between two pins is less than a certain threshold to confirm whether there is a connection. The problem with this way of working is that the workload is extremely huge. It takes several weeks to reverse the schematic diagram of a moderately sized multi-layer circuit board, and confirming the connection relationship accounts for 90% or even more of the workload.

[0010] The biggest problem with existing technology is the huge workload. In fact, there are many ways to reduce the testing workload, such as using copper brushes instead of test leads, judging the possibility of connection based on experience, etc. However, due to the large base, the workload is still very large.

[0011] In addition, when using a multimeter and a switch to obtain a connection, the workload of recording, organizing, and retrieving data is also huge. Summary of the invention

[0012] The present invention provides a method for obtaining a circuit netlist by means of node electrical characteristics, which is used to solve the problem of the working method of the prior art that the workload is extremely huge.

[0013] A method for obtaining a circuit netlist by using node electrical characteristics, characterized by comprising:

[0014] Step 1: Obtain the electrical characteristics of each pin on the circuit board under test in advance, and determine the empty pin set of the circuit board under test;

[0015] Step 2: Select a comparison pin in the empty pin set, and compare the electrical characteristics of all pins in the empty pin set with the comparison pin, determine similar pins whose electrical characteristic errors are less than a specified preset range, and construct a node search netlist based on the similar pins;

[0016] Step 3: Test the connection status of the comparison pins from the search netlist, determine the actual connection pins, and remove the pins that are not actually connected to obtain the node netlist;

[0017] Step 4: Delete all pins in the node netlist from the empty pin set;

[0018] Step 5: When the empty pin set is empty, the circuit netlist is generated;

[0019] Step 6: When the empty foot set is not empty, repeat steps 2 to 4.

[0020] As an embodiment of the present invention: the method further includes:

[0021] The current and voltage of each pin on the circuit board under test are detected by a preset test device to determine the current and voltage curve; wherein,

[0022] The current-voltage curve includes: ASA curve / VI curve;

[0023] According to the current-voltage curve, a curve feature is determined, and the curve feature is used as an electrical feature.

[0024] As an embodiment of the present invention: the method further includes:

[0025] Determine the pins of any isolated node;

[0026] Determine the isolated electrical characteristics of the pin of the isolated node, and compare the isolated electrical characteristics with the electrical characteristics of all isolated pins that are not in the node netlist, and record the target isolated pins whose error values ​​are less than the specified preset range;

[0027] Generate a search netlist according to the target isolated pins;

[0028] It is determined whether the search netlist has similar characteristic pins directly connected to the pins of the isolated node, and pins that are not directly connected are removed from the search netlist to generate a node netlist based on the isolated node.

[0029] As an embodiment of the present invention: the method further includes:

[0030] Based on the ASA curve / VI curve, determine the circuit parameters of each pin at different times; among them,

[0031] The circuit parameters include: voltage value, resistance value, current value and zero point test value;

[0032] A circuit curve diagram of each pin is generated according to the circuit parameters; wherein,

[0033] The circuit curve graph includes: a voltage curve graph, a current curve graph, a resistance curve graph and a zero point curve graph;

[0034] Extracting the curve features of each circuit curve graph respectively, and determining the curve features of each pin;

[0035] Compare the curve features of different pins one by one to determine the set of pins whose similarity is within a specified preset range;

[0036] A node netlist is constructed through the pin set.

[0037] As an embodiment of the present invention: the method further includes:

[0038] Obtain the electrical characteristics of each pin and determine the change range of the electrical characteristics within a cycle;

[0039] Determining a value range of the electrical characteristic according to the variation interval;

[0040] According to the value range, the constraint conditions of the electrical characteristics are determined; wherein,

[0041] The constraints include: type constraints, cycle start constraints, cycle end constraints, output parameter constraints and input equivalence constraints;

[0042] The specified preset range is set according to the constraint condition.

[0043] As an embodiment of the present invention: the method further includes:

[0044] The circuit netlist is regularly optimized; wherein,

[0045] The regularity optimization includes: pin type optimization, pin distribution optimization and pin function optimization;

[0046] After regularity optimization, determine the execution logic of each pin in the circuit netlist;

[0047] According to the execution logic, a corresponding circuit library is configured and circuit diagram matching is performed;

[0048] According to the circuit library, verify the logic function of the circuit netlist to determine the accuracy of the circuit netlist;

[0049] When the accuracy is within a preset accuracy threshold, the corresponding circuit netlist is output.

[0050] As an embodiment of the present invention: the method further includes:

[0051] According to the node netlist, a set of isolated nodes on the circuit board under test is obtained;

[0052] Determining a function set of each isolated node according to the isolated node set;

[0053] According to the function set, determine whether there are isolated nodes with similar functions, and use the isolated nodes with similar functions as a feature comparison set, and mark the isolated nodes that do not have similar functions individually;

[0054] Perform continuous feature comparison on isolated nodes in the feature comparison set; wherein,

[0055] The continuous feature comparison includes:

[0056] Respectively obtaining electrical characteristics of each isolated node in the characteristic comparison set;

[0057] According to the operation cycle of each isolated node, the electrical characteristic parameters of each isolated node at each moment in the operation cycle are continuously compared;

[0058] determining an average error parameter during the operation period based on the continuous comparison;

[0059] Determine, based on the average error parameter, whether the electrical characteristic error in the characteristic comparison set is less than a specified preset range, and determine the corresponding isolated node;

[0060] Performing single feature comparison on the isolated nodes of the single marker; wherein,

[0061] The single feature comparison comprises the following steps:

[0062] Different types of electrical characteristics of isolated nodes with single markers are obtained respectively;

[0063] For each different type of electrical characteristic, corresponding electrical characteristic parameters are determined respectively;

[0064] The electrical characteristics of different types are compared with the electrical characteristics of any isolated nodes in turn to determine the isolated nodes whose electrical characteristic errors are less than a specified preset range.

[0065] As an embodiment of the present invention: the method further includes:

[0066] According to the current-voltage curve, the electrical characteristics are divided into frequency domain characteristics and time domain characteristics; wherein,

[0067] The frequency domain features include spectrum features, power features and coherence function features;

[0068] The time domain characteristics include: mean, correlation coefficient, deviation rate, standard deviation and curve skewness;

[0069] Determine the characteristic points on the corresponding current-voltage curve according to the divided time domain characteristics and frequency domain characteristics;

[0070] A curve feature is generated according to the feature points.

[0071] As an embodiment of the present invention: the method further includes:

[0072] Determine the function parameters of each pin according to the circuit netlist;

[0073] According to the functional parameters, each pin in the circuit netlist is functionally marked;

[0074] According to the functional label, each pin in the circuit netlist is divided into a hierarchy;

[0075] Through the hierarchical division, a multi-level circuit netlist is generated.

[0076] As an embodiment of the present invention: the method further includes:

[0077] Apply random excitation to the circuit under test and obtain the response result;

[0078] Counting the flip probability of each node of the circuit netlist corresponding to the circuit to be tested in the response result; wherein,

[0079] The circuit netlist is a directed graph, the directed graph includes a plurality of vertices, any vertex is an instantiated logic circuit, an input port of a non-instantiated logic circuit, or an output port of a non-instantiated logic circuit; the node is an interconnection line between two vertices;

[0080] Determine, among the nodes, low-probability nodes whose flipping probabilities are lower than a first threshold, and high-probability nodes whose flipping probabilities are not lower than the first threshold;

[0081] For each low-probability node, search for high-probability nodes on the two target paths of the low-probability node; take each two high-probability nodes on the two target paths as a high-probability node combination to obtain each high-probability node combination corresponding to the low-probability node; wherein the two target paths are paths selected from adjacent paths of the path where the low-probability node is located according to a preset rule; the adjacent paths have the same starting vertex as the path where the low-probability node is located;

[0082] For each high-probability node combination, statistics are given in the response result, the combined flip probabilities corresponding to various level combinations of the high-probability node combination, and the flipping of the low-probability nodes corresponding to the high-probability node combination under each level combination;

[0083] When the combined flip probability corresponding to any level combination is less than the second threshold value, and the low-probability node corresponding to the high-probability node combination flips, mark the high-probability node combination and the corresponding low-probability node;

[0084] The low-probability combination composed of each marked high-probability node combination and the corresponding low-probability node is used as the low-probability combination search result;

[0085] Based on the low-probability combination search results, similar pins are preliminarily screened.

[0086] The beneficial effect of the present invention is that the present invention can generate a circuit netlist in the form of a node netlist, and pins with the same electrical characteristics can be uniformly detected through the circuit netlist, that is, detecting one is equivalent to detecting all similar pin nodes, so that faults in the circuit board can be discovered more quickly and the workload of comprehensive pin detection can be reduced.

[0087] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0088] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0090] Figure 1 A flow chart of a method for obtaining a circuit netlist by using node electrical characteristics in an embodiment of the present invention;

[0091] Figure 2 A diagram of a test device for electrical characteristic testing in an embodiment of the present invention;

[0092] Figure 3 A flowchart for generating a node netlist in an embodiment of the present invention;

[0093] Figure 4 It is an actual interface diagram of the node netlist in the embodiment of the present invention;

[0094] Figure 5 Schematic diagram of the contents of different items in the node netlist interface in an embodiment of the present invention;

[0095] Figure 6 This is a diagram of the node netlist pin selection interface in an embodiment of the present invention;

[0096] Figure 7 This is a diagram of the operation interface for adding a pin to a node netlist in an embodiment of the present invention;

[0097] Figure 8 An interface diagram for adding another pin in an embodiment of the present invention;

[0098] Fig. 9 This is an interface diagram after adding pins in an embodiment of the present invention. DETAILED DESCRIPTION

[0099] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0100] First of all, the main purpose of the present invention is to obtain a circuit netlist of circuit board connections; this method is implemented by a computer and can reduce the workload of obtaining circuit board component connections to one tenth or even less by an operation process similar to that of a multimeter within an acceptable cost range for the maintenance industry.

[0101] In the prior art, when a multimeter or a switch is used to obtain a connection, if the operator's circuit knowledge and familiarity with the circuit board are not considered, the connection is confirmed entirely based on the test results. The process of obtaining a connection is roughly as follows:

[0102] Step 1: Starting from a certain device pin, test the resistance between all other pins on the circuit board and this pin one by one, record the pins with resistance lower than the threshold, and these pins form a node netlist. A node net represents a group of pins connected together.

[0103] Step 2: Select a pin from the remaining pins, test all the pins on the circuit board that are not in any node netlist one by one, and record them to obtain another node netlist.

[0104] Step 3: Repeat step 2 until all pins are processed (each pin is included in a node netlist).

[0105] However, when the above method is actually implemented, we can make a rough estimate: assuming that there are 2000 device pins on a circuit board, and an average of 5 pins constitute a node, then the number of tests for the first node netlist is: (2000-1); since the 5 pins in the first node netlist do not need to be tested again, it can be considered that the total number of pins is reduced to (2000-5), so the number of tests for the second node netlist is: [(2000-1*5)-1];

[0106] The third node netlist: [(2000–2*5)-1] and so on;

[0107] Total number of tests:

[0108] (1999-0*5)(1999-1*5)(1999-2*5)(1999-3*5)......(1999-N*5)N=399;

[0109] This is an astronomical number, which is only used to give an idea of ​​the order of magnitude. In fact, there are many ways to reduce the testing workload, such as using copper brushes instead of test leads, judging the possibility of connection based on experience, etc. However, due to the large base, the workload is still very large.

[0110] In addition, when using a multimeter and a switch to obtain a connection, the workload of recording, organizing, and retrieving data is also huge.

[0111] Embodiment 1:

[0112] As attached Figure 1 As shown, the present invention is a method for obtaining a circuit netlist by using node electrical characteristics, comprising:

[0113] Step 1: Obtain the electrical characteristics of each pin on the circuit board under test in advance, and determine the empty pin set of the circuit board under test;

[0114] Step 2: Select a comparison pin in the empty pin set, and compare the electrical characteristics of all pins in the empty pin set with the comparison pin, determine similar pins whose electrical characteristic errors are less than a specified preset range, and construct a node search netlist based on the similar pins;

[0115] Step 3: Test the connection status of the comparison pins from the search netlist, determine the actual connection pins, and remove the pins that are not actually connected to obtain a node netlist; the node netlist represents the component pins that are short-circuited together on the circuit board;

[0116] Step 4: Delete all pins in the node netlist from the empty pin set;

[0117] Step 5: When the empty pin set is empty, the circuit netlist is generated; the circuit netlist represents the netlist of all nodes of the circuit board.

[0118] Step 6: When the empty foot set is not empty, repeat steps 2 to 4.

[0119] The working principle of the above technical solution is: because the device pins in the same circuit node are directly short-circuited together, they have the same electrical characteristics, which is called the node electrical characteristics. This node electrical characteristic is obtained by attaching Figure 2 The electrical characteristics of different nodes are generally different, but there may be overlaps. The possibility of overlap depends on the specific electrical characteristics selected, the test accuracy, and the amount of data. The more complex the characteristics, the higher the test accuracy, and the larger the amount of data, the smaller the possibility of overlap.

[0120] The present invention first tests the electrical characteristics of each pin and records them in a computer;

[0121] Then, starting from the first pin, compare the electrical characteristic data with all other pins one by one, and put all the pins whose characteristic data are within the error range into the same node netlist, as shown in the attached figure. Figure 4 As shown, attached Figure 4 The plus sign in the middle is the node of the node netlist. When it is implemented, all the pins of the node are displayed through flying wires. Figure 4 The left side of the epoch number column indicates all the components on the circuit board; and the empty pin column indicates the device pins that have not been added to the node netlist. And the node column indicates all the component pins in the current node. Figure 5 shown.

[0122] Because there may be feature overlap nodes, the netlist obtained by the present invention will have the same (no overlap) or more (overlap) pins than the actual netlist. However, due to the limitation of the same features, the extra pins will be far less than the pins that have not been processed.

[0123] Verify the pins in the obtained netlist by re-checking whether they are actually connected, for example, by using a multimeter, a switch, etc. to verify whether they are actually connected pin by pin, and remove those pins that are not directly connected to obtain the actual netlist of the node;

[0124] Finally, find the next pin that is not in any existing node netlist (isolated pin), compare the characteristic data with all other isolated pins, and classify all pins whose characteristic data are within the error range into the same node netlist. By repeating the above steps many times, you can determine the node netlist and reduce the workload.

[0125] In this solution, we only need to test the electrical characteristics of each pin and eliminate the pins with the same electrical characteristics and not directly connected. The following is a rough estimate of the number of tests using an actual case:

[0126] Also assume that there are 2000 pins, each node consists of 5 pins on average, and each node has a node with the same characteristics on average, then:

[0127] Test the electrical characteristics of each pin: 2000 times;

[0128] Search the first pin. According to the assumption, 10 pins are obtained. It is necessary to test 10 times to confirm the actual netlist of the node. There are 5 pins in total. These 5 pins will no longer participate in the search;

[0129] Search for the next isolated pin. If the pin is not the pin removed in the previous step, 10 pins will be found and 10 tests will be required; if it is, only 5 pins will be found and 5 tests will be required. Repeat step 3 until the end.

[0130] Assume that each node needs to be tested 10 times to confirm:

[0131] Total number of tests < 2000 + 10 * 2000 / 5 = 6000 times (Expression 2)

[0132] Comparing expressions 1 and 2, it can be seen that the testing workload required by the present invention is greatly reduced.

[0133] The beneficial effects of the present invention are as follows: the present invention can generate a circuit netlist in the form of a node netlist, and uniform detection can be performed for pins with the same electrical characteristics through the circuit netlist, that is, detecting one is equivalent to detecting all the same pin nodes, so that faults in the circuit board can be found more quickly, and the workload of comprehensive pin detection can be reduced. Because in the prior art, any test on the circuit board can only locate the fault to the node. When a problem is found in the curve or voltage of a certain pin during testing, the problem is not necessarily on the tested pin, but on the components (pins) associated with the pin. With the node netlist, those components (pins) can be found quickly, greatly improving the speed of finding faulty components; secondly, there is currently no good way to solve the problem of broken wires, especially the problem of broken wires on multilayer boards, which basically belongs to the fault that cannot be repaired. With the support of the component list and the node netlist, it is possible to repair; even the circuit board that has been repaired incorrectly may be repaired. Moreover, with the support of the component list and the node netlist, it is easier to draw the schematic diagram of the circuit board.

[0134] In actual implementation:

[0135] There are two methods of operation of the present invention:

[0136] The operations to create a node netlist are as follows:

[0137] Step 1: Click a pin with the mouse. If a netlist is displayed, it means that the node where the pin is located has been processed and does not need to be processed again. Click another pin until you find a pin without a netlist.

[0138] Step 2: Click the Search Node Netlist button, and a netlist will be automatically searched out, called the "Search Netlist" of the node. The "Search Netlist" contains the "Actual Netlist", or in other words, the pins in the actual netlist will appear in the search netlist (with very few exceptions, which will be explained later), and there may be extra pins. After deleting these extra pins, you will get the actual netlist.

[0139] Step 3: Use a multimeter or the Beep function provided here (similar to a multimeter, but with an advantage that the on / off threshold can be set between about 1-50 ohms), and follow the prompts of the search netlist to confirm each connection on the circuit board. Specifically, test between the two device pins connected by each flying wire to confirm whether they are really connected (short circuit).

[0140] If there is no connection, you need to delete it. Just click the pin to be deleted with the mouse, and then press the "Delete" key to delete the pin from the list and the flying line, and refresh the display;

[0141] If there is a connection, just press the TAB key and a check mark will appear in front of the pin, indicating that it has been confirmed. The specific status is as follows: Figure 6 As shown. For each connection represented by a flying wire in the search netlist, a test confirmation must be performed. After all confirmations are completed, the node is considered to have been processed. Return to step 1 to process the next node. Once the present invention processes a node, all the pins of this node will no longer participate in the search, which is equivalent to taking them off the board. It can also be said that the board has become smaller, and the test workload of confirming the connection is reduced accordingly, and the speed of processing the remaining node netlist will be faster until all nodes are processed.

[0142] In another implementation method:

[0143] First, add pins to a node netlist. For example, we have determined that the upper pins of the two devices on the left in the figure below are connected. Left-click the upper pin of device 1 (or 2), press the "Enter" key, and move the mouse. At this time, a flashing line segment appears from the pin to the current position of the mouse, and the endpoint follows the movement of the mouse cursor, as shown in the attached figure. Figure 7 shown.

[0144] At this time, the "Node" list is empty. Click the upper pin of device 2 with the mouse to complete the addition. At this time, a new flashing flying line appears. You can continue to add the next one, as shown in the following figure. Figure 8 shown.

[0145] If you do not want to add any more points, press the ESC key to exit the adding state, and the empty foot and node lists will be updated accordingly. Fig. 9 As shown. Repeat the operation. Each time you click a pin, all the pins that have been added and are connected to the pin will be displayed in the form of a list (in the "node" list) and flying lines.

[0146] The pins that have entered the node will not appear in the "empty pins" list. Therefore, as more are added, the list gradually becomes smaller until it becomes empty, indicating that all pins have been processed.

[0147] When adding pins, if the pins to be added are already in a node netlist, the following prompt will be automatically displayed. Click "Yes" to perform the merge.

[0148] Embodiment 2:

[0149] As an embodiment of the present invention: the method further includes:

[0150] The current and voltage of each pin on the circuit board under test are detected by a preset test device to determine the current and voltage curve; wherein,

[0151] The current-voltage curve includes: ASA curve / VI curve;

[0152] According to the current-voltage curve, a curve feature is determined, and the curve feature is used as an electrical feature.

[0153] The principle of the above technical solution is: because the present invention mainly detects circuit boards, the extracted circuit characteristics must be accurate to each pin, so the present invention uses current and voltage detection, ASA and CI curves, and determines the changes in electrical characteristics through the changes in the curves, thereby calculating the electrical characteristics of each pin.

[0154] The beneficial effect of the above technical solution is that the extraction of electrical characteristics relies on the ASA curve and the VI curve, and extracting characteristics by means of curves is more intuitive.

[0155] Embodiment 3:

[0156] As an embodiment of the present invention: Figure 3 As shown, the method also includes:

[0157] Determine the pins of any isolated node;

[0158] Determine the isolated electrical characteristics of the pin of the isolated node, and compare the isolated electrical characteristics with the electrical characteristics of all isolated pins that are not in the node netlist, and record the target isolated pins whose error values ​​are less than the specified preset range;

[0159] Generate a search netlist according to the target isolated pins;

[0160] It is determined whether the search netlist has similar characteristic pins directly connected to the pins of the isolated node, and pins that are not directly connected are removed from the search netlist to generate a node netlist based on the isolated node.

[0161] The principle of the above technical solution is that when the present invention generates a node netlist, because there are isolated nodes, that is, pins without similar nodes, the present invention compares the isolated pins with the netlist connected by the isolated pins, and integrates the isolated pins to generate the final circuit netlist.

[0162] The beneficial effect of the above technical solution is that the present invention can achieve accurate statistics and highlight any node in the circuit netlist.

[0163] Embodiment 4:

[0164] As an embodiment of the present invention: the method further includes:

[0165] Based on the ASA curve / VI curve, determine the circuit parameters of each pin at different times; among them,

[0166] The circuit parameters include: voltage value, resistance value, current value and zero point test value;

[0167] A circuit curve diagram of each pin is generated according to the circuit parameters; wherein,

[0168] The circuit curve graph includes: a voltage curve graph, a current curve graph, a resistance curve graph and a zero point curve graph;

[0169] Extracting the curve features of each circuit curve graph respectively, and determining the curve features of each pin;

[0170] Compare the curve features of different pins one by one to determine the set of pins whose similarity is within a specified preset range;

[0171] A node netlist is constructed through the pin set.

[0172] The principle of the above technical solution is that: because the node network table of the present invention mainly relies on electrical characteristics, in the present invention, that is, curve characteristics; therefore, the present invention determines the same type of node network by comparing the meaning of curve characteristics.

[0173] The beneficial effect of the above technical solution is that the present invention can process the node network and obtain the electrical characteristics in the form of curves.

[0174] Embodiment 5:

[0175] As an embodiment of the present invention: the method further includes:

[0176] Obtain the electrical characteristics of each pin and determine the change range of the electrical characteristics within a cycle;

[0177] Determining a value range of the electrical characteristic according to the variation interval;

[0178] According to the value range, the constraint conditions of the electrical characteristics are determined; wherein,

[0179] The constraints include: type constraints, cycle start constraints, cycle end constraints, output parameter constraints and input equivalence constraints;

[0180] The specified preset range is set according to the constraint condition.

[0181] The principle of the above technical solution is that: because it is mainly a comparison of electrical characteristics, and the circuit generally has a periodic nature, there must be a certain value range for randomness, which also conforms to the curve graph, so the present invention sets constraints and determines the range of errors through constraint adjustment.

[0182] The beneficial effect of the above technical solution is that the present invention can limit the range of errors according to the set constraints, thereby realizing the determination of the error threshold during feature comparison.

[0183] Embodiment 6:

[0184] As an embodiment of the present invention: the method further includes:

[0185] The circuit netlist is regularly optimized; wherein,

[0186] The regularity optimization includes: pin type optimization, pin distribution optimization and pin function optimization;

[0187] After regularity optimization, determine the execution logic of each pin in the circuit netlist;

[0188] According to the execution logic, a corresponding circuit library is configured and circuit diagram matching is performed;

[0189] According to the circuit library, verify the logic function of the circuit netlist to determine the accuracy of the circuit netlist;

[0190] When the accuracy is within a preset accuracy threshold, the corresponding circuit netlist is output.

[0191] The principle of the above technical solution is: because the statistics of the circuit netlist is not only to determine the pins, but also to determine the functions and execution logic corresponding to the pins, the present invention uses a circuit library, that is, the circuit netlist has a matching circuit diagram library, to perform logic function verification, so as to achieve the purpose of making the output circuit netlist more accurate.

[0192] The beneficial effect of the technical solution is that the present invention can perform logic function verification to achieve the purpose of making the output circuit netlist more accurate.

[0193] Embodiment 7:

[0194] As an embodiment of the present invention: the method further includes:

[0195] According to the node netlist, a set of isolated nodes on the circuit board under test is obtained;

[0196] Determining a function set of each isolated node according to the isolated node set;

[0197] According to the function set, determine whether there are isolated nodes with similar functions, and use the isolated nodes with similar functions as a feature comparison set, and mark the isolated nodes that do not have similar functions individually;

[0198] Perform continuous feature comparison on isolated nodes in the feature comparison set; wherein,

[0199] The continuous feature comparison includes:

[0200] Respectively obtaining electrical characteristics of each isolated node in the characteristic comparison set;

[0201] According to the operation cycle of each isolated node, the electrical characteristic parameters of each isolated node at each moment in the operation cycle are continuously compared;

[0202] determining an average error parameter during the operation period based on the continuous comparison;

[0203] Determine, based on the average error parameter, whether the electrical characteristic error in the characteristic comparison set is less than a specified preset range, and determine the corresponding isolated node;

[0204] Performing single feature comparison on the isolated nodes of the single marker; wherein,

[0205] The single feature comparison comprises the following steps:

[0206] Different types of electrical characteristics of isolated nodes with single markers are obtained respectively;

[0207] For each different type of electrical characteristic, corresponding electrical characteristic parameters are determined respectively;

[0208] The electrical characteristics of different types are compared with the electrical characteristics of any isolated nodes in turn to determine the isolated nodes whose electrical characteristic errors are less than a specified preset range.

[0209] The principle of the above technical solution is that isolated nodes are the more difficult part of the present invention. They are difficult to compare during feature comparison because of the problems of functions, execution logic and connections. Therefore, compared with the complexity of the prior art, the present invention can also perform accurate feature comparison on isolated nodes and determine the corresponding circuit netlist.

[0210] The beneficial effect of the technical solution is that it realizes complex comparison of the characteristics of isolated nodes, thereby ensuring the accuracy of the circuit netlist.

[0211] Embodiment 8:

[0212] As an embodiment of the present invention: the method further includes:

[0213] According to the current-voltage curve, the electrical characteristics are divided into frequency domain characteristics and time domain characteristics; wherein,

[0214] The frequency domain features include spectrum features, power features and coherence function features;

[0215] The time domain characteristics include: mean, correlation coefficient, deviation rate, standard deviation and curve skewness;

[0216] Determine the characteristic points on the corresponding current-voltage curve according to the divided time domain characteristics and frequency domain characteristics;

[0217] A curve feature is generated according to the feature points.

[0218] The principle of the above technical solution is that the present invention also divides the frequency domain characteristics and the time domain characteristics when making a comparison. This is because, within a period, the time domain characteristics determine the functional effects of the characteristic values, while the frequency domain determines the parameter deviation of the nodes. Through the above solution, more accurate curve characteristics can be obtained.

[0219] The beneficial effect of the above technical solution is to obtain more accurate curve characteristics, and achieve the purpose of lower error rate by comparing frequency domain characteristics and time domain characteristics, so that the generated circuit netlist and subsequent detection are more accurate.

[0220] Embodiment 9:

[0221] As an embodiment of the present invention: the method further includes:

[0222] Determine the function parameters of each pin according to the circuit netlist;

[0223] According to the functional parameters, each pin in the circuit netlist is functionally marked;

[0224] According to the functional label, each pin in the circuit netlist is divided into a hierarchy;

[0225] Through the hierarchical division, a multi-level circuit netlist is generated.

[0226] The principle of the above technical solution is that because different pins in the circuit have different functions and different levels, we have another purpose in obtaining the circuit netlist, which is not only to detect faults, but also to quickly determine where the faults are. Therefore, the present invention sets up a hierarchical division based on functional labels.

[0227] The beneficial effect of the above technical solution is that: through hierarchical division based on functional labels, each pin in the circuit netlist can be quickly determined to have the same characteristics as those pins in the netlist, as well as the position of each pin in the circuit.

[0228] Embodiment 10:

[0229] As an embodiment of the present invention: the method further includes:

[0230] Apply random excitation to the circuit under test and obtain the response result;

[0231] Counting the flip probability of each node of the circuit netlist corresponding to the circuit to be tested in the response result; wherein,

[0232] The circuit netlist is a directed graph, the directed graph includes a plurality of vertices, any vertex is an instantiated logic circuit, an input port of a non-instantiated logic circuit, or an output port of a non-instantiated logic circuit; the node is an interconnection line between two vertices;

[0233] Determine, among the nodes, low-probability nodes whose flipping probabilities are lower than a first threshold, and high-probability nodes whose flipping probabilities are not lower than the first threshold;

[0234] For each low-probability node, search for high-probability nodes on the two target paths of the low-probability node; take each two high-probability nodes on the two target paths as a high-probability node combination to obtain each high-probability node combination corresponding to the low-probability node; wherein the two target paths are paths selected from adjacent paths of the path where the low-probability node is located according to a preset rule; the adjacent paths have the same starting vertex as the path where the low-probability node is located;

[0235] For each high-probability node combination, statistics are given in the response result, the combined flip probabilities corresponding to various level combinations of the high-probability node combination, and the flipping of the low-probability nodes corresponding to the high-probability node combination under each level combination;

[0236] When the combined flip probability corresponding to any level combination is less than the second threshold value, and the low-probability node corresponding to the high-probability node combination flips, mark the high-probability node combination and the corresponding low-probability node;

[0237] The low-probability combination composed of each marked high-probability node combination and the corresponding low-probability node is used as the low-probability combination search result;

[0238] Based on the low-probability combination search results, similar pins are preliminarily screened.

[0239] The principle of the above technical solution is that: the present invention uses the first threshold to determine the low-probability node and the high-probability node; then, with the low-probability node as the positioning center, the high-probability node on the two adjacent paths is searched, and the combination flip probabilities corresponding to the various level combinations of the high-probability node combination are counted; when the combination flip probability corresponding to any level combination is less than the second threshold, and the low-probability node corresponding to the high-probability node combination flips, the high-probability node combination and the corresponding low-probability node are marked. Then, the low-probability combination composed of the marked high-probability node combinations and the corresponding low-probability nodes is used as the low-probability combination search result. It can be seen that the low-probability combination obtained by the present invention comprehensively considers the mutual restraint relationship of the logical functions of multiple nodes when the circuit is actually working, and effectively detects the same type of pins.

[0240] The beneficial effect of the above technical solution is that pins of the same type are preliminarily screened, thereby making feature comparison more accurate.

[0241] As a practical embodiment, the present invention has also set up the following experiments during verification:

[0242] Assume that the circuit board has a total of 5000 component pins; every 5 pins are short-circuited together to form a node, totaling 1000 nodes; there are 200 different ASA curves for the 1000 nodes - on average, 5 nodes have the same ASA curve.

[0243] 1. Calculate the number of tests required using only a multimeter

[0244] When using only a multimeter, without the help of the node ASA curve, the test process is usually as follows:

[0245] 1. The first step is to test the connection between a pin and the other 4999 pins, a total of 4999 times. Based on the assumption that each node is associated with 5 pins, we write it as:

[0246] 5000-1–0x 5=4999 times

[0247] 2. In the second step, the 5 pins that have been confirmed to be connected are no longer involved in the subsequent calculations. They are subtracted from the total number of pins, leaving 4995 pins. Test the connection between one pin in 4995 and the other 4994, a total of 4994 times, written as:

[0248] 5000-1–1x 5=4994

[0249] 3. Similar to the second step, there are:

[0250] 5000–1–2 x 5 = 4989

[0251] …

[0252] 4. Number of tests to step n:

[0253] 5000–1-(n-1) x 5

[0254] 5. The number of tests in the last step should be less than or equal to 5 times. The total number of test steps can be calculated from the above formula:

[0255] 5000–1-(n-1) x 5<=5, about 1000 steps

[0256] 6. Add up the number of times required for 1000 steps, which is the total number of times

[0257] 5000–1–0x 5

[0258] +5000–1–1x 5

[0259] +5000–1–2x 5

[0260] ………

[0261] +5000–1–1000x 5

[0262] 1000x(5000–1)–5x(1+2+3+……+1000)

[0263] =5,000,000–1000–5x 500,500=4,999,000–2,502,500=2,496,500 (times)

[0264] 2. Calculate the number of tests using a multimeter with the support of the Huineng netlist

[0265] According to the given conditions, each node consists of 5 pins; the curves of every 5 nodes are the same; therefore, the curves of every 25 pins are the same (5x 5=25);

[0266] When searching for curves with software, the pins of different curves do not affect each other, which means that the whole board can be imagined as being made up of 5000 / 25=200 small boards, and when processing one small board, it will not have any impact on other small boards. You can process all the nodes of one small board first, and then process all the nodes of the next small board; or you can randomly process a node on any small board, and then process a node on another small board, until all the pins are processed, the result is the same.

[0267] According to the assumption, all the small boards are the same, so we only need to analyze the number of times required for one small board and then sum them up to get the total number of times.

[0268] 1. The number of times required for a small board

[0269] Since the curves of all pins in the small board are exactly the same, the ASA curve is not needed at this time. The problem can be solved by using only a multimeter test method: (see 1)

[0270] 25–1–0x 5=24

[0271] +25–1–1x 5=19

[0272] +25–1–2x 5=14

[0273] +25–1–3x 5=9

[0274] +25–1–4x 5=4

[0275] =70 (times)

[0276] 2. Total times = 70 x 200 = 14,000 times

[0277] 14,000 / 2,496,500=1 / 178—> The number of tests is reduced to one-187th of that in method one.

[0278] 3. Of course, testing is also required when establishing the curve library. Each pin learning and comparison needs to be tested once, for a total of 10,000 times:

[0279] 14,000+10,000=24,000; 24,000 / 2496500 is reduced to about 1 / 104 of method one.

[0280] The above is just a theoretical estimate. In actual operation, human experience is more likely to play a role when only a multimeter is used. In addition, the type and structure of the board will also affect the number of tests. However, it is conservatively estimated that with the support of the "Huineng" netlist function, it should be reliable to reduce the testing workload to an average of a few tenths of that using only a multimeter, or even less.

[0281] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for obtaining a circuit netlist by using node electrical characteristics, characterized in that: include: Step 1: Obtain the electrical characteristics of each pin on the circuit board under test in advance, and determine the empty pin set of the circuit board under test; Step 2: Select a comparison pin in the empty pin set, and compare the electrical characteristics of all pins in the empty pin set with the comparison pin, determine similar pins whose electrical characteristic errors are less than a specified preset range, and construct a node search netlist based on the similar pins; Step 3: Test the connection status of the comparison pins from the search netlist, determine the actual connection pins, and remove the pins that are not actually connected to obtain the node netlist; Step 4: Delete all pins in the node netlist from the empty pin set; Step 5: When the empty pin set is empty, the circuit netlist is generated; Step 6: When the empty foot set is not empty, repeat steps 2 to 4.

2. The method for obtaining a circuit netlist by using node electrical characteristics according to claim 1, further comprising: The current and voltage of each pin on the circuit board under test are detected by a preset test device to determine the current and voltage curve; wherein, The current-voltage curve includes: an ASA / VI curve; According to the current-voltage curve, a curve feature is determined, and the curve feature is used as an electrical feature.

3. A method for obtaining a circuit netlist by using node electrical characteristics as claimed in claim 1, characterized in that: The method further comprises: Determine the pinout of any isolated node; Determine the isolated electrical characteristics of the pin of the isolated node, and compare the isolated electrical characteristics with the electrical characteristics of all isolated pins that are not in the node netlist, and record the target isolated pins whose error values ​​are less than the specified preset range; Generate a search netlist according to the target isolated pins; It is determined whether the search netlist has similar characteristic pins directly connected to the pins of the isolated node, and pins that are not directly connected are removed from the search netlist to generate a node netlist of the node.

4. A method for obtaining a circuit netlist by using node electrical characteristics as claimed in claim 2, characterized in that: The method further comprises: Based on the ASA curve / VI curve, determine the circuit parameters of each pin at different times; among them, The circuit parameters include: voltage value, resistance value, current value and zero point test value; A circuit curve diagram of each pin is generated according to the circuit parameters; wherein, The circuit curve graph includes: a voltage curve graph, a current curve graph, a resistance curve graph and a zero point curve graph; Extracting the curve features of each circuit curve graph respectively, and determining the curve features of each pin; Compare the curve features of different pins one by one to determine the set of pins whose similarity is within a specified preset range; A node netlist is constructed through the pin set.

5. A method for obtaining a circuit netlist by using node electrical characteristics as claimed in claim 1, characterized in that: The method further comprises: Obtain the electrical characteristics of each pin and determine the change range of the electrical characteristics within a cycle; Determining a value range of the electrical characteristic according to the variation interval; According to the value range, the constraint conditions of the electrical characteristics are determined; wherein, The constraints include: type constraints, cycle start constraints, cycle end constraints, output parameter constraints and input equivalence constraints; The specified preset range is set according to the constraint condition.

6. A method for obtaining a circuit netlist by using node electrical characteristics as claimed in claim 1, characterized in that: The method further comprises: The circuit netlist is regularly optimized; wherein, The regularity optimization includes: pin type optimization, pin distribution optimization and pin function optimization; After regularity optimization, determine the execution logic of each pin in the circuit netlist; According to the execution logic, a corresponding circuit library is configured and circuit diagram matching is performed; According to the circuit library, verify the logic function of the circuit netlist to determine the accuracy of the circuit netlist; When the accuracy is within a preset accuracy threshold, the corresponding circuit netlist is output.

7. A method for obtaining a circuit netlist by using node electrical characteristics as claimed in claim 1, characterized in that: The method further comprises: According to the node netlist, a set of isolated nodes on the circuit board under test is obtained; Determining a function set of each isolated node according to the isolated node set; According to the function set, determine whether there are isolated nodes with similar functions, and use the isolated nodes with similar functions as a feature comparison set, and mark the isolated nodes that do not have similar functions individually; Perform continuous feature comparison on isolated nodes in the feature comparison set; wherein, The continuous feature comparison includes: Respectively obtaining electrical characteristics of each isolated node in the characteristic comparison set; According to the operation cycle of each isolated node, the electrical characteristic parameters of each isolated node at each moment in the operation cycle are continuously compared; determining an average error parameter during the operation period based on the continuous comparison; Determine, based on the average error parameter, whether the electrical characteristic error in the characteristic comparison set is less than a specified preset range, and determine the corresponding isolated node; Performing single feature comparison on the isolated nodes of the single marker; wherein, The single feature comparison comprises the following steps: Different types of electrical characteristics of isolated nodes with single markers are obtained respectively; For each different type of electrical characteristic, corresponding electrical characteristic parameters are determined respectively; The electrical characteristics of different types are compared with the electrical characteristics of any isolated nodes in turn to determine the isolated nodes whose electrical characteristic errors are less than a specified preset range.

8. A method for obtaining a circuit netlist by using node electrical characteristics as claimed in claim 2, characterized in that: The method further comprises: According to the current-voltage curve, the electrical characteristics are divided into frequency domain characteristics and time domain characteristics; wherein, The frequency domain features include spectrum features, power features and coherence function features; The time domain characteristics include: mean, correlation coefficient, deviation rate, standard deviation and curve skewness; Determine the characteristic points on the corresponding current-voltage curve according to the divided time domain characteristics and frequency domain characteristics; A curve feature is generated according to the feature points.

9. A method for obtaining a circuit netlist by using node electrical characteristics as claimed in claim 1, characterized in that: The method further comprises: Determine the function parameters of each pin according to the circuit netlist; According to the functional parameters, each pin in the circuit netlist is functionally marked; According to the functional label, each pin in the circuit netlist is divided into a hierarchy; Through the hierarchical division, a multi-level circuit netlist is generated.

10. The method for obtaining a circuit netlist by using node electrical characteristics as claimed in claim 1, characterized in that: The method further comprises: Apply random excitation to the circuit under test and obtain the response result; Counting the flip probability of each node of the circuit netlist corresponding to the circuit to be tested in the response result; wherein, The circuit netlist is a directed graph, the directed graph includes a plurality of vertices, any vertex is an instantiated logic circuit, an input port of a non-instantiated logic circuit, or an output port of a non-instantiated logic circuit; the node is an interconnection line between two vertices; Determine, among the nodes, low-probability nodes whose flipping probabilities are lower than a first threshold, and high-probability nodes whose flipping probabilities are not lower than the first threshold; For each low-probability node, search for high-probability nodes on the two target paths of the low-probability node; take each two high-probability nodes on the two target paths as a high-probability node combination to obtain each high-probability node combination corresponding to the low-probability node; wherein the two target paths are paths selected from adjacent paths of the path where the low-probability node is located according to a preset rule; the adjacent paths have the same starting vertex as the path where the low-probability node is located; For each high-probability node combination, statistics are given in the response result, the combined flip probabilities corresponding to various level combinations of the high-probability node combination, and the flipping of the low-probability nodes corresponding to the high-probability node combination under each level combination; When the combined flip probability corresponding to any level combination is less than the second threshold value, and the low-probability node corresponding to the high-probability node combination flips, mark the high-probability node combination and the corresponding low-probability node; The low-probability combination composed of each marked high-probability node combination and the corresponding low-probability node is used as the low-probability combination search result; Based on the low-probability combination search results, similar pins are preliminarily screened.

Citation Information

Cited By

  • Circuit diagram analysis method for automatically generating analog circuit netlist

    CN119918470A

  • A circuit diagram analysis method for automatically generating a netlist of an analog circuit

    CN119918470B