Power supply network simulation model extraction method and extraction device based on undirected cyclic graph
The extraction method of power network simulation model through undirected cyclic graph solves the problems of unique model logic design and poor reusability in traditional methods, and realizes the construction of efficient and universal power network model, which is suitable for multiple projects and environments.
Patent Information
- Application Number
- CN202410806037.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The traditional power network model setting method is highly dependent on physical properties, resulting in a unique logical design for each model, which is difficult to reuse in different projects or scenarios, and has low complexity and extraction efficiency.
The power network simulation model extraction method based on undirected cyclic graph is used to construct the undirected cyclic graph topology by extracting the power network and components from the netlist file, perform deep traversal and backtracking access, and generate the power network tree topology.
It improves the reusability and construction efficiency of the power network model, reduces development costs, enhances the construction success rate, and is suitable for multiple projects and environments.
Smart Images

Figure CN118378394B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial simulation, and more specifically, to a method and device for extracting a power supply network simulation model based on an undirected cyclic graph. Background Art
[0002] In power network simulation, setting up the power network model is a core step in the simulation process. These models are simulation topologies extracted from actual hardware and do not contain specific physical properties such as PCB dielectrics, copper cladding, and through-holes. Once the power network model and its topological relationships are extracted, they play a vital role in the pre- and post-processing of the simulation process. These models can clearly represent the unidirectional connection relationship between devices, so that the source and load pins in the same power network can be quickly identified and located in the pre-processing of the simulation. In the post-processing stage, based on these topological relationships, the voltage drop and power between the two models can be accurately calculated. For large server boards, the complexity of the power supply circuit makes the traditional setting method extremely time-consuming. Therefore, R&D personnel usually import the power network model in a tabular form.
[0003] However, this method is highly dependent on the physical properties of each model, which makes the logical design of each model unique and difficult to reuse in different projects or scenarios. In addition, extracting these model information usually requires a deep understanding of the internal working principles and details of each model, which increases the complexity and difficulty of extraction. Moreover, dealing with a large number of complex physical properties also reduces the extraction efficiency of traditional methods. Summary of the invention
[0004] The present invention provides a power supply network simulation model extraction method and extraction device based on an undirected cyclic graph, aiming to solve the problem of complex settings when the power supply network is first constructed in the form of a table, overcome the limitation that the logic of each model is unique and difficult to reuse in different projects or scenarios, and improve the versatility and effectiveness of constructing the power supply network.
[0005] To achieve the above object, the present invention provides a method and device for extracting a power network simulation model based on an undirected cyclic graph, comprising:
[0006] Step S1, extracting all power networks, power components and power network pin files from the netlist file;
[0007] Step S2, the user sets screening conditions according to requirements to screen out the required power components;
[0008] Step S3, constructing a complete topology of an undirected cyclic graph based on the power components, wherein the power components are nodes and the power networks are edges;
[0009] Step S4, splitting the power supply network into multiple subnets according to whether they have connectivity;
[0010] Step S5, determine the starting point of the power supply component of the required power supply network, assign weights to the nodes of the undirected cyclic graph, perform a weight-based depth traversal and backtracking access on the undirected cyclic graph to extract a single or multiple undirected cyclic graphs of actual power supply networks.
[0011] In one embodiment, in step S2, in the power network file, various functional devices are named in a fixed format, the power source end is constructed for the pins of a specific power component specified by the user, and the name and resistance value of the resistor or inductor device are screened when the user screens.
[0012] In one embodiment, in step S3, all power components are visited to find different power components with the same power network, a node is generated for each power component, and edges are generated for nodes with the same power network.
[0013] In one embodiment, in step S4, the power supply components with connectivity are split into one subnet, and the power supply components without connectivity are different subnets.
[0014] In one embodiment, in step S5, the component starting point of the power network is determined, the weights of all power paths are assigned to 1, the weights of the ground network paths are assigned to infinity, and the minimum distance from each power component to the component starting point is obtained.
[0015] In one embodiment, the depth traversal includes a first depth traversal and a second depth traversal, starting from the component starting point, and traversing according to the weight. The first depth traversal rule is:
[0016] Step S511, only access vertices whose weight is greater than itself;
[0017] Step S512, preferentially visit the vertices whose weight is 1 greater than its own;
[0018] Among them, if you return to the starting point, collect all the power components and edges along the way, and set the color of the power components and edges to gray, indicating that they have been visited, otherwise roll back until the traversal is completed.
[0019] In one embodiment, the second depth traversal rule is:
[0020] Step S521, convert all gray edges into black edges, and gray vertices into black vertices;
[0021] Step S522, sort all outgoing edges, first visit white edges, then visit gray edges, and then visit black edges;
[0022] Step S523, sorting all adjacent vertices, and giving priority to accessing vertices with higher weights;
[0023] Step S524, if a used vertex is accessed, collect the vertex and edge and turn them gray;
[0024] If the vertex has just been collected and has other adjacent black vertices, it will not be collected again;
[0025] If no used vertex is accessed, return to step S521;
[0026] Step S525, remove the edges pointing to the starting point of the component from the collected edges to generate an undirected cyclic graph.
[0027] A power supply network simulation model extraction device based on an undirected cyclic graph comprises a memory, a processor and a computer program stored in the memory, wherein the processor implements a power supply network simulation model extraction method based on an undirected cyclic graph when executing the computer program.
[0028] A computer-readable medium stores a computer program, and when the computer program is executed by a processor, a method for extracting a power supply network simulation model based on an undirected cyclic graph is implemented.
[0029] A computer program product comprises a computer program. When the computer program is executed by a processor, a method for extracting a power supply network simulation model based on an undirected cyclic graph is implemented.
[0030] The present invention has the following beneficial effects:
[0031] 1. High reusability: This technology abstracts all physical models into a graph topology, constructs an undirected cyclic graph, and then extracts the undirected cyclic graph to generate a power network tree topology. This graph-based approach makes it possible to reuse the same graph structure and algorithm in different projects or scenarios. It can be reused in multiple projects or environments without a lot of modification or redesign, thereby improving work efficiency and reducing development costs.
[0032] 2. Short extraction time: Compared with the traditional method of extracting power network settings using the physical characteristics of the model, this technology extracts through the topological structure of the graph and can quickly generate the power network tree topology.
[0033] 3. Effectiveness: The present invention constructs a topological structure and, after two deep traversals, filters out invalid components in the power network topology, thereby improving the success rate of power network construction.
[0034] 4. Strong versatility: It strips away physical characteristics to the greatest extent and extracts the power network from the topology structure, which is also applicable to the extraction of other similar networks. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flowchart of a method for extracting a power network simulation model based on an undirected cyclic graph according to an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of the structure of a complete topology of an undirected cyclic graph according to an embodiment of the present invention;
[0037] Figure 3 For an embodiment of the present invention Figure 2 Schematic diagram of the structure of the first subnet in . DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the implementation of this application clearer, the technical scheme in the embodiment of this application will be described in more detail below in conjunction with the drawings in the embodiment of this application. In the drawings, the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of this application, not all of them. The embodiments described below with reference to the drawings are exemplary and are intended to be used to explain this application, and should not be construed as limitations on this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0039] Figure 1 The flowchart of a method for extracting a power network simulation model based on an undirected cyclic graph according to an embodiment of the present invention is as follows:
[0040] Step S1, extracting all power networks, power components and power network pin files from the netlist file;
[0041] Step S2, the user sets screening conditions according to requirements to screen out the required power components;
[0042] Step S3, constructing a complete topology of an undirected cyclic graph based on the power components, wherein the power components are nodes and the power networks are edges;
[0043] Step S4, splitting the power supply network into multiple subnets according to whether they have connectivity;
[0044] Step S5, determine the starting point of the power supply component of the required power supply network, assign weights to the nodes of the undirected cyclic graph, perform a weight-based depth traversal and backtracking access on the undirected cyclic graph to extract a single or multiple undirected cyclic graphs of actual power supply networks.
[0045] In one embodiment, in step S2, in the power network file, various functional devices are named in a fixed format, the power source end is constructed for the pins of a specific power component specified by the user, and the name and resistance value of the resistor or inductor device are screened when the user screens.
[0046] Specifically, in step S2, in the power network file, various functional devices are usually named in a fixed format, such as: resistor devices can be named R*, F*;
[0047] The inductor device can be named L*;
[0048] Capacitor devices can be named C*;
[0049] The power supply terminals can be named U*, J*.
[0050] Furthermore, the power source end is constructed by the pin of a specific component specified by the user, for example, U30.1, which means the pin named 1 of the component named U30 is used as the starting point. When the user filters, the name and resistance value of the resistor or inductor device can be filtered.
[0051] In one embodiment, in step S3, all power components are visited to find different power components with the same power network, a node is generated for each power component, and edges are generated for nodes with the same power network.
[0052] In step S3, the specific construction steps are: first visit all power components, and find different power components with the same power network, generate a node for each power component, and generate edges for the same power network between nodes. Figure 2 As shown, the boxes represent power components and the lines represent the same power network between the power components.
[0053] In one embodiment, in step S4, the power supply components with connectivity are split into one subnet, and the power supply components without connectivity are different subnets.
[0054] In step S4, Figure 2 As shown in the figure, after the complete topology of the undirected cyclic graph is constructed, according to the connectivity of the edges, that is, the connectivity of the power network, the power network is split into two subnets according to the connectivity. Figure 2 The power network in area A has connectivity and will be split into the first subnet. Figure 2 The B area in the network has connectivity and will be split into the second subnet.
[0055] In one embodiment, in step S5, the starting point of the power network component is determined, the weight of all power paths is assigned to 1, the weight of the ground network path is assigned to infinity, and the minimum distance from each power component to the starting point of the component is obtained, and the minimum distance is the weight of the component. Figure 2 As shown, R2 is closest to U15, so the component weight corresponding to R2 is 1, the nodes closest to R2 are R1 and R16, so the component weight corresponding to R1 and R16 is 2, the nodes closest to R1 and R16 are R3, R7, and R0, so the component weight corresponding to R3, R7, and R0 is 3, and so on.
[0056] In step S5, the starting point of the component of the power network is first determined, such as Figure 3 Then assign the weight of all power paths to 1, and then assign the weight of the ground network path to infinity, and then obtain the minimum distance from each point to U15.
[0057] In one embodiment, the depth traversal includes a first depth traversal and a second depth traversal, starting from the component starting point, and traversing according to the weight. The first depth traversal rule is:
[0058] Step S511, only access vertices whose weight is greater than itself;
[0059] Step S512, preferentially visit the vertices whose weight is 1 greater than its own;
[0060] Among them, if you return to the starting point, collect all the power components and edges along the way, and set the color of the power components and edges to gray, indicating that they have been visited, otherwise roll back until the traversal is completed.
[0061] Starting from the starting component, traverse according to the weight. The rules for the first deep traversal are as follows:
[0062] Only visit vertices with weight greater than itself;
[0063] Prioritize visiting vertices whose weight is 1 greater than its own;
[0064] If you return to the starting point, collect all components and edges along the way, and set the color of the components and edges to gray to indicate that they have been visited;
[0065] If you don't get back to the starting point, then back off.
[0066] According to the above rules, in one embodiment, the following search path is obtained:
[0067] U15
[0068] U15 – R2
[0069] U15 – R2 – R1
[0070] U15 – R2 – R1 – R0
[0071] U15 – R2 – R1 – R0 – J8 (no other outgoing degrees and no return to the starting point, back off)
[0072] U15 – R2 – R1 – R0 – J9 (same as above)
[0073] U15 – R2 – R1 – R0 – J10 (same as above)
[0074] U15 – R2 – R1 – R0 (same as above)
[0075] U15 – R2 – R1 – R6
[0076] U15 – R2 – R1 – R6 – J11 (return)
[0077] U15 – R2 – R1 – R6 – R5
[0078] U15 – R2 – R1 – R6 – R5 – J12 (fallback)
[0079] U15 – R2 – R1 – R6 – R5 (R4 has the same weight as R5, no longer accessed, rollback)
[0080] U15 – R2 – R1 – R6 (fallback)
[0081] U15 – R2 – R1 (fallback)
[0082] U15 – R2 – R16
[0083] U15 – R2 – R16 – R7
[0084] U15 – R2 – R16 – R7 – J14
[0085] U15 – R2 – R16 – R7 – J14 – U15 (Go back to the start, collect the path and vertices, then backtrack)
[0086] U15 – R2 – R16 – R7 – J14
[0087] U15 – R2 – R16 – R7
[0088] U15 – R2 – R16
[0089] U15 – R2 – R16 – R3 (fallback)
[0090] U15 – R2
[0091] U15
[0092] Since U15-J14 has turned into a gray border during the above collection, it is no longer visited.
[0093] At this point, the first depth traversal is completed and the path is obtained:
[0094] U15 –> R2 –> R16 –> R7 –> J14 –> U15
[0095] In one embodiment, the second depth traversal rule is:
[0096] Step S521, convert all gray edges into black edges, and gray vertices into black vertices;
[0097] Step S522, sort all outgoing edges, first visit white edges, then visit gray edges, and then visit black edges;
[0098] Step S523, sorting all adjacent vertices, and giving priority to accessing vertices with higher weights;
[0099] Step S524, if a used vertex is accessed, collect the vertex and edge and turn them gray;
[0100] If the vertex has just been collected and has other adjacent black vertices, it will not be collected again;
[0101] If no used vertex is accessed, return to step S521;
[0102] Step S525, remove the edges pointing to the starting point of the component from the collected edges to generate an undirected cyclic graph.
[0103] Specifically, the power network that has been deeply traversed for the first time is deeply traversed for the second time starting from the component starting point. The rules are as follows:
[0104] Change all gray edges into black edges and gray vertices into black vertices;
[0105] Sort all outgoing edges, first visit white edges, then gray edges, and then black edges;
[0106] Sort all adjacent vertices and give priority to vertices with higher weights;
[0107] If a used vertex is visited, collect the vertex and edge and turn it gray;
[0108] If the vertex has just been collected and has other adjacent black vertices, it will not be collected again;
[0109] If no used vertices are visited, fall back.
[0110] In one embodiment, according to the above rules, the following search path is obtained:
[0111] U15
[0112] U15 – R2
[0113] U15 – R2 – R1
[0114] U15 – R2 – R1 – R0
[0115] U15 – R2 – R1 – R0 – J8 / J9 / J10 (same as the first traversal, J8, J9, J10 are all rolled back)
[0116] U15 – R2 – R1 – R6
[0117] U15 – R2 – R1 – R6 – J11 (return)
[0118] U15 – R2 – R1 – R6 – R5
[0119] U15 – R2 – R1 – R6 – R5 – J12 (return)
[0120] U15 – R2 – R1 – R6 – R5 – R4
[0121] U15 – R2 – R1 – R6 – R5 – R4 – J13 (return)
[0122] U15 – R2 – R1 – R6 – R5 – R4 – R3
[0123] U15 – R2 – R1 – R6 – R5 – R4 – R3 – R7 (visit used vertices, collect)
[0124] U15 – R2 – R1 – R6 – R5 – R4 – R3 (already collected, rolled back)
[0125] U15 – R2 – R1 – R6 – R5 – R4 – R16 (R4 has visited the black vertex and is no longer collected)
[0126] U15 – R2 – R1 – R6 – R5 – R4
[0127] U15 – R2 – R1 – R6 – R5
[0128] U15 – R2 – R1 – R6
[0129] U15 – R2 – R1
[0130] U15 – R2
[0131] U15
[0132] At this point, the second collection is completed and the search path is obtained:
[0133] Finally, according to the edges collected in the depth traversal, the edges that return to the origin are removed to generate an undirected cyclic graph with valid components.
[0134] Furthermore, when the second depth traversal is just performed, there are only white edges and black edges. When the white edge is visited, the collected vertices and edges are then turned gray in step S524. When returning to step S521, the second depth traversal entered has white edges, gray edges, and black edges.
[0135] A power supply network simulation model extraction device based on an undirected cyclic graph comprises a memory, a processor and a computer program stored in the memory, wherein the processor implements a power supply network simulation model extraction method based on an undirected cyclic graph when executing the computer program.
[0136] A computer-readable medium stores a computer program, and when the computer program is executed by a processor, a method for extracting a power supply network simulation model based on an undirected cyclic graph is implemented.
[0137] A computer program product comprises a computer program. When the computer program is executed by a processor, a method for extracting a power supply network simulation model based on an undirected cyclic graph is implemented.
[0138] The present invention has the following beneficial effects:
[0139] 1. High reusability: This technology abstracts all physical models into a graph topology, constructs an undirected cyclic graph, and then extracts the undirected cyclic graph to generate a power network tree topology. This graph-based approach makes it possible to reuse the same graph structure and algorithm in different projects or scenarios. It can be reused in multiple projects or environments without a lot of modification or redesign, thereby improving work efficiency and reducing development costs.
[0140] 2. Short extraction time: Compared with the traditional method of extracting power network settings using the physical characteristics of the model, this technology extracts through the topological structure of the graph and can quickly generate the power network tree topology.
[0141] 3. Effectiveness: The present invention constructs a topological structure and, after two deep traversals, filters out invalid components in the power network topology, thereby improving the success rate of power network construction.
[0142] 4. Strong versatility: It strips away physical characteristics to the greatest extent and extracts the power network from the topology structure, which is also applicable to the extraction of other similar networks.
[0143] In this article, an undirected cyclic graph refers to a graph in which the edges in the graph have no directionality and there is at least one cycle in the graph.
[0144] In the description of the present application, it should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present application. For ease of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship. The technology, methods and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technology, methods and equipment should be regarded as part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as merely exemplary, rather than as a limitation. Therefore, other examples of the exemplary embodiments may have different values. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.
[0145] It should be noted that, in the present application, the terms "comprises", "includes" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. It should also be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0146] The above embodiments are provided for persons familiar with the art to implement or use the present application. Personnel familiar with the art can make various modifications or changes to the above embodiments without departing from the application concept of the present application. Therefore, the protection scope of the present application is not limited to the above embodiments, but should be the maximum scope of the innovative features mentioned in the claims.
Claims
1. A method for extracting power network simulation models based on undirected cyclic graphs. It is characterized in that The power supply network simulation model extraction method based on the undirected cyclic graph includes: Step S1, extracting all power networks, power components and power network pin files from the netlist file; Step S2, the user sets screening conditions according to requirements to screen out the required power components; Step S3, constructing a complete topology of an undirected cyclic graph based on the power components, wherein the power components are nodes and the power networks are edges; Step S4, splitting the power supply network into multiple subnets according to whether they have connectivity; Step S5, determining the starting point of the power supply component of the power supply network required, assigning weights to the nodes of the undirected cyclic graph, performing a deep traversal and backtracking access of the undirected cyclic graph based on the node weights, so as to extract a single or multiple undirected cyclic graphs of actual power supply networks; Among them, the component starting point of the power network is determined, the weights of all power paths are assigned to 1, the weights of the ground network paths are assigned to infinity, and the minimum distance from each power component to the component starting point is obtained, and the minimum distance is the weight of the component.
2. The power network simulation model extraction method based on an undirected cyclic graph according to claim 1, It is characterized in that In step S2, in the power network file, various functional devices are named in a fixed format, the power source end is constructed for the pins of the user-specified specific power components, and the name and resistance value of the resistor or inductor device are screened when the user screens.
3. The power network simulation model extraction method based on an undirected cyclic graph according to claim 1, It is characterized in that In step S3, all power components are visited to find different power components with the same power network, a node is generated for each power component, and edges are generated for nodes with the same power network.
4. The power network simulation model extraction method based on an undirected cyclic graph according to claim 3, It is characterized in that In step S4, the power supply components with connectivity are split into one subnet, and the power supply components without connectivity are divided into different subnets.
5. The power network simulation model extraction method based on undirected cyclic graph according to claim 4, It is characterized in that The depth traversal includes the first depth traversal and the second depth traversal. Starting from the starting point of the component, the traversal is performed according to the weight. The first depth traversal rule is: Step S511, only access vertices whose weight is greater than itself; Step S512, preferentially visit the vertices whose weight is 1 greater than its own; Among them, if you return to the starting point, collect all the power components and edges along the way, and set the color of the power components and edges to gray, indicating that they have been visited, otherwise roll back until the traversal is completed.
6. The power network simulation model extraction method based on undirected cyclic graph according to claim 5, It is characterized in that The second depth traversal rules are: Step S521, convert all gray edges into black edges, and gray vertices into black vertices; Step S522, sort all outgoing edges, first visit white edges, then visit gray edges, and then visit black edges; Step S523, sorting all adjacent vertices, and giving priority to accessing vertices with higher weights; Step S524, if a used vertex is accessed, collect the vertex and edge and turn them gray; If the vertex has just been collected and has other adjacent black vertices, it will not be collected again; If no used vertex is accessed, return to step S521; Step S525, remove the edges pointing to the starting point of the component from the collected edges to generate an undirected cyclic graph.
7. A power network simulation model extraction device based on an undirected cyclic graph, comprising a memory, a processor, and a computer program stored in the memory, It is characterized in that When executing the computer program, the processor implements the power supply network simulation model extraction method based on an undirected cyclic graph according to any one of claims 1 to 6.
8. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the power supply network simulation model extraction method based on an undirected cyclic graph as claimed in any one of claims 1 to 6 is implemented.
9. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the power supply network simulation model extraction method based on an undirected cyclic graph as claimed in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Power supply network simulation method and system based on spectrogram sparsification
CN113111619A
