Power electronic system simulation method and system based on FPGA and storage medium

Build a power electrical system model by graphical modeling software, and use the CPU model to combine with FPGA's electronic electronic solvents to solve the problem of high FPGA modeling difficulty and low universal performance, realize high -precision, small -step power power power Electronic system simulation has improved simulation accuracy and development efficiency.

CN119358478APending Publication Date: 2025-01-24SHANGHAI KELIANG INFORMATION ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411353596.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the prior art, FPGA modeling is difficult and has low general performance, which cannot meet the high-precision and small-step simulation requirements of power electronic models.

Method used

Build a power electronics system model through graphical modeling software, and use the CPU model to extract feature information to establish standardized equations, which are sent to the FPGA's power electronics solver for solution to achieve accurate simulation of the power electronics system.

Benefits of technology

Improve the simulation accuracy and development efficiency of the electronic model, support large -scale real -time simulation needs of power electronics, and ensure the accuracy and real -time nature of the simulation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119358478A_ABST
    Figure CN119358478A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of simulation testing, in particular to a power electronic system simulation method and system based on an FPGA (Field Programmable Gate Array) and a storage medium, and the method comprises the following steps: a CPU (Central Processing Unit) model extracts feature information of a power electronic system model, establishes a standardized equation according to the feature information and a measurement signal of a measurement module in the power electronic system model; the standardized equation is issued to a power electronic solver of the FPGA; the power electronic resolver receives a power supply signal and a switch control signal of the non-power electronic signal module, brings the power supply signal and the switch control signal into a standardized equation to resolve a measurement result, and transmits the measurement result back to the CPU model; and the CPU model is coupled with the non-power electronic signal module by using a measurement result to realize joint simulation. According to the scheme, accurate simulation of the power electronic system can be realized, and the accuracy and the real-time performance of a simulation result are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of simulation testing technology, and in particular to a FPGA-based power electronic system simulation method, system, and storage medium. Background Art

[0002] With the advancement of power electronics technology, the demand for real-time simulation technology of power electronics systems is also increasing. As a cutting-edge simulation method, power electronics real-time simulation technology is committed to accurately simulating the operating characteristics and performance of power electronics systems. This technology plays a vital role in the research and development, design and testing of power electronic equipment. The rapid development of power electronics real-time simulation technology has greatly promoted the process of research and development, design and testing of power electronic equipment. It provides engineers with a platform for in-depth exploration of power electronics systems, which helps to improve the reliability and performance of equipment while reducing research and development costs and cycles.

[0003] The core of power electronics real-time simulation technology is to convert the mathematical model of the power electronics system into a real-time simulation model. At present, the commonly used power electronics real-time simulation technologies on the market mainly include simulation based on digital signal processor CPU and simulation based on field programmable gate array FPGA. However, due to the performance and architecture of the CPU, the model simulation accuracy of the CPU is usually at the microsecond level, which makes it difficult to achieve high-precision and small-step power electronics real-time simulation, and cannot meet the simulation requirements of existing high-speed and high-precision power electronics systems; although FPGA simulation technology can have fast and high-precision nanosecond-level simulation capabilities, most of them adopt customized modeling methods. Each model building requires a professional hardware programming language foundation, which is difficult to develop and takes a long time. FPGA simulation is difficult to implement and has low versatility, which cannot meet the needs of power electronics model development and debugging. Summary of the invention

[0004] The purpose of the implementation mode of the present application is to provide a FPGA-based power electronic system simulation method, system and storage medium, which solves the problem of high difficulty and low general performance of FPGA modeling in the prior art, realizes FPGA simulation of general power electronic models, and effectively improves the simulation accuracy and development efficiency of power electronic models.

[0005] In order to solve the above technical problems, the embodiment of the present application provides a power electronic system simulation method based on FPGA, wherein the power electronic system comprises: a power electronic system model, a CPU model and a power electronic solver of FPGA; the simulation method comprises:

[0006] The power electronic system model is constructed by means of graphical modeling software and real-time processing is performed; the power electronic system model includes: a power electronic signal module and a non-power electronic signal module;

[0007] The CPU model extracts characteristic information of the power electronic system model, establishes a standardized equation according to the characteristic information and a measurement signal of a measurement module in the power electronic system model, and sends the standardized equation to a power electronic solver in the FPGA;

[0008] The power electronic solver receives the power signal and the switch control signal of the non-power electronic signal module, brings the power signal and the switch control signal into the standardized equation to solve the measurement result, and transmits the measurement result back to the CPU model;

[0009] The CPU model utilizes the measurement results to couple with the non-power electronic signal module to achieve joint simulation.

[0010] The embodiment of the present application also provides a FPGA-based power electronics system, including: a power electronics system model, a CPU model, and a power electronics solver of the FPGA;

[0011] The power electronic system model is constructed by graphical modeling software and processed in real time; the power electronic system model includes: a power electronic signal module and a non-power electronic signal module;

[0012] The CPU model is used to extract characteristic information of the power electronic system model, establish a standardized equation according to the characteristic information and a measurement signal of a measurement module in the power electronic system model, and send the standardized equation to a power electronic solver of the FPGA;

[0013] The power electronic solver is used to receive the power signal and the switch control signal of the non-power electronic signal module, bring the power signal and the switch control signal into the standardized equation to solve the measurement result, and transmit the measurement result back to the CPU model;

[0014] The CPU model is used to utilize the measurement results to couple with the non-power electronic signal module to realize joint simulation.

[0015] The embodiments of the present application further provide a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the FPGA-based power electronic system simulation method as described above.

[0016] Compared with the prior art, the embodiment of the present invention builds a power electronic system model through graphical modeling software and performs real-time processing. The power electronic system model includes: a power electronic signal module and a non-power electronic signal module; the CPU model extracts the characteristic information of the power electronic system model, establishes a standardized equation based on the characteristic information and the measurement signal of the measurement module in the power electronic system model, and sends the standardized equation to the power electronic solver of the FPGA; the power electronic solver receives the power signal and switch control signal of the non-power electronic signal module, brings the power signal and the switch control signal into the standardized equation to solve the measurement result, and transmits the measurement result back to the CPU model; the CPU model uses the measurement result to couple with the non-power electronic signal module to realize joint simulation. This scheme quantifies the mathematical model of the power electronic system model by solving the measurement result of the measurement module, and converts it into a real-time simulation model after coupling with the non-power electronic signal module, which can realize accurate simulation of the power electronic system, thereby supporting large-scale power electronic real-time simulation needs and ensuring the accuracy and real-time performance of the simulation results. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0018] Figure 1 The process of the FPGA-based power electronic system simulation method according to an embodiment of the present invention is as follows Figure 1 ;

[0019] Figure 2 The process of the FPGA-based power electronic system simulation method according to an embodiment of the present invention is as follows Figure 2 ;

[0020] Figure 3 is a flow chart of interaction between a CPU model and a power electronic solver according to an embodiment of the present invention;

[0021] Figure 4 is an architectural diagram of a power electronic system based on FPGA according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0023] The terms "first" and "second" in the embodiments of the present application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a system, product or device comprising a series of parts or units is not limited to the listed parts or units, but optionally also includes parts or units that are not listed, or optionally also includes other parts or units inherent to these products or devices. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0024] The first embodiment of the present invention relates to a method for simulating a power electronic system based on FPGA, wherein the power electronic system includes: a power electronic system model, a CPU model and a power electronic solver of FPGA. Figure 1 As shown, based on the FPGA-based power electronic system, the FPGA-based power electronic system simulation method in this embodiment specifically includes the following steps.

[0025] Step 101: Build a power electronic system model through graphical modeling software and perform real-time processing; the power electronic system model includes: a power electronic signal module and a non-power electronic signal module.

[0026] Specifically, power electronics technology is an emerging electronic technology applied to the field of power, which is a technology that uses power electronic components (such as thyristors, GTOs, IGBTs, etc.) to transform and control electric energy. Before the simulation is performed, the scheme can first obtain the user's simulation requirements for the power electronic system model, determine the specific form of the construction, such as building a diode bridge rectifier, PWM inverter, etc., so as to understand its working principle and performance characteristics through simulation. This application does not make specific restrictions on the specific power electronic system model built. Users can use graphical modeling software such as Matlab to build power electronic system models according to their own needs. Simullink, a dynamic system simulation tool in Matlab, provides a graphical user interface (GUI) and a simulation model library composed of signal sources, linear and nonlinear devices, connectors, and various toolboxes. Users can use the simulation model library to build a power electronic system model. The built power electronic system model includes: power electronic signal module and non-power electronic signal module. Among them, the power electronic signal module refers to the related module that uses power electronic components to generate and transform electric energy, and the non-power electronic module is the related module used to control electric energy. This application does not impose specific restrictions on the specific modules and components contained in the power electronic signal module and the non-power electronic signal module. After building the power electronic system model, you can set the simulation mode to the fixed step mode, set the simulation step according to the specific simulation requirements, use the simulation software for offline simulation, debug and ensure that the power electronic system model runs correctly.

[0027] In one example, the real-time processing of the power electronic system model in step 101 specifically includes: placing the non-power electronic signal module into the CPU model, connecting the non-power electronic signal module with the universal power electronic solver interface module in the CPU model;

[0028] Among them, the non-power electronic signal module at least includes: a signal source module and a control module; the signal source module is used to provide a power supply signal to the power electronic system model through the universal power electronic solver interface module during real-time simulation; the control module is used to provide a switch control signal to the power electronic system model through the universal power electronic solver interface module during real-time simulation.

[0029] Specifically, the CPU model is a model for simulation testing of the power electronic system model, and the non-power electronic signal module is used to provide relevant control signals for the simulation of the power electronic system model. Therefore, the non-power electronic signal module is placed in the CPU model, and the non-power electronic signal module is connected to the general power electronic solver interface module in the CPU model for signal transmission. The non-power electronic signal module at least includes: a signal source module and a control module; the signal source module is used to provide a power supply signal to the power electronic system model through the general power electronic solver interface module during real-time simulation; the control module is used to provide a switch control signal to the power electronic system model through the general power electronic solver interface module during real-time simulation. In practical applications, the signal source module and the control module can actually be some components in the non-power electronic signal module. The power supply signal refers to the current source signal and the voltage source signal. The current source signal is provided by a component that can maintain a constant current output. Its current output is not affected by the load, but its output voltage changes with the load. The voltage source signal is provided by components that can provide a fixed voltage output. Its output voltage will never change due to changes in the load, but its output current will change with the load size.

[0030] Step 102: The CPU model extracts characteristic information of the power electronic system model, establishes a standardized equation according to the characteristic information and the measurement signal of the measurement module in the power electronic system model, and sends the standardized equation to the power electronic solver of the FPGA.

[0031] Specifically, the feature extraction method can be used to automatically extract the feature information of the power electronic system model in sequence, and the feature information can be used to describe the power electronic system network composition and connection relationship of the power electronic system model. The measurement modules in the power electronic system model can be divided into two types, namely, voltage measurement module and current measurement module. The present application does not impose specific restrictions on the number of measurement modules. The measurement module is specifically used to measure the power energy relationship between multiple components, such as voltage difference, voltage sum, current difference, current sum, etc. The present application does not impose specific restrictions on this. According to the feature information and the measurement signal of the measurement module, a standardized equation is established and sent to the power electronic solver of the FPGA, so that the power electronic solver can solve the actual measurement result of the measurement module and then quantize the power electronic system model according to the measurement result to realize subsequent simulation.

[0032] In one example, the characteristic information includes at least: architecture information, component information, and interface information of the power electronic system model;

[0033] Among them, the architecture information is used to represent the connection relationship of each component in the power electronic system model, the voltage signal, current signal of each component and the coefficient of the measurement module in the power electronic system model; the component information is used to quantify the power electronic system model, including the type and characteristic parameters of each component; the interface information is used to indicate the source interface of the power signal and the switch control signal for clarifying the real-time simulation.

[0034] In another example, Figure 2 As shown, establishing a standardized equation based on the characteristic information and the measurement signal of the measurement module in the power electronic system model may specifically include the following steps:

[0035] Step 1021: construct a power electronic system network table with the architecture information, component information and interface information, and read the voltage and current signals at the ports of each component in the architecture information as state variables.

[0036] Specifically, after the architecture information, component information and interface information constitute the power electronic system network table, there is a corresponding relationship between the information of the same component. Therefore, after reading the voltage and current signals at the ports of each component as state variables from the power electronic system network table, it can be clear which component or components the information belongs to.

[0037] Step 1022: Read the characteristic parameters of each component, and generate KCL equations and KVL equations at the ports of each component according to Kirchhoff's law; sort and combine the KCL equations and KVL equations of each component according to the order of the components in the power electronic system network table, and construct a first standardized equation for multiplying the characteristic parameters and the state variables.

[0038] Specifically, the characteristic parameters of each component refer to the electrical parameters of different types of components, such as resistance, inductance, capacitance, etc. This application does not impose specific restrictions on the size of the characteristic parameters. Kirchhoff's law is one of the basic principles in circuit analysis, which is used to describe and solve the relationship between current and voltage in the circuit. It includes Kirchhoff's current law (KCL) and Kirchhoff's voltage law (KVL), which reflects the basic laws followed by all branch voltages and currents in the circuit. Kirchhoff's current law shows that at any node, the sum of the currents is equal to zero. Kirchhoff's voltage law is used to determine the relationship between the voltages of each segment in the loop, that is, when the loop circulates in a certain direction for one cycle, the sum of the potential drops is equal to the sum of the potential rises. According to the characteristic parameters and state variables of each component, the KCL equation and KVL equation at the port of each component can be generated. At the same time, the corresponding KCL equation and KVL equation are sorted and combined according to the order of the components in the power electronic system network table to form the first standardized equation for multiplying the characteristic parameters and the state variables.

[0039] Step 1023: Determine at least one state variable corresponding to each measurement module according to the components connected to each measurement module in the architecture information, analyze the relationship between the at least one state variable and the measurement signal measured by the corresponding measurement module, and construct a second standardized equation in which the coefficient of each measurement module is multiplied by the corresponding at least one state variable.

[0040] Specifically, since the state variables are the voltage and current signals at the ports of each component as state variables, the measurement module is used to measure the combined current or voltage signal between multiple components. Moreover, similar to the signal source module and the control module, the measurement module itself also belongs to a component and has corresponding characteristic parameters. When it performs measurement work, its characteristic parameters are included in the measured signal in the form of coefficients. Since the modules are coupled to each other, the state variables of some components may be irrelevant to the coefficients of the measurement module, but will affect the calculation of the remaining state variables. Therefore, all state variables must be obtained first, and then the measurement signal is solved through the state variables. Therefore, according to the connection information of the measurement module in the architecture information, that is, the connection relationship between the measurement module and other components in the power electronic system model, the state variables and characteristic parameters contained in the specific measured signal can be determined, and the relationship between multiple state variables and the measurement signal measured by the measurement module can be analyzed. In addition, combined with the coefficients of the measurement module that have been extracted in advance through the graphical model, the equation from the state variable to the voltage and current measurement is constructed. For example, taking the voltage sum of components measured by measurement module A as an example, after solving the first standardized equation, 5 state variables X = [x1; x2; x3; x4; x5] are obtained. The corresponding measurement module A is only connected to the components corresponding to x1 and x2. Then the measurement signal 1 of measurement module A is composed of the addition of the first two state variables. Then the second standardized equation is established as Y1 = CX, C = [1 1 0 0 0]. It can be seen that the standardized form of the parameters and state variables generated in this step can meet the requirements of solving the power electronic system model and outputting the voltage and current measurement results of each measurement module.

[0041] For example, the first standardized equation can be: x'=Ax+Bu; wherein A and B are parameter matrices used to calculate the state variables of each component, x is the state variable, x' is the derivative of x, and u is the input signal (power supply signal and switch control signal); accordingly, the second standardized equation can be: y=Cx+Du, wherein y is the measurement signal, matrix C is used to describe the relationship between the state variable and the measurement signal, and matrix D is used to describe the relationship between the input signal and the measurement signal.

[0042] In another example, sending the standardized equations to the power electronics solver of the FPGA includes: converting the first standardized equation, the second standardized equation and the interface information into a protocol required for sending to the FPGA; after the simulation starts, the protocol is sent to the power electronics solver through the CPU model.

[0043] It should be noted that FPGA can only communicate with the outside through a specific protocol. Therefore, the first standardized equation, the second standardized equation and the interface information need to be converted into the protocol required to be sent to the FPGA. At the beginning of the real-time simulation, the protocol is sent to the power electronics solver of the FPGA through the CPU model to implement the configuration of the power electronics system model and the interface. In addition, in order to prevent the large-scale parameter delivery from affecting the real-time simulation performance, the frame counting method can be used when sending the protocol. After the number of frames required for the protocol delivery is completed, the CPU model closes the configuration delivery channel to achieve subsequent efficient simulation.

[0044] Step 103: The power electronic solver receives the power signal and the switch control signal of the non-power electronic signal module, brings the power signal and the switch control signal into the standardized equation to solve the measurement result, and transmits the measurement result back to the CPU model.

[0045] Specifically, the power electronics model contains a measurement module, which measures the voltage or current signals at different positions (such as the voltage of several resistors, etc.). The measurement purpose of the measurement module is predetermined during modeling, and the general solver finally solves the measurement signal of the measurement module as the measurement result. When running the real-time simulation program, the FPGA will detect the issuance of the protocol in real time. When the protocol is received, the power electronics solver in the FPGA starts to solve. The general power electronics solver parses the interface information, receives the voltage source signal, current source signal and switch control signal according to the interface corresponding to the interface information (CPU, IO and FPGA), substitutes the above signals as input data into the standardized equation, and implements high-speed and high-precision solution of the state equation in the FPGA to solve the state variable. In addition, the measurement result of the corresponding measurement module is calculated according to the state variable, and the measurement result of the measurement module is used as the output of the power electronics solver and transmitted back to the external controller and the CPU model.

[0046] In one example, the power electronic solver receives a power signal and a switch control signal from a non-power electronic signal module, including:

[0047] The power electronic solver parses the interface information, and receives a power signal according to the power interface indicated by the interface information, and receives a switch control signal according to the switch interface indicated by the interface information.

[0048] In another example, the power supply signal includes a current source signal and a voltage source signal; on this basis, the power supply signal and the switch control signal are brought into the standardized equation to solve the measurement result in step 103, including:

[0049] The current source signal, the voltage source signal and the switch control signal are substituted into the first standardized equation, and the power electronic solver solves the state variable; the state variable is substituted into the second standardized equation, and the power electronic solver solves the value of the measurement signal as the measurement result, and the measurement result includes the voltage measurement value and the current measurement value.

[0050] Step 104: The CPU model utilizes the measurement results to couple with the non-power electronic signal module to achieve joint simulation.

[0051] Specifically, Figure 3 As shown in the figure, after the CPU model receives the measurement results, the power system model in the CPU couples the measurement results and the non-power electronic model in the CPU model to realize joint simulation. Then the voltage source signal and current source signal (initial default is zero) calculated by the CPU model are sent to the FPGA power electronic solver to realize the next real-time simulation operation.

[0052] In one example, after step 104, this embodiment also includes the following steps: the CPU model gives a new voltage source signal, a new current source signal, and a new switch control signal according to the simulation results, and enables the non-power electronic signal module to use the new voltage source signal and the new current source signal as new power supply signals, and send them together with the new switch control signal to the power electronic solver again.

[0053] Specifically, after the simulation, a new voltage source signal, a new current source signal and a new switch control signal can be solved, and the new voltage source signal, the new current source signal and the new switch control signal can be input into the power electronics solver in the FPGA again for the next simulation.

[0054] Compared with related technologies, the power electronics system model is built through graphical modeling software and processed in real time. The power electronics system model includes: power electronics signal module and non-power electronics signal module; the CPU model extracts the characteristic information of the power electronics system model, establishes a standardized equation based on the characteristic information and the measurement signal of the measurement module in the power electronics system model, and sends the standardized equation to the power electronics solver of the FPGA; the power electronics solver receives the power signal and switch control signal of the non-power electronics signal module, brings the power signal and switch control signal into the standardized equation to solve the measurement result, and transmits the measurement result back to the CPU model; the CPU model uses the measurement result to couple with the non-power electronics signal module to realize joint simulation. This solution quantifies the mathematical model of the power electronics system model by solving the measurement result of the measurement module, and converts it into a real-time simulation model after coupling with the non-power electronics signal module, which can realize accurate simulation of the power electronics system, thereby supporting large-scale power electronics real-time simulation needs and ensuring the accuracy and real-time performance of the simulation results. .

[0055] Another embodiment of the present application relates to a power electronic system based on FPGA, such as Figure 4 As shown, it specifically includes: power electronic system model, CPU model and FPGA power electronic solver;

[0056] Among them, the power electronic system model is built through graphical modeling software and processed in real time; the power electronic system model includes: power electronic signal module and non-power electronic signal module;

[0057] The CPU model is used to extract characteristic information of the power electronic system model, establish a standardized equation based on the characteristic information and the measurement signal of the measurement module in the power electronic system model, and send the standardized equation to the power electronic solver of the FPGA;

[0058] A power electronic solver is used to receive the power signal and the switch control signal of the non-power electronic signal module, bring the power signal and the switch control signal into the standardized equation to solve the measurement result, and transmit the measurement result back to the CPU model;

[0059] CPU model for co-simulation using measurement results coupled with non-power electronic signal modules.

[0060] Specifically, FPGA (Field Programmable Gate Array), FPGA devices are a kind of semi-custom circuit in application-specific integrated circuits. They are programmable logic arrays that can effectively solve the problem of the small number of gate circuits in the original device. The basic structure of FPGA includes programmable input and output units, configurable logic blocks, digital clock management modules, embedded block RAM, wiring resources, embedded dedicated hard cores, and bottom embedded functional units. Since FPGA has the characteristics of rich wiring resources, reprogrammable and high integration, and low investment, it has been widely used in the field of digital circuit design. In this embodiment, the measurement results are settled based on the power electronic solver in FPGA.

[0061] It is not difficult to find that this embodiment is a system embodiment corresponding to the aforementioned FPGA-based power electronic system simulation method embodiments, and the relevant technical details mentioned in the aforementioned embodiments are still valid in this embodiment. In order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied to the aforementioned embodiments.

[0062] The step division of the above methods is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this application; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this application.

[0063] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0064] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A power electronic system simulation method based on FPGA, characterized in that: The power electronic system includes: a power electronic system model, a CPU model and a power electronic solver of an FPGA; the simulation method includes: The power electronic system model is constructed by means of graphical modeling software and real-time processing is performed; the power electronic system model includes: a power electronic signal module and a non-power electronic signal module; The CPU model extracts characteristic information of the power electronic system model, establishes a standardized equation according to the characteristic information and a measurement signal of a measurement module in the power electronic system model, and sends the standardized equation to a power electronic solver of the FPGA; The power electronic solver receives the power signal and the switch control signal of the non-power electronic signal module, brings the power signal and the switch control signal into the standardized equation to solve the measurement result, and transmits the measurement result back to the CPU model; The CPU model utilizes the measurement results to couple with the non-power electronic signal module to achieve joint simulation.

2. The method according to claim 1, characterized in that The real-time processing of the power electronic system model includes: Placing the non-power electronic signal module into the CPU model, connecting the non-power electronic signal module to a universal power electronic solver interface module in the CPU model; Among them, the non-power electronic signal module at least includes: a signal source module and a control module; the signal source module is used to provide the power supply signal to the power electronic system model through the universal power electronic solver interface module during real-time simulation; the control module is used to provide the switch control signal to the power electronic system model through the universal power electronic solver interface module during real-time simulation.

3. The method according to claim 2, characterized in that The characteristic information at least includes: architecture information, component information and interface information of the power electronic system model; The architecture information is used to represent the connection relationship between each component in the power electronic system model, the voltage signal, current signal of each component and the coefficient of the measurement module in the power electronic system model; the component information is used to quantify the power electronic system model, including the type and characteristic parameters of each component; the interface information is used to represent the source of the power supply signal and the switch control signal for clarifying real-time simulation.

4. The method according to claim 3, characterized in that A standardized equation is established according to the characteristic information and a measurement signal of a measurement module in the power electronic system model, including: The architecture information, the component information and the interface information constitute a power electronic system network table, and the voltage and current signals at the ports of each component in the architecture information are read as state variables; Read the characteristic parameters of each component, and generate KCL equations and KVL equations at the ports of each component according to Kirchhoff's law; sort and combine the KCL equations and KVL equations of each component according to the order of the components in the power electronic system network table, and construct a first standardized equation for multiplying the characteristic parameters by the state variable; According to the components connected to each of the measurement modules in the architecture information, at least one of the state variables corresponding to each of the measurement modules is determined, the relationship between at least one of the state variables and the measurement signal measured by the corresponding measurement module is analyzed, and a second standardized equation is constructed by multiplying the coefficient of each of the measurement modules by the corresponding at least one state variable.

5. The method according to claim 4, characterized in that The sending of the standardized equation to the power electronic solver of the FPGA includes: Convert the first standardized equation, the second standardized equation and the interface information into a protocol required for sending to the FPGA; After the simulation starts, the protocol is sent to the power electronics solver through the CPU model.

6. The method according to claim 5, characterized in that The power electronic solver receives the power supply signal and the switch control signal of the non-power electronic signal module, including: The power electronic solver parses the interface information, receives the power signal according to the power interface indicated by the interface information, and receives the switch control signal according to the switch interface indicated by the interface information.

7. The method according to claim 4, characterized in that The power supply signal includes a current source signal and a voltage source signal; Substituting the power supply signal and the switch control signal into the standardized equation to solve the measurement result includes: Substituting the current source signal, the voltage source signal and the switch control signal into the first standardized equation, the power electronic solver solving the state variable; The state variable is introduced into the second standardized equation, and the power electronic solver solves the value of the measurement signal as a measurement result, wherein the measurement result includes a voltage measurement value and a current measurement value.

8. The method according to claim 2, characterized in that: After the CPU model utilizes the measurement result to couple with the non-power electronic signal module to realize joint simulation, the method further includes: The CPU model gives a new voltage source signal, a new current source signal and a new switch control signal according to the simulation results, and enables the non-power electronic signal module to use the new voltage source signal and the new current source signal as new power supply signals, and send them together with the new switch control signal to the power electronic solver again.

9. A power electronic system based on FPGA, characterized in that: include: Power electronics system models, CPU models, and power electronics solvers for FPGAs; The power electronic system model is constructed by graphical modeling software and processed in real time; the power electronic system model includes: a power electronic signal module and a non-power electronic signal module; The CPU model is used to extract characteristic information of the power electronic system model, establish a standardized equation according to the characteristic information and a measurement signal of a measurement module in the power electronic system model, and send the standardized equation to a power electronic solver of the FPGA; The power electronic solver is used to receive the power signal and the switch control signal of the non-power electronic signal module, bring the power signal and the switch control signal into the standardized equation to solve the measurement result, and transmit the measurement result back to the CPU model; The CPU model is used to utilize the measurement results to couple with the non-power electronic signal module to realize joint simulation.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the FPGA-based power electronic system simulation method according to any one of claims 1 to 8 is implemented.