High-impedance node detection method, system and circuit simulation device
By obtaining the conduction matrix and dividing the node groups during the circuit simulation process, and combining the reference nodes to identify the high-impedance state group, the problem of low efficiency of traditional high-impedance state node detection is solved, and fast and accurate high-impedance state node detection is achieved.
Patent Information
- Application Number
- CN202311719467.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2043-12-13
AI Technical Summary
Traditional high-impedance node detection algorithms are computationally intensive, inefficient, and take up a lot of time in transient simulations.
By obtaining the conduction matrix during circuit simulation, the nodes that are mutually conductive are divided into the same group, and the non-conductive nodes are grouped independently. The reference node is used to determine the high-impedance group and the non-high-impedance group, and the matrix is incrementally updated to detect the high-impedance nodes in real time.
The computational complexity of high-impedance node detection is reduced, detection efficiency is improved, detection time is saved, and the timeliness of detection is improved. The detection speed can be increased by more than 3 times.
Smart Images

Figure CN118150918B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit simulation technology, and in particular to a method and system for detecting high-impedance nodes, a circuit simulation device, and a readable storage medium. Background Art
[0002] A high-impedance node is a node whose resistance to the circuit ground is very large (e.g., greater than 10 12 Ohm) nodes. High-impedance nodes are insulated from other circuit nodes, and their voltage values are uncontrolled and random. If these high-impedance nodes are connected to the gates of field-effect transistors to control other circuits, it is easy to cause random behavior in the circuits controlled by these nodes, affecting the simulation results of the circuit modules where the nodes are located. High-impedance nodes in a circuit can be caused by switching of the circuit's working state or circuit design defects, and are important detection content in circuit simulation verification. Traditional high-impedance detection technology is based on circuit connection relationships and device conduction conditions. Starting from a point, it searches for a path to the ground point. If there is no conductive path to the ground point, then it is a high-impedance node.
[0003] Traditionally, detecting high-impedance nodes requires selecting a node as a starting point. The process then traverses all conductive paths to determine whether they reach the ground point, ultimately determining whether the currently selected node is high-impedance. The specific method involves calculating the resistance between each pin of each circuit component. When the resistance between two pins is less than a threshold, the pair is considered conductive, and the node connected by these two pins has a conductive path. This process finds all pairs of nodes with a conductive path. Starting from a node, the system checks whether the current node has a conductive path to another node. If so, the system continues searching for these new nodes until all connected nodes have been traversed. If none of these connected nodes contain a reference ground node, the initial starting point and its connected nodes are high-impedance nodes. Determining whether all nodes are high-impedance requires repeating this process for all nodes. This algorithm suffers from high computational complexity and low efficiency. Furthermore, checking each node in transient simulations consumes a significant amount of time, significantly increasing circuit simulation time. Summary of the Invention
[0004] In view of this, the present application provides a high-impedance node detection method, system, circuit simulation device and readable storage medium to solve the problems of large computational complexity and low efficiency of traditional high-impedance node detection solutions.
[0005] The present application provides a method for detecting a high-impedance node, comprising:
[0006] Obtaining a conduction matrix generated during circuit simulation, wherein each row and each column of the conduction matrix corresponds to a node, and when a matrix element is a first identification value, it indicates that the node corresponding to the row and the node corresponding to the column are conductive;
[0007] According to the conduction matrix, nodes that are mutually conductive are divided into the same group, and nodes that are not conductive are grouped independently to obtain multiple groups of nodes;
[0008] Among the multiple groups of nodes, at least one group of nodes including the reference node is determined as a non-high-impedance group, and the other groups of nodes are determined as high-impedance groups.
[0009] Optionally, obtaining the conduction matrix generated during the circuit simulation process includes: obtaining the node conduction state of each node during the simulation process at each simulation moment; updating the conduction matrix according to the node conduction state, so as to obtain the conduction matrix in real time at the detection time.
[0010] Optionally, updating the conduction matrix according to the conduction state of the node includes: identifying the node whose conduction state has changed according to the conduction state of the node to obtain an updated node; and updating the value of the corresponding matrix element in the conduction matrix according to the conduction state of the updated node at the corresponding simulation moment.
[0011] Optionally, before obtaining the node conduction state of each node during the simulation process at each simulation moment, the obtaining of the conduction matrix generated during the circuit simulation process also includes: constructing an initial conduction matrix to update the initial conduction matrix at the first simulation moment according to the node conduction state at the simulation moment to obtain the conduction matrix at the first simulation moment.
[0012] Optionally, in the initial conduction matrix, each matrix element is set to a second identification value.
[0013] Optionally, the first identification value is 1; the second identification value is 0.
[0014] Optionally, the reference node includes a reference ground node.
[0015] The present application also provides a high-impedance node detection system, the high-impedance node detection system comprising:
[0016] An acquisition module is used to acquire a conduction matrix generated during a circuit simulation process, wherein each row and each column of the conduction matrix corresponds to a node, and when a matrix element is a first identification value, it indicates that the node corresponding to the row and the node corresponding to the column are conductive;
[0017] a division module for dividing mutually connected nodes into the same group according to the conduction matrix, and independently grouping nodes that are not connected to each other to obtain multiple groups of nodes;
[0018] The determining module is configured to determine, among the multiple groups of nodes, at least one group of nodes including the reference node as a non-high-impedance group, and determine the other groups of nodes as high-impedance groups.
[0019] The present application also provides a circuit simulation device, which includes: a memory and a processor, wherein the memory stores a detection program for high-impedance nodes, and when the detection program for high-impedance nodes is executed by the processor, the steps of any of the above high-impedance node detection methods are implemented.
[0020] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of any of the above methods for detecting a high-impedance node are implemented.
[0021] The above-mentioned high-impedance node detection method, system, circuit simulation device and readable storage medium of the present application can obtain a conduction matrix for recording the conduction status between each node of the simulated circuit during the circuit simulation process. According to the conduction matrix, the nodes that are mutually conductive are divided into the same group, and the other nodes without conductive nodes are grouped independently to obtain multiple groups of nodes. Then, at least one group of nodes including the reference node is determined as a non-high-impedance group, and the nodes in the other groups are determined as high-impedance groups. The nodes included in the above-mentioned high-impedance group are high-impedance nodes. In this way, the high-impedance nodes of the simulated circuit at each simulation moment can be quickly identified, which can reduce the amount of calculation in the high-impedance node detection process, improve detection efficiency, and save detection time.
[0022] Furthermore, the above-mentioned high-impedance node detection method can use incremental updates to update the conduction matrix in real time at each simulation moment, which can reduce the amount of calculation during the update process. It can also detect the high-impedance nodes of the simulated circuit in real time based on the updated conduction matrix, which can further improve the timeliness of detecting high-impedance nodes. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 1 is a flow chart of a method for detecting a high-impedance node according to an embodiment of the present application;
[0025] Figure 2 This is a schematic diagram of a conduction matrix according to an embodiment of the present application;
[0026] Figure 3a 、 Figure 3b and Figure 3c is a schematic diagram of a conduction matrix according to another embodiment of the present application;
[0027] Figure 4 2 is a schematic diagram of the structure of a high-impedance node detection system according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following, in conjunction with the accompanying drawings, clearly and completely describes the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.
[0029] The first aspect of the present application provides a method for detecting a high-impedance node, which can be executed on a terminal device such as a circuit simulation device for performing circuit simulation. Figure 1 As shown, the method for detecting a high-impedance node includes S110 to S130.
[0030] S110 , obtaining a conduction matrix generated during circuit simulation, wherein each row and each column of the conduction matrix corresponds to a node respectively, and when a matrix element is a first identification value, it indicates that the node corresponding to the row and the node corresponding to the column are conductive.
[0031] Optionally, the first identification value may be a non-zero value, for example, the first identification value may be 1, etc. When the first identification value is 1, the conduction matrix may refer to Figure 2 As shown, Figure 2 The conduction status of nodes between the 1st node and the 8th node in the simulated circuit can be recorded. Figure 2 As shown, the matrix element in the 1st row and 4th column is 1, and the matrix element in the 4th row and 1st column is 1, indicating that the 1st node and the 4th node of the simulated circuit are conductive at the corresponding simulation time; the matrix element in the 5th row and 2nd column is 1, and the matrix element in the 2nd row and 5th column is 1, indicating that the 5th node and the 2nd node of the simulated circuit are conductive at the corresponding simulation time; the matrix element in the 5th row and 7th column is 1, and the matrix element in the 7th row and 5th column is 1, indicating that the 5th node and the 7th node of the simulated circuit are conductive at the corresponding simulation time. Furthermore, in the above conductive matrix, the matrix element between two nodes that have no conductive relationship can be other identification values besides the first identification value, so that the value of the matrix element can be used to quickly determine whether the corresponding nodes are conductive.
[0032] S120 , dividing mutually conductive nodes into the same group according to the conductive matrix, and independently grouping nodes that are not conductive, to obtain multiple groups of nodes.
[0033] Specifically, the above S120 can identify mutually conductive nodes according to the values of the matrix elements of the conductive matrix, divide the mutually conductive nodes into the same group, and divide the nodes that are not conductive into groups independently to obtain multiple groups of nodes. Figure 2 As an example of the conduction matrix shown in the figure, the node division process is described in detail. Figure 2 The values of the matrix elements of the conduction matrix shown can divide the first node and the fourth node into one group, the second node, the fifth node and the seventh node into one group, and the other nodes independently form their own group, so that multiple groups of nodes can be obtained.
[0034] S130 , among the multiple groups of nodes, determine at least one group of nodes including the reference node as a non-high-impedance group, and determine the other groups of nodes as high-impedance groups, and the nodes included in the high-impedance groups are high-impedance nodes.
[0035] Optionally, the reference nodes include reference ground nodes and the like for defining nodes in a high-impedance state in the simulated circuit.
[0036] The above-mentioned high-impedance node detection method can obtain a conduction matrix for recording the conduction state between each node of the simulated circuit during the circuit simulation process. According to the conduction matrix, the nodes that are mutually conductive are divided into the same group, and other nodes without conductive nodes are independently grouped to obtain multiple groups of nodes. Then, at least one group of nodes including the reference node is determined as a non-high-impedance group, and the other groups of nodes are determined as high-impedance groups. The nodes included in the above-mentioned high-impedance group are high-impedance nodes. In this way, the high-impedance nodes of the simulated circuit at the corresponding simulation time can be quickly identified, which can reduce the amount of calculation in the high-impedance node detection process, improve detection efficiency, and save detection time.
[0037] In one embodiment, obtaining a conduction matrix generated during circuit simulation includes: obtaining the conduction state of each node during the simulation at each simulation moment; updating the conduction matrix based on the conduction state to obtain the conduction matrix in real time at the detection time; dividing the nodes in the simulated circuit into multiple groups of nodes based on the values of the matrix elements in the conduction matrix, and determining at least one group of nodes including the reference node as a non-high-impedance group, and determining the other groups of nodes as high-impedance groups, thereby detecting high-impedance nodes in the simulated circuit in real time. Optionally, this embodiment can obtain electrical signals such as currents between each node during the simulation process. If the current between two nodes is greater than a preset current threshold, it can be determined that the two nodes are conductive; if the current between two nodes is less than or equal to the current threshold, it can be determined that the two nodes are disconnected (not conductive).
[0038] Optionally, the detection timing is a timing when high-impedance node detection is required. The detection timing may be determined based on a detection requirement input by a user, for example, it may be at least one simulation time set by the user.
[0039] Furthermore, the circuit simulation device can update the conductivity matrix at each simulation moment, extract the updated conductivity matrix, and identify and detect high-impedance nodes in the simulated circuit based on the extracted conductivity matrix, thereby detecting high-impedance nodes in the simulated circuit in real time. Based on the high-impedance node detection results at multiple consecutive simulation moments, the circuit simulation device can identify risky paths in the simulated circuit and further analyze relevant performance characteristics of the simulated circuit.
[0040] In one example, updating the conductivity matrix based on the node conductivity states includes: identifying nodes whose conductivity states have changed based on the node conductivity states to obtain updated nodes; and updating the values of corresponding matrix elements in the conductivity matrix based on the conductivity states of the updated nodes at the corresponding simulation time, so that the updated conductivity matrix accurately represents the conductivity state of the simulated circuit at the corresponding simulation time. This example uses incremental updating, that is, only updating nodes whose conductivity states have changed, which can reduce the amount of computation during the update process.
[0041] Specifically, if the matrix element is the second identification value, it indicates that the node corresponding to the row and the node corresponding to the column are not conductive. The above-mentioned updating of the values of the corresponding matrix elements in the conductive matrix according to the conductive state of the updated node at the corresponding simulation moment includes: if two nodes change from the conductive state to the non-conductive state, then in the conductive matrix, the matrix elements corresponding to the two nodes are modified from the first identification value to the second identification value; if two nodes change from the non-conductive state to the conductive state, then in the conductive matrix, the matrix elements corresponding to the two nodes are modified from the second identification value to the first identification value. If the first identification value is 1 and the second identification value is 0, the conductive matrix reference value of the previous simulation moment is 0. Figure 3a If at the current simulation moment, the conduction state between the 1st node and the 4th node changes to a non-conducting state, then in the conduction matrix, the matrix elements in the 1st row and 4th column and the 4th row and 1st column are updated from the original 1 to 0, and the Figure 3b In addition, if at the current simulation moment, the conduction state between the 3rd node and the 4th node becomes the conduction state, then in the conduction matrix, the matrix elements of the 3rd row and 4th column and the 4th row and 3rd column are updated from the original 0 to 1, and the Figure 3c shown.
[0042] In one example, before obtaining the node conduction state of each node during the simulation process at each simulation moment, the obtaining of the conduction matrix generated during the circuit simulation process also includes: constructing an initial conduction matrix to update the initial conduction matrix at the first simulation moment according to the node conduction state at the first simulation moment to obtain the conduction matrix at the first simulation moment, so that at the second simulation moment, the conduction matrix at the first simulation moment can be updated according to the corresponding conduction state to obtain the conduction matrix at the second simulation moment, and so on, at each subsequent simulation moment, the conduction matrix at the previous simulation moment is updated according to the corresponding node conduction state, the corresponding conduction matrix is obtained in real time at each simulation moment, and the high-impedance nodes of the simulated circuit are detected in real time according to the corresponding conduction matrix.
[0043] Optionally, in the initial conduction matrix, each matrix element is set to a second identification value, which can indicate a disconnection between the corresponding two nodes. The first identification value is 1 and the second identification value is 0, so that the values of the matrix elements can more simply and intuitively represent the conduction state between each node.
[0044] In the above method for detecting high-impedance nodes, a conduction matrix for recording the conduction state between each node of the simulated circuit can be obtained during the circuit simulation process. According to the conduction matrix, the nodes that are mutually conductive are divided into the same group, and the other nodes without conductive nodes are grouped independently to obtain multiple groups of nodes. Then, at least one group of nodes including the reference node is determined as a non-high-impedance group, and the other groups of nodes are determined as high-impedance groups. The nodes included in the above high-impedance group are high-impedance nodes, so that the high-impedance nodes of the simulated circuit at the corresponding simulation moment can be quickly identified, which can reduce the amount of calculation in the high-impedance node detection process, improve detection efficiency, and save detection time; further, the above method for detecting high-impedance nodes can use incremental updates to update the conduction matrix in real time at each simulation moment, which can reduce the amount of calculation in the update process, and can also detect the high-impedance nodes of the simulated circuit in real time based on the updated conduction matrix, which can further improve the timeliness of detecting high-impedance nodes.
[0045] The inventors conducted a comparative analysis of the high-impedance node detection method provided by this application and the traditional high-impedance node detection algorithm, and found that compared with the traditional high-impedance node detection algorithm, under the same test conditions, the corresponding detection speed of this application can be increased by more than 3 times, and the detection results are the same as those of the traditional high-impedance node detection algorithm. It can be seen that this application can effectively improve the corresponding detection efficiency.
[0046] The second aspect of the present application provides a high-impedance node detection system, which can be provided in a circuit simulation device. Figure 4 As shown, the detection system of the high-impedance node includes:
[0047] An acquisition module 110 is configured to acquire a conduction matrix generated during circuit simulation, wherein each row and each column of the conduction matrix corresponds to a node, and when a matrix element is a first identification value, it indicates that the node corresponding to the row and the node corresponding to the column are conductive;
[0048] A division module 120 is configured to divide mutually connected nodes into the same group according to the conduction matrix, and to group nodes that are not connected into independent groups, thereby obtaining multiple groups of nodes;
[0049] The determining module 130 is configured to determine, among the multiple groups of nodes, at least one group of nodes including the reference node as a non-high-impedance group, and determine the other groups of nodes as high-impedance groups.
[0050] The specific definition of the high-impedance node detection system can be found in the definition of the high-impedance node detection method above, and will not be repeated here. Each module in the above-mentioned high-impedance node detection system can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the computing module in the relevant computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the computing module can call and execute the operations corresponding to the above-mentioned units.
[0051] The present application also provides a circuit simulation device, which may include: a memory and a processor, wherein the memory stores a high-impedance node detection program, and when the high-impedance node detection program is executed by the processor, the steps of the high-impedance node detection method described in any of the above embodiments are implemented.
[0052] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for detecting a high-impedance node as described in any of the above embodiments are implemented.
[0053] Although the present application has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art based on reading and understanding this specification and the accompanying drawings. The present application includes all such modifications and variations and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the above-mentioned components, the terms used to describe such components are intended to correspond to any component (unless otherwise indicated) that performs the specified function of the component (e.g., it is functionally equivalent), even if it is not structurally equivalent to the disclosed structure that performs the function in the exemplary implementation of this specification shown herein.
[0054] That is, the above description is merely an embodiment of the present application and does not limit the patent scope of the present application. Any equivalent structural or equivalent process transformations made using the contents of the description and drawings of this application, such as the mutual combination of technical features between the various embodiments, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.
[0055] In addition, in the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, for structural elements with the same or similar characteristics, the present application may use the same or different reference numerals to identify them. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the present application, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0056] In this application, the word "exemplary" is used to mean "serving as an example, illustration or description". Any embodiment described in this application as "exemplary" is not necessarily to be construed as being more preferred or more advantageous than other embodiments. The above description is provided to enable any person skilled in the art to implement and use the present application. In the above description, various details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other embodiments, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
Claims
1. A method for detecting a high-impedance node, characterized in that: The high-impedance node detection method includes: Obtaining a conduction matrix generated during circuit simulation, wherein each row and each column of the conduction matrix corresponds to a node, and when a matrix element is a first identification value, it indicates that the node corresponding to the row and the node corresponding to the column are conductive; According to the conduction matrix, nodes that are mutually conductive are divided into the same group, and nodes that are not conductive are grouped independently to obtain multiple groups of nodes; Among the multiple groups of nodes, the group nodes including the reference node are determined as a non-high-impedance group, and the other group nodes are determined as a high-impedance group, and there is at least one group including the reference node.
2. The method for detecting a high-impedance node according to claim 1, wherein: The obtaining of a conduction matrix generated during the circuit simulation process includes: Obtain the node conduction state of each node during the simulation process at each simulation moment; The conduction matrix is updated according to the conduction state of the node, so as to obtain the conduction matrix in real time at a detection opportunity.
3. The method for detecting a high-impedance node according to claim 2, wherein: The updating of the conduction matrix according to the conduction state of the node includes: Identify nodes whose conduction states have changed according to the conduction states of the nodes, and obtain updated nodes; The value of the corresponding matrix element in the conduction matrix is updated according to the conduction state of the update node at the corresponding simulation time.
4. The method for detecting a high-impedance node according to claim 2, wherein: Before obtaining the node conduction state of each node during the simulation process at each simulation moment, the obtaining of the conduction matrix generated during the circuit simulation process further includes: An initial conduction matrix is constructed to update the initial conduction matrix at a first simulation moment according to the conduction state of the nodes at the simulation moment, thereby obtaining a conduction matrix at the first simulation moment.
5. The method for detecting a high-impedance node according to claim 4, wherein: In the initial conduction matrix, each matrix element is set to a second identification value.
6. The method for detecting a high-impedance node according to claim 5, wherein: The first identification value is 1; the second identification value is 0.
7. The method for detecting a high-impedance node according to claim 5, wherein: The reference node includes a reference ground node.
8. A high-impedance node detection system, characterized in that: The high-impedance node detection system includes: An acquisition module is used to acquire a conduction matrix generated during a circuit simulation process, wherein each row and each column of the conduction matrix corresponds to a node, and when a matrix element is a first identification value, it indicates that the node corresponding to the row and the node corresponding to the column are conductive; a division module for dividing mutually connected nodes into the same group according to the conduction matrix, and independently grouping nodes that are not connected to each other to obtain multiple groups of nodes; The determining module is configured to determine, among the plurality of groups of nodes, the group nodes including the reference node as a non-high-impedance group and the other group nodes as a high-impedance group, wherein the group including the reference node is at least one group.
9. A circuit simulation device, characterized in that: The circuit simulation device includes: a memory and a processor, wherein the memory stores a high-impedance node detection program, and when the high-impedance node detection program is executed by the processor, the steps of the high-impedance node detection method described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for detecting a high-impedance node according to any one of claims 1 to 7.
Citation Information
Patent Citations
Detection system and application of connection line from internal top layer to external top layer of chip
CN111859845A
Circuit inspection method and device, electronic equipment and storage medium
CN114091387A