Power tree automatic generation method, system, device, medium and program product
The automated power tree generation method solves the low efficiency problem of traditional manual design, enables rapid construction of the power tree and DC characteristic analysis, generates detailed voltage drop reports, and improves the efficiency of power tree optimization.
Patent Information
- Application Number
- CN202510919153.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2045-07-04
AI Technical Summary
Traditional power tree design relies on manual creation, resulting in low design efficiency and difficulty in meeting rapid development needs. It also lacks analysis of the DC characteristics of the power tree, making it difficult to meet DC analysis requirements.
A method for automatically generating a power tree is provided. The method reads design files to establish an information library, sets voltage source and current source devices, runs power DC simulation, automatically establishes a power tree, performs voltage drop analysis, and generates a report.
It realizes the automatic construction of power tree, reduces design time, generates intuitive voltage drop data report, and improves the efficiency of power tree optimization.
Smart Images

Figure CN120429991B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of EDA software technology, specifically to the field of power supply DC analysis and calculation technology, and more particularly to a method, system, device, medium, and program product for automatically generating a power tree, which is suitable for chip design, PCB design, and power distribution network (PDN) optimization of complex electronic systems. Background Art
[0002] During EDA DC simulation, the reasonable construction of the power tree is crucial to ensuring system stability, reducing power consumption and optimizing power integrity.
[0003] Traditional power tree design typically relies on engineers' experience, manually defining power paths, selecting power rails, and allocating decoupling capacitors. Existing technologies, such as patent CN109583098A, employ a method that manually establishes power tree nodes layer by layer based on the electronic device's power input requirements and a power node model library, ultimately creating a complete power tree.
[0004] This solution has certain limitations. For example, manually establishing the power tree topology takes a lot of time and is difficult to meet the needs of rapid development. In addition, this solution lacks analysis of the DC characteristics of the power tree, such as voltage distribution, voltage drop, and current path, making it difficult to meet DC analysis requirements. Summary of the Invention
[0005] The purpose of the present invention is to provide a method, device, medium and program product for automatically generating a power tree. In order to solve the technical problems of low design efficiency caused by manually establishing a power tree and insufficient analysis of DC characteristics such as voltage drop and voltage distribution of the power tree, an embodiment of the present invention provides a method for automatically generating a power tree in an EDA system.
[0006] The technical solutions provided by the present invention are as follows:
[0007] In a first aspect, the present application provides a method for automatically generating a power tree, the method comprising:
[0008] Reading a design file, and establishing an information library according to the design file, wherein the information library includes: a device information library, a network information library, and a pin group information library;
[0009] Set up voltage source devices and current source devices, run power supply DC simulation, and obtain simulation result files;
[0010] Automatically establish a power tree according to the simulation result file;
[0011] Based on the power tree and simulation result files, perform voltage drop analysis and generate a report.
[0012] In some embodiments, the device information library includes: the name, pin, and device type of each device; the network library information includes: network name, type, voltage, device and corresponding pin; the pin group information library includes pin-related device names, pins that express electrical connection information, and the network where the pins are located.
[0013] In some embodiments, the setting of the voltage source device and the current source device specifically includes:
[0014] Select a device from the device information library;
[0015] For each device, search the pin group information library and select the positive and negative nets of the device;
[0016] Set the device type to a voltage source device or a current source device, set the supply voltage for the voltage source device, and set the maximum current value for the current source device;
[0017] Until all voltage source devices and current source devices are set up, and the current source information and voltage source information are saved, wherein the current source information includes the device name, model, positive network, negative network, type, and maximum supply current; the voltage source information includes the device name, model, positive network, negative network, type, and supply voltage.
[0018] In some implementations, the simulation result file includes device name, positive network and pin, negative network and pin, actual current, and actual voltage.
[0019] In some implementations, automatically establishing a power tree according to the simulation result file specifically includes:
[0020] S1. Scan current and voltage source information to establish an initial node of a power tree. If the initial node is a voltage source, the initial node is the root node of the power tree.
[0021] S2. Scan each initial node of this layer. For each initial node, if this initial node has been processed in the current tree, skip this initial node. Otherwise, determine whether the initial node is the root node. If so, take the network of this initial node as the positive network. Otherwise, take the negative network of this initial node as the positive network of the node in this layer.
[0022] S3. For the positive network of this layer, search the Net (network) information library to obtain all devices and pins on the positive network. Except for the device corresponding to the initial node, for each device, establish a node of this layer. The positive network of the node is the positive network of this layer.
[0023] S4. Scan each node of this layer. For each node of this layer, if the node is a current source node or the negative network of the node is grounded, it is marked as a leaf node. Otherwise, search the Net (network) information library, exclude the positive network of the node, and search other networks in the Net (network) information library. If the device containing the current node is found in the network, the network is used as the negative network of the node; the nodes of this layer except the leaf nodes are used as the initial nodes of the next layer;
[0024] S5. Search the power tree nodes of this layer. If the corresponding device of a node is set as a current source, the current source information is written into the corresponding node, and the node of this layer is used as the initial node of the next layer.
[0025] S6. Determine whether each layer reaches a leaf node. If not, repeat steps S2, S3, S4, and S5 until each layer reaches a leaf node.
[0026] In some implementations, performing voltage drop analysis based on the power tree and the simulation result file specifically includes:
[0027] For each power tree node, set the current threshold and voltage threshold;
[0028] Read the simulation result file to obtain the actual current and actual voltage data of the corresponding node;
[0029] The power tree node calculates the voltage drop of the network and path based on the actual voltage of the parent node and the current node. The voltage drop of the network = the output voltage of the source node - the actual voltage of the target node, and the voltage drop of the path = the actual voltage of the root node - the actual voltage of the leaf node. The actual voltage of the path is the voltage of the leaf node, and the actual current is the actual current of the leaf node.
[0030] The expected voltage is between the root node's actual voltage (decreased by a voltage threshold percentage) and the actual voltage (increased by a voltage threshold percentage). If the expected voltage is met, it is marked as Pass; otherwise, it is marked as Fail.
[0031] Output a power tree report file, where the power tree report file includes a power tree topology diagram and voltage drop analysis data.
[0032] In a second aspect, an embodiment of the present invention further provides a system for automatically generating a power tree, the system comprising:
[0033] Used to read the design file and establish an information library according to the design file, wherein the information library includes: a device information library, a network information library and a first unit of the pin group information library;
[0034] The second unit is used to set voltage source devices and current source devices, run power supply DC simulation, and obtain simulation result files;
[0035] a third unit for automatically establishing a power tree according to the simulation result file;
[0036] The fourth unit is used to perform voltage drop analysis and generate a report based on the power tree and simulation result file.
[0037] In a third aspect, the present application provides a computer device comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method for automatically generating a power tree according to the first aspect.
[0038] In a fourth aspect, the present application provides a computer storage medium having a computer program or instruction stored thereon, which, when executed by a processor, implements the steps of the method for automatically generating a power tree as described in the first aspect.
[0039] In a fifth aspect, the present application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps of the method for automatically generating a power tree according to the first aspect.
[0040] The power tree automatic generation method, system, device, medium and program product provided by the embodiment of the present invention provides a power tree for power DC analysis and generates a report in combination with the power DC simulation results. That is, a graph theory algorithm is used to automatically construct the optimal topology of the power distribution network, and the power DC simulation result data can be combined to calculate and display parameters such as voltage drop and node voltage to generate a detailed DC analysis report. Compared with traditional methods, the embodiment of the present invention adopts an intelligent algorithm, does not require manual design, can significantly reduce design time, and the generated report more intuitively displays the voltage drop data, making it easier to find voltage drop anomalies in advance, thereby enabling more efficient power tree optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The preferred implementation scheme will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of this solution.
[0042] Figure 1 This is a schematic diagram of the overall process of a method for automatically generating a power tree according to an embodiment of the present invention;
[0043] Figure 2 It is a flow chart of an embodiment of the present invention;
[0044] Figure 3 is a schematic diagram of an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific embodiments of the present invention will be described below with reference to the accompanying drawings. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings and other embodiments can be obtained based on these drawings without inventive work.
[0046] To simplify the drawings, only the parts relevant to the present invention are schematically shown in each figure. They do not represent the actual structure of the product. Furthermore, to simplify the drawings and facilitate understanding, in some figures, only one of the components with the same structure or function is schematically depicted or labeled. As used herein, "one" not only means "only one" but also "more than one."
[0047] To achieve the purpose of the present invention, the technical solution adopted in the embodiment of the present invention is:
[0048] A method for automatically generating a power tree, the method comprising:
[0049] S100, reading a design file, and establishing an information library according to the design file, wherein the information library includes: a device information library, a network information library, and a pin group information library;
[0050] S200, setting a voltage source device and a current source device, and running a power supply DC simulation to obtain a simulation result file;
[0051] S300, automatically establishing a power tree according to the simulation result file;
[0052] S400: Perform voltage drop analysis based on the power tree and simulation result file, and generate a report.
[0053] In one embodiment of the present invention, a method for automatically generating a power tree for power DC analysis includes reading a design file and establishing an information library based on the design file. The information library includes: a component information library, a net information library, and a pin group information library;
[0054] Then set up the voltage source and current source and run the power supply DC simulation;
[0055] Establish a power tree;
[0056] Pressure drop analysis and report generation.
[0057] The contents of each information library are as follows:
[0058] Component information, including: the name, pins, and device type (current or voltage) of each device. The device name is a custom name, the pins are the connection points of the device, and the device type is current source or voltage source.
[0059] Net (network) information, including: network name, type, voltage, device and corresponding pin;
[0060] The network name is a custom name, the type is ground or other, the voltage is the voltage of the network input device, the device is the device included in the network, and the pins related to the device on the network (the device included in the network)
[0061] Pin Group information includes: the device name associated with the pin, the pin that describes the electrical connection information, and the net name where the pin is located.
[0062] Setting up the voltage and current sources and running the DC power supply simulation includes the following steps:
[0063] Select a device from the Component information library. For each device, search the Pin Group information library, select the positive and negative nets of the device, set the device type to voltage source or current source, set the supply voltage for voltage sources, and set the maximum current value for current source devices.
[0064] Until all voltage source devices and current source devices are set up, and the current source information and voltage source information are saved; among them, the current source information includes: device name, model, positive network, negative network, type, and maximum supply current; the voltage source information includes: device name, model, positive network, negative network, type, and supply voltage.
[0065] Run the power supply DC simulation and output the simulation result file. The simulation result file includes: device name, positive network and pin, negative network and pin, actual current, and actual voltage.
[0066] In one embodiment of the present invention, automatically establishing a power tree according to the simulation result file specifically includes:
[0067] S1. Scan current and voltage source information to establish an initial node of a power tree. If the initial node is a voltage source, the initial node is the root node of the power tree.
[0068] S2. Scan each initial node of this layer. For each initial node, if this initial node has been processed in the current tree, skip this initial node. Otherwise, determine whether the initial node is the root node. If so, take the network of this initial node as the positive network. Otherwise, take the negative network of this initial node as the positive network of the node in this layer.
[0069] S3. For the positive network of this layer, search the Net (network) information library to obtain all devices and pins on the positive network. Except for the device corresponding to the initial node, for each device, establish a node of this layer. The positive network of the node is the positive network of this layer.
[0070] S4. Scan each node of this layer. For each node of this layer, if the node is a current source node or the negative network of the node is grounded, it is marked as a leaf node. Otherwise, search the Net (network) information library, exclude the positive network of the node, and search other networks in the Net (network) information library. If the device containing the current node is found in the network, the network is used as the negative network of the node; the nodes of this layer except the leaf nodes are used as the initial nodes of the next layer;
[0071] S5. Search the power tree nodes of this layer. If the corresponding device of a node is set as a current source, the current source information is written into the corresponding node, and the node of this layer is used as the initial node of the next layer.
[0072] S6. Determine whether each layer reaches a leaf node. If not, repeat steps S2, S3, S4, and S5 until each layer reaches a leaf node.
[0073] like Figure 2 As shown, establishing a power tree includes the following steps:
[0074] 1. Scan the current and voltage source information to establish the initial node of the power tree. If the initial node is a voltage source, the initial node is the root node of the power tree.
[0075] 2. Scan each initial node of this layer. For each initial node, if this initial node has been processed in the current tree, skip this initial node. Otherwise, determine whether the initial node is the root node. If so, take the network of this initial node as the positive network. Otherwise, take the negative network of this initial node as the positive network of the node in this layer.
[0076] 3. For the positive network of this layer, search the Net (network) information library to obtain all devices and pins on the positive network. Except for the device corresponding to the initial node, for each device, establish a node of this layer. The positive network of the node is the positive network of this layer.
[0077] 4. Scan each node of this layer. For each node of this layer, if the node is a current source node or the negative network of the node is grounded, it is marked as a leaf node. Otherwise, search the Net (network) information library, exclude the node positive network, and search other networks in the Net (network) information library. If the network retrieved contains the device of the current node, the network is used as the negative network of the node; the nodes of this layer except the leaf nodes are used as the initial nodes of the next layer;
[0078] 5. Search the power tree nodes of this layer. If the corresponding device of a node is set as a current source, write the current source information to the corresponding node, and the node of this layer will be used as the initial node of the next layer.
[0079] 6. Determine whether each layer has reached a leaf node. If not, repeat steps 2, 3, 4, and 5 until each layer has reached a leaf node.
[0080] In some implementations, performing voltage drop analysis based on the power tree and the simulation result file specifically includes:
[0081] For each power tree node, set the current threshold and voltage threshold;
[0082] Read the simulation result file to obtain the actual current and actual voltage data of the corresponding node;
[0083] The power tree node calculates the voltage drop of the network and path based on the actual voltage of the parent node and the current node. The voltage drop of the network = the output voltage of the source node - the actual voltage of the target node, and the voltage drop of the path = the actual voltage of the root node - the actual voltage of the leaf node. The actual voltage of the path is the voltage of the leaf node, and the actual current is the actual current of the leaf node.
[0084] The expected voltage is between the root node's actual voltage (decreased by a voltage threshold percentage) and the actual voltage (increased by a voltage threshold percentage). If the expected voltage is met, it is marked as Pass; otherwise, it is marked as Fail.
[0085] Output a power tree report file, where the power tree report file includes a power tree topology diagram and voltage drop analysis data.
[0086] For each power tree node, set the current threshold (numeric value) and voltage threshold (percentage);
[0087] Read the simulation result file to obtain the actual current and actual voltage data of the corresponding node;
[0088] The power tree node calculates the voltage drop of the network and path based on the actual voltage of the parent node and the current node, where
[0089] The voltage drop of the network = the output voltage of the source node - the actual voltage of the target node;
[0090] The voltage drop of the path = the actual voltage of the root node - the actual voltage of the leaf node;
[0091] The actual voltage of the path is the voltage of the leaf node, the actual current is the actual current of the leaf node, and the expected voltage is between the actual voltage of the root node reduced by the voltage threshold percentage and increased by the voltage threshold percentage. If the conditions are met, the path is marked as Pass; otherwise, it is marked as Fail.
[0092] Outputs a power tree report file, including the power tree topology diagram and voltage drop analysis data.
[0093] The following combination Figure 3 , which explains how to set up the voltage source and current source and run the power supply DC simulation:
[0094] Select the U2M1 device from the Component database. The model is G9441-001, the positive network is V3P3_S0, the negative network is GND, the type is voltage source, and the supply voltage is 3.3V.
[0095] Select the U2A5 device from the Component database. The model is IPD031-201, the positive network is V3P3_S0, the negative network is GND, the type is current source, and the maximum current value is 1A.
[0096] Select the device U3B2 from the Component information library. The model is C76254-001, the positive network is V3P3_S0, the negative network is GND, the type is current source, and the maximum current value is 1A.
[0097] Select device U2B1 from the Component information library. The model is G83474-001, the positive network is V3P3_S0, the negative network is GND, the type is current source, and the maximum current value is 1A.
[0098] Run the DC simulation.
[0099] In a specific embodiment of the present invention, Figure 3 , and process Figure 2 , describes the process of establishing a power tree, the process is as follows Figure 2 .
[0100] Scan the voltage source information and establish the initial node of the power tree. In this embodiment, the initial node device name is U2M1, the model is G94441-001, the supply voltage is 3.3V, the positive network is V3P3_S0, and the negative network is GND. This is the first-level node.
[0101] Start processing the second-layer nodes. For the initial node of the first layer, use the positive network V3P3_S0 of this initial node as the positive network of the node in this layer.
[0102] For the positive network V3P3_S0 of this layer, search the Net (network) information library to obtain all devices and pins on the positive network. Except for the device U2M1 corresponding to the initial node, establish a node of this layer for each device, namely R2B12, R3M9, R4B8, U3B2, U2B1, and U2A5.
[0103] For the nodes in this layer, U3B2, U2B1, and U2A5 are current source nodes and are marked as leaf nodes. For the remaining nodes, search the Net database and exclude the positive network V3P3_S0. The network containing R2B12 is SPI_MOSI, which is the negative network of R2B12. The network containing R3M9 is SPI0_SCK, which is the negative network of R3M9. The network containing R4B8 is RMII_S0_TXD0, which is the negative network of R4B8. Nodes R2B12, R3M9, and R4B8 in this layer, excluding the leaf nodes, are used as the initial nodes for the next layer.
[0104] Start processing the third-layer nodes and repeat the above steps to establish the third-layer nodes R2B17, R2B19, and R4B5. These three nodes are all leaf nodes, and the power tree is established.
[0105] In the embodiment of pressure drop analysis and report generation, the specific implementation is as follows:
[0106] For each power tree node, set the current threshold (value) and voltage threshold (percentage). In this example, set the current threshold to 1A and the voltage threshold to 5% for each node.
[0107] Read the simulation result file, obtain the actual current and actual voltage data of the corresponding nodes, and fill them into the power tree.
[0108] The power tree node calculates the voltage drop of the network and path based on the actual voltage of the parent node and the current node. For example, the voltage drop of the network SPI1_MOSI = the output voltage of the source node R2B12 - the actual voltage of the target node R2B17. Since the output voltage of R2B12 is the actual voltage of R2B12 - the voltage drop of R2B12, the voltage drop of the network SPI1_MOSI can be calculated as 3.476e-04mV. The voltage drop of the path with R2B17 as the leaf node is = the actual voltage of the root node U2M1 (3.3V) - the actual voltage of the leaf node R2B17 (1.646V), which is 1653.57mV. The actual voltage of the path is the leaf node voltage (1.646V), and the actual current is the leaf node current (1.644e-04A). The expected voltage is between 3.3V*0.95 and 3.3V*1.05, which does not meet the conditions and is marked as Fail.
[0109] Output power tree report file, including power tree topology diagram and voltage drop analysis data, generate report such as Figure 3 .
[0110] In a second aspect, an embodiment of the present invention further provides a system for automatically generating a power tree, the system comprising:
[0111] Used to read the design file and establish an information library according to the design file, wherein the information library includes: a device information library, a network information library and a first unit of the pin group information library;
[0112] The second unit is used to set voltage source devices and current source devices, run power supply DC simulation, and obtain simulation result files;
[0113] a third unit for automatically establishing a power tree according to the simulation result file;
[0114] The fourth unit is used to perform voltage drop analysis and generate a report based on the power tree and simulation result file.
[0115] In one embodiment, the present application provides a computer device including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of a method for automatically generating a power tree in the aforementioned embodiment.
[0116] In one embodiment, the present application provides a computer storage medium having a computer program or instructions stored thereon. When the computer program or instructions are executed by a processor, the steps of a method for automatically generating a power tree in the aforementioned embodiment are implemented.
[0117] In one embodiment, the present application provides a computer program product, including a computer program or instructions, which implements the steps of a method for automatically generating a power tree in the aforementioned embodiment when the computer program or instructions are executed by a processor.
[0118] It should be noted that the above embodiments can be freely combined as needed. The above description is only a preferred embodiment of the present invention. It should be pointed out that those skilled in the art can make several improvements and modifications without departing from the principles of the present invention, and such improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for automatically generating a power tree, characterized in that: The method comprises: Reading a design file, and establishing an information library according to the design file, wherein the information library includes: a device information library, a network information library, and a pin group information library; Set up voltage source devices and current source devices, run power supply DC simulation, and obtain simulation result files; Automatically establishing a power tree according to the simulation result file, wherein the automatically establishing a power tree according to the simulation result file specifically includes: S1. Scan current and voltage source information to establish an initial node of a power tree. If the initial node is a voltage source, the initial node is the root node of the power tree. S2. Scan each initial node of this layer. For each initial node, if this initial node has been processed in the current tree, skip this initial node. Otherwise, determine whether the initial node is the root node. If so, take the network of this initial node as the positive network. Otherwise, take the negative network of this initial node as the positive network of the node in this layer. S3. For the positive network of this layer, search the Net (network) information library to obtain all devices and pins on the positive network. Except for the device corresponding to the initial node, for each device, establish a node of this layer. The positive network of the node is the positive network of this layer. S4. Scan each node of this layer. For each node of this layer, if the node is a current source node or the negative network of the node is grounded, it is marked as a leaf node. Otherwise, search the Net (network) information library, exclude the positive network of the node, and search other networks in the Net (network) information library. If the device containing the current node is found in the network, the network is used as the negative network of the node; the nodes of this layer except the leaf nodes are used as the initial nodes of the next layer; S5. Search the power tree nodes of this layer. If the corresponding device of a node is set as a current source, write the current source information to the corresponding node, and the node of this layer is used as the initial node of the next layer. S6. Determine whether each layer has reached a leaf node. If not, repeat steps S2, S3, S4, and S5 until each layer has reached a leaf node. Based on the power tree and simulation result files, perform voltage drop analysis and generate a report.
2. The method for automatically generating a power tree according to claim 1, wherein: The device information library contains: the name, pin, and device type of each device; the network information library contains: the network name, type, voltage, device, and corresponding pin; the pin group information library includes the pin-related device name, the pin that expresses the electrical connection information, and the network where the pin is located.
3. The method for automatically generating a power tree according to claim 1, wherein: The setting of the voltage source device and the current source device specifically includes: Select a device from the device information library; For each device, search the pin group information library and select the positive and negative nets of the device; Set the device type to a voltage source device or a current source device, set the supply voltage for the voltage source device, and set the maximum current value for the current source device; Until all voltage source devices and current source devices are set up, and the current source information and voltage source information are saved, wherein the current source information includes the device name, model, positive network, negative network, type, and maximum supply current; the voltage source information includes the device name, model, positive network, negative network, type, and supply voltage.
4. The method for automatically generating a power tree according to claim 1, wherein: The simulation result file includes the device name, positive network and pin, negative network and pin, actual current, and actual voltage.
5. The method for automatically generating a power tree according to claim 1, wherein: The performing of voltage drop analysis according to the power tree and the simulation result file specifically includes: For each power tree node, set the current threshold and voltage threshold; Read the simulation result file to obtain the actual current and actual voltage data of the corresponding node; The power tree node calculates the voltage drop of the network and path based on the actual voltage of the parent node and the current node. The voltage drop of the network = the output voltage of the source node - the actual voltage of the target node, and the voltage drop of the path = the actual voltage of the root node - the actual voltage of the leaf node. The actual voltage of the path is the voltage of the leaf node, and the actual current is the actual current of the leaf node. The expected voltage is between the root node's actual voltage (decreased by a voltage threshold percentage) and the actual voltage (increased by a voltage threshold percentage). If the expected voltage is met, it is marked as Pass; otherwise, it is marked as Fail. Output a power tree report file, where the power tree report file includes a power tree topology diagram and voltage drop analysis data.
6. A power tree automatic generation system, characterized in that: The system comprises: Used to read the design file and establish an information library according to the design file, wherein the information library includes: a device information library, a network information library and a first unit of the pin group information library; The second unit is used to set voltage source devices and current source devices, run power supply DC simulation, and obtain simulation result files; The third unit is configured to automatically establish a power tree according to the simulation result file, wherein the automatically establishing a power tree according to the simulation result file specifically includes: S1. Scan current and voltage source information to establish an initial node of a power tree. If the initial node is a voltage source, the initial node is the root node of the power tree. S2. Scan each initial node of this layer. For each initial node, if this initial node has been processed in the current tree, skip this initial node. Otherwise, determine whether the initial node is the root node. If so, take the network of this initial node as the positive network. Otherwise, take the negative network of this initial node as the positive network of the node in this layer. S3. For the positive network of this layer, search the Net (network) information library to obtain all devices and pins on the positive network. Except for the device corresponding to the initial node, for each device, establish a node of this layer. The positive network of the node is the positive network of this layer. S4. Scan each node of this layer. For each node of this layer, if the node is a current source node or the negative network of the node is grounded, it is marked as a leaf node. Otherwise, search the Net (network) information library, exclude the positive network of the node, and search other networks in the Net (network) information library. If the device containing the current node is found in the network, the network is used as the negative network of the node; the nodes of this layer except the leaf nodes are used as the initial nodes of the next layer; S5. Search the power tree nodes of this layer. If the corresponding device of a node is set as a current source, write the current source information to the corresponding node, and the node of this layer is used as the initial node of the next layer. S6. Determine whether each layer has reached a leaf node. If not, repeat steps S2, S3, S4, and S5 until each layer has reached a leaf node. The fourth unit is used to perform voltage drop analysis and generate a report based on the power tree and simulation result file.
7. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method for automatically generating a power tree according to any one of claims 1 to 5.
8. A computer storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method for automatically generating a power tree according to any one of claims 1 to 5 are implemented.
9. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method for automatically generating a power tree according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
A power supply direct current design automatic analysis method
CN109583098A
Power supply tree block diagram generation method and device
CN120124229A