CN110750889A - Real-time simulator Ethernet communication device based on FPGA - Google Patents

Real-time simulator Ethernet communication device based on FPGA Download PDF

Info

Publication number
CN110750889A
CN110750889A CN201910966952.1A CN201910966952A CN110750889A CN 110750889 A CN110750889 A CN 110750889A CN 201910966952 A CN201910966952 A CN 201910966952A CN 110750889 A CN110750889 A CN 110750889A
Authority
CN
China
Prior art keywords
module
input
output end
state
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910966952.1A
Other languages
Chinese (zh)
Other versions
CN110750889B (en
Inventor
赵利刚
洪潮
翟鹤峰
王长香
周挺辉
甄鸿越
黄冠标
吴小珊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Co Ltd
Research Institute of Southern Power Grid Co Ltd
Original Assignee
China Southern Power Grid Co Ltd
Research Institute of Southern Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Co Ltd, Research Institute of Southern Power Grid Co Ltd filed Critical China Southern Power Grid Co Ltd
Priority to CN201910966952.1A priority Critical patent/CN110750889B/en
Publication of CN110750889A publication Critical patent/CN110750889A/en
Application granted granted Critical
Publication of CN110750889B publication Critical patent/CN110750889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses an Ethernet communication device of a real-time simulator based on FPGA, which comprises a shared memory RAM, a memory manager, a network communication processor, a network data transceiver module, a simulation data storage module and an MAC module, wherein the shared memory RAM is used for storing simulation data; the shared memory RAM is respectively connected with the network communication processor, the network data transceiving module and the simulation data storage module and is used for storing data; the memory manager is respectively connected with the network communication processor, the network data transceiver module and the simulation data storage module and is used for allocating memory areas; the network communication processor is also connected with the MAC module and used for finishing the initialization of the MAC module; the network data transceiver module is connected with the MAC module and is used for completing the mutual transmission of network data packets; the simulation data storage module is connected with the real-time simulator and used for receiving simulation result data; and the MAC module is connected with the computer system through the Ethernet and is used for receiving control instructions and transmitting data. The invention can meet the requirement of fast data output of the FPGA real-time simulator.

Description

Real-time simulator Ethernet communication device based on FPGA
Technical Field
The invention relates to the technical field of design of real-time simulators of electric power systems, in particular to an Ethernet communication device of a real-time simulator based on an FPGA.
Background
With the access of a large number of resources on the power distribution side such as a distributed power supply, an energy storage device, a micro-grid and the like, the organization structure and the operation characteristics of the active power distribution network are changed deeply, so that the steady state simulation analysis of the traditional power distribution network cannot meet the requirements, and the operation mechanism and the dynamic characteristics of the active power distribution network need to be deeply known by means of fine transient simulation. The FPGA has a large number of parallel bottom layer structures and distributed memories, and depth parallel calculation can be realized; meanwhile, the processing speed of the digital signal is improved by adopting a pipeline operation mode, the FPGA active power distribution network real-time simulator can be used for real-time simulation of an active power distribution network, but a large amount of simulation result data can be generated during the operation of the FPGA active power distribution network real-time simulator, a communication device with high bandwidth, low delay and real-time property guarantee needs to be configured, and no communication device meeting the requirements is available in the market at present.
Disclosure of Invention
The embodiment of the invention aims to provide the FPGA-based real-time simulator Ethernet communication device which has the characteristics of low time delay and high-speed communication capacity and can meet the requirement of the rapid data output of the FPGA real-time simulator.
In order to achieve the above object, an embodiment of the present invention provides an ethernet communication device for a real-time simulator based on an FPGA, which includes a shared memory RAM, a memory manager, a network communication processor, a network data transceiver module, a simulation data storage module, and an MAC module; wherein the content of the first and second substances,
a first input/output end of the shared memory RAM is connected with a first input/output end of the network communication processor, a second input/output end of the shared memory RAM is connected with a first input/output end of the network data transceiver module, and an input end of the shared memory RAM is connected with an output end of the simulation data storage module and is used for storing data sent by the network communication processor, the network data transceiver module and the simulation data storage module;
a first input/output end of the memory manager is connected with a second input/output end of the network communication processor, a second input/output end of the memory manager is connected with a second input/output end of the network data transceiver module, and a third input/output end of the memory manager is connected with an input/output end of the simulation data storage module, and is used for allocating memory areas for the network communication processor, the network data transceiver module and the simulation data storage module;
a third input/output end of the network communication processor is connected with the first input/output end of the MAC module and is used for finishing the initialization of the MAC module;
the third input/output end of the network data transceiver module is connected with the second input/output end of the MAC module through a bus and is used for finishing the mutual transmission of network data packets;
the input end of the simulation data storage module is connected with the output end of the real-time simulator and used for receiving simulation result data generated by the real-time simulator;
the MAC module is connected with an external computer system through Ethernet and used for receiving control instructions of the computer system and transmitting data to the computer system.
Preferably, M data storage areas and N temporary variable storage areas are arranged in the shared memory RAM, and the length of each data storage area is N bytes; wherein M is more than or equal to 1, N is more than or equal to 1, and N is more than or equal to 1500.
Preferably, M state variables are correspondingly set in the memory manager, and the state variable of the ith data storage area is sig _ stateiWherein i is more than or equal to 1 and less than or equal to M, the idle state is sig _ state _ idle, the received network data state is sig _ state _ rx _ eth, the received simulation data state is sig _ state _ rx _ sim, the sent network data state is sig _ state _ tx _ eth, and the network communication processor state is sig _ state _ ena.
Preferably, the network communication processor comprises an instruction decoding module, a control module, an arithmetic processing module, a jump processing module, an instruction memory ROM and a register set RAM; wherein the content of the first and second substances,
the instruction decoding module is used for reading the instruction in the instruction storage ROM and decomposing the instruction into an instruction code, a first operand, a second operand, a memory addressing mode and an immediate field;
the control module is used for completing the operation of taking a first operand and the operation of taking a second operand; the arithmetic processing module is used for sending an arithmetic instruction to the arithmetic processing module and sending a jump instruction to the jump processing module; the register group RAM and the shared memory RAM are used for writing the output result of the arithmetic processing module and the output result of the jump processing module into the register group RAM and the shared memory RAM;
the arithmetic processing module is configured to receive the first operand, the second operand, and the operation instruction sent by the control module, and output a calculation result obtained by performing the instruction encoding specified arithmetic operation on the first operand and the second operand;
and the jump processing module is used for receiving the jump instruction and the destination address sent by the control module and realizing the functions of selection, circulation and shutdown of the network communication processor.
Preferably, a first end of the control module is connected to a first input/output end of the shared memory RAM, a second end of the control module is connected to a first input/output end of the MAC module, and a third end of the control module is connected to an input end of the real-time simulator.
Preferably, the jump processing module is connected to a first input/output end of the memory manager.
Compared with the prior art, the Ethernet communication device of the real-time simulator based on the FPGA provided by the embodiment of the invention fully considers the requirements and characteristics of simulation data output, utilizes the high-speed computing capability and the high-speed network communication capability of the FPGA, improves the speed of simulation data output under the condition of ensuring the real-time performance of the simulation data output, has the characteristics of low time delay and high-speed communication capability, and can meet the requirement of the rapid data output of the FPGA real-time simulator.
Drawings
Fig. 1 is a schematic structural diagram of an ethernet communication device of a real-time simulator based on an FPGA according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a network communication processor according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an exemplary photovoltaic power generation system according to an embodiment of the present invention;
fig. 4 is a real-time waveform diagram of a-phase voltage and time for simulation of a photovoltaic power generation system according to an embodiment of the present invention;
FIG. 5 is a real-time waveform of phase A current versus time for a photovoltaic power generation system simulation according to an embodiment of the present invention;
FIG. 6 is a real-time waveform of DC voltage versus time for a simulation of a photovoltaic power generation system according to an embodiment of the present invention;
FIG. 7 is a real-time waveform of active power versus time for a simulation of a photovoltaic power generation system according to an embodiment of the present invention;
FIG. 8 is a real-time waveform of reactive power versus time for a simulation of a photovoltaic power generation system according to an embodiment of the present invention;
FIG. 9 is a real-time waveform of frequency versus time for a simulation of a photovoltaic power generation system according to an embodiment of the present invention;
fig. 10 is a real-time phase angle versus time waveform diagram for a photovoltaic power generation system simulation according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, which is a schematic structural diagram of an ethernet communication device of a real-time simulator based on an FPGA according to an embodiment of the present invention, the ethernet communication device includes a shared memory RAM, a memory manager, a network communication processor, a network data transceiver module, a simulation data storage module, and an MAC module; wherein the content of the first and second substances,
a first input/output end of the shared memory RAM is connected with a first input/output end of the network communication processor, a second input/output end of the shared memory RAM is connected with a first input/output end of the network data transceiver module, and an input end of the shared memory RAM is connected with an output end of the simulation data storage module and is used for storing data sent by the network communication processor, the network data transceiver module and the simulation data storage module;
a first input/output end of the memory manager is connected with a second input/output end of the network communication processor, a second input/output end of the memory manager is connected with a second input/output end of the network data transceiver module, and a third input/output end of the memory manager is connected with an input/output end of the simulation data storage module, and is used for allocating memory areas for the network communication processor, the network data transceiver module and the simulation data storage module;
a third input/output end of the network communication processor is connected with the first input/output end of the MAC module and is used for finishing the initialization of the MAC module;
the third input/output end of the network data transceiver module is connected with the second input/output end of the MAC module through a bus and is used for finishing the mutual transmission of network data packets;
the input end of the simulation data storage module is connected with the output end of the real-time simulator and used for receiving simulation result data generated by the real-time simulator;
the MAC module is connected with an external computer system through Ethernet and used for receiving control instructions of the computer system and transmitting data to the computer system.
Specifically, the FPGA-based real-time simulator Ethernet communication device comprises a shared memory RAM, a memory manager, a network communication processor, a network data receiving and transmitting module, a simulation data storage module and an MAC module; the connection and the function among the modules are as follows:
the first input/output end of the shared memory RAM is connected with the first input/output end of the network communication processor, the second input/output end of the shared memory RAM is connected with the first input/output end of the network data transceiver module, the input end of the shared memory RAM is connected with the output end of the simulation data storage module, used for storing the data sent by the network communication processor, the network data transceiver module and the simulation data storage module, the network communication data storage module is used for storing data sent by the network communication processor, the network data transceiver module and the simulation data storage module, and specifically, the network communication processor stores network communication data to the shared memory RAM, the network data transceiver module stores network data to the shared memory RAM, and the simulation data storage module stores simulation result data to the shared memory RAM.
The first input/output end of the memory manager is connected with the second input/output end of the network communication processor, the second input/output end of the memory manager is connected with the second input/output end of the network data transceiver module, the third input/output end of the memory manager is connected with the input/output end of the simulation data storage module, used for allocating memory areas for the network communication processor, the network data transceiver module and the simulation data storage module, the memory manager is responsible for managing the data storage area of the shared memory RAM, which is provided with state variables corresponding to data storage areas of the shared memory RAM, allocated according to the state variables when allocating the memory areas, therefore, the distributed memory areas of the network communication processor, the network data transceiver module and the simulation data storage module are ensured not to conflict with each other.
The third input/output end of the network communication processor is connected with the first input/output end of the MAC module and is used for finishing the initialization of the MAC module, and the network communication processor can finish the initialization of the MAC module and the Ethernet chip in the FPGA development board when the FPGA power supply is started correspondingly.
And the third input/output end of the network data transceiver module is connected with the second input/output end of the MAC module through a bus and is used for finishing the mutual transmission of network data packets. Wherein the bus is an Avalon-ST bus. After the network communication processor processes simulation result data in the shared memory RAM to generate a network data packet, the network communication processor sends a control signal to the memory manager, and hands over the network data packet to the network data transceiver module, so that the network data transceiver module can send the network data packet to the MAC module through the Avalon-ST bus, and the MAC module and the Ethernet chip send the network data packet to the computer system through the Ethernet. When the computer system transmits an external network data packet to the MAC module, the MAC module transmits the external network data packet to the network data transceiver module through the Avalon-ST bus, the network data transceiver module writes the network data packet into an idle data storage area, after the writing is finished, the network data transceiver module sends a control signal to the memory manager, the network data packet is handed over to the network communication processor, and a new idle data storage area is applied to the memory manager for allocation. The two processes of mutually transmitting the network data packets are independent and do not influence each other.
The input end of the simulation data storage module is connected with the output end of the real-time simulator and used for receiving simulation result data generated by the real-time simulator; the real-time simulator is an active power distribution network real-time simulator and is used for carrying out simulation calculation to obtain simulation result data. And the simulation data storage module writes the obtained simulation result data into a free data storage area in the RAM of the shared memory.
And the MAC module is connected with an external computer system through Ethernet and used for receiving control instructions of the computer system and transmitting data to the computer system. The computer system typically sends a start signal to the FPGA via the ethernet, where it is received by the MAC module and then transmitted via the Avalon-ST bus. The network data packet generated in the FPGA is transmitted to the computer system through the MAC module.
According to the Ethernet communication device of the real-time simulator based on the FPGA, provided by the embodiment of the invention, the requirement and the characteristic of simulation data output are fully considered, the high-speed computing capability and the high-speed network communication capability of the FPGA are utilized, the speed of simulation data output is increased under the condition of ensuring the real-time property of the simulation data output, the Ethernet communication device has the characteristics of low time delay and high-speed communication capability, and the rapid data output of the FPGA real-time simulator can be met.
As an improvement of the above scheme, M data storage areas and N temporary variable storage areas are arranged in the shared memory RAM, and the length of each data storage area is N bytes; wherein M is more than or equal to 1, N is more than or equal to 1, and N is more than or equal to 1500.
Specifically, M data storage areas and N temporary variable storage areas are arranged in a shared memory RAM, and the length of each data storage area is N bytes; wherein M is more than or equal to 1, N is more than or equal to 1, and N is more than or equal to 1500. Preferably, M is 8 and N is 1. The shared memory RAM is mainly used for storing simulation result data generated in the simulation process and data interaction involved in the simulation calculation process.
As an improvement on the aboveM state variables are correspondingly arranged in the memory manager, and the state variable of the ith data storage area is sig _ stateiWherein i is more than or equal to 1 and less than or equal to M, the idle state is sig _ state _ idle, the received network data state is sig _ state _ rx _ eth, the received simulation data state is sig _ state _ rx _ sim, the sent network data state is sig _ state _ tx _ eth, and the network communication processor state is sig _ state _ ena.
Specifically, M state variables are correspondingly set in the memory manager, and the state variable of the ith data storage area is sig _ stateiWherein i is more than or equal to 1 and less than or equal to M, the idle state is sig _ state _ idle, the received network data state is sig _ state _ rx _ eth, the received simulation data state is sig _ state _ rx _ sim, the sent network data state is sig _ state _ tx _ eth, and the network communication processor state is sig _ state _ ena. The memory manager allocates the memory area according to the state variable of the data storage area.
Generally, the state variable sig _ stateiSetting an initial value as a state sig _ state _ ena of the network communication processor; when the control signal of the network communication processor is 1, the state variable sig _ state of the network communication processor state sig _ state _ ena isiSetting to send network data state sig _ state _ tx _ eth; when the control signal of the simulation data saving module is '1', the state variable sig _ state of the simulation data receiving state sig _ state _ rx _ sim isiSetting the state as the state sig _ state _ ena of the network communication processor, and setting the state variable sig _ state in the idle state sig _ state _ idleiSet to receive the simulated data state sig _ state _ rx _ sim; when the network data receiving and transmitting module receives the network data and the control signal is '01', the state variable sig _ state at the state of receiving the network data sig _ state _ rx _ eth isiSetting the state as the state sig _ state _ ena of the network communication processor, and setting the state variable sig _ state in the idle state sig _ state _ idleiSet to receive the network data state sig _ state _ rx _ eth; when the network data transmitting and receiving module finishes transmitting the network data and the control signal is 10, the state variable sig _ state of the network data transmitting state sig _ state _ tx _ eth isiIs set to be idleState sig _ state _ idle.
When the state variable is changed, each module accesses the corresponding data storage area, for example, the network communication processor accesses the data storage area currently in the state of the network communication processor, the network data transceiver module accesses the data storage area currently in the state of receiving network data and sending network data, and the simulation data storage module accesses the data storage area currently in the state of receiving simulation data.
As an improvement of the above scheme, the network communication processor comprises an instruction decoding module, a control module, an arithmetic processing module, a jump processing module, an instruction memory ROM and a register bank RAM; wherein the content of the first and second substances,
the instruction decoding module is used for reading the instruction in the instruction storage ROM and decomposing the instruction into an instruction code, a first operand, a second operand, a memory addressing mode and an immediate field;
the control module is used for completing the operation of taking a first operand and the operation of taking a second operand; the arithmetic processing module is used for sending an arithmetic instruction to the arithmetic processing module and sending a jump instruction to the jump processing module; the register group RAM and the shared memory RAM are used for writing the output result of the arithmetic processing module and the output result of the jump processing module into the register group RAM and the shared memory RAM;
the arithmetic processing module is configured to receive the first operand, the second operand, and the operation instruction sent by the control module, and output a calculation result obtained by performing the instruction encoding specified arithmetic operation on the first operand and the second operand;
and the jump processing module is used for receiving the jump instruction and the destination address sent by the control module and realizing the functions of selection, circulation and shutdown of the network communication processor.
Fig. 2 is a schematic structural diagram of a network communication processor according to an embodiment of the present invention. As can be seen from fig. 2, the network communication processor includes an instruction decoding module, a control module, an arithmetic processing module, a jump processing module, an instruction memory ROM, and a register set RAM; wherein the content of the first and second substances,
the instruction decoding module is used for reading an instruction in the instruction storage ROM and decomposing the instruction into an instruction code, a first operand, a second operand, a memory addressing mode and an immediate field;
the control module is used for completing the operation of taking a first operand and the operation of taking a second operand, particularly accessing the register bank RAM according to the first operand to complete the operation of taking the first operand, and accessing the register bank RAM and the shared memory RAM according to the second operand, a memory addressing mode and an immediate field to complete the operation of taking the second operand. The control module is also used for sending an operation instruction to the arithmetic processing module and sending a jump instruction to the jump processing module, and specifically, sending control signals to the arithmetic processing module and the jump processing module according to the instruction code, the first operand, the second operand, the memory addressing mode and the immediate field to complete the operation specified by the instruction code. The control module is further used for writing the output result of the arithmetic processing module and the output result of the jump processing module into the register bank RAM and the shared memory RAM, and specifically, the output results of the arithmetic processing module and the jump processing module are written into the register bank RAM and the shared memory RAM according to the instruction code, the first operand, the second operand, the memory addressing mode and the immediate field, so that the storage of the instruction operation result is completed.
The arithmetic processing module is used for receiving the first operand, the second operand and the operation instruction sent by the control module and outputting a calculation result obtained after the first operand and the second operand are subjected to instruction coding and appointed arithmetic operation; the operation instruction is an instruction for performing a specified operation based on an instruction code.
And the jump processing module is used for receiving the jump instruction and the destination address sent by the control module and realizing the functions of selection, circulation and shutdown of the network communication processor. The jump instruction corresponds to an instruction code, and the jump processing module receives the jump instruction, namely receives the instruction code. When the stop instruction is executed, the current instruction pointer is set to be 0, and a control signal is sent to the memory manager according to the first operand, so that the change of the state variable of the data storage area is completed.
As an improvement of the above scheme, a first end of the control module is connected to a first input/output end of the shared memory RAM, a second end of the control module is connected to a first input/output end of the MAC module, and a third end of the control module is connected to an input end of the real-time emulator.
Specifically, the first terminal of the control module is connected to the first input/output terminal of the shared memory RAM, in order to store the second operand of the control module and the instruction operation result to the shared memory RAM. The second end of the control module is connected to the first input/output end of the MAC module, which is convenient for the control module, i.e. the network communication processor, to perform initialization processing on the MAC module. The third end of the control module is connected with the input end of the real-time simulator, and the purpose is to send a starting signal generated by the control module, namely the network communication processor, to the real-time simulator so as to enable the real-time simulator to start simulation.
As an improvement of the above scheme, the jump processing module is connected to a first input/output end of the memory manager.
Specifically, the jump processing module is connected to a first input/output end of the memory manager, which is to say that the first input/output end of the corresponding memory manager is connected to a second input/output end of the network communication processor, which is to satisfy the requirement that the network communication processor sends a control signal to the memory manager to complete the change of the state variable of the data storage area.
In order to deepen understanding of the invention, the embodiment of the invention provides a simulation method of an ethernet communication device of a real-time simulator based on an FPGA, which comprises the following specific steps:
1) starting an FPGA power supply, and finishing initialization of an MAC module in the FPGA and an Ethernet chip in an FPGA development board by a network communication processor;
2) the computer system sends a start signal to the FPGA through the Ethernet, the MAC module transmits the start signal through an Avalon-ST bus, the network data transceiver module writes the start signal into an idle data storage area in a shared memory RAM, then sends a first control signal to the memory manager, hands over the start signal to the network communication processor, and applies for allocating a new first idle data storage area to the memory manager;
3) the network communication processor judges a start signal received by the RAM, if the received start signal is a simulation starting command, the next step is carried out, and if not, the step 2) is returned;
4) setting the simulation time t as 0, and starting simulation;
5) the simulation time is advanced by one step length, and t is t + delta t;
6) the active power distribution network real-time simulator completes the simulation calculation of the current time step to obtain simulation result data, and the simulation result data are written into an idle data storage area in the shared memory RAM by the simulation data storage module;
7) judging whether a data storage area where simulation result data are located is full, if the data storage area is full, sending a second control signal to a memory manager by a simulation data storage module, transferring the simulation result data to a network communication processor, applying for distributing a new second idle data storage area to the memory manager by the simulation data storage module, and if the data storage area where the simulation result data are located is not full, jumping to the step 10);
8) after the network communication processor processes the simulation result data in the shared memory RAM to generate a network data packet, the network communication processor sends a third control signal to the memory manager, and hands over the network data packet to the network data transceiver module;
9) the network data transceiving module sends the network data packet to the MAC module through an Avalon-ST bus, and the MAC module and the Ethernet chip send the network data packet to the computer system through the Ethernet;
10) and judging whether the simulation time reaches the set simulation finishing time, if so, finishing the simulation, otherwise, returning to the step 5).
The handover of the data storage area mentioned in the above step refers to a change of a state variable of the data storage area, and when the state variable is changed, each module accesses the corresponding data storage area.
In order to show the effectiveness of the invention, the embodiment of the invention provides a simulation example, and referring to fig. 3, the simulation example is a mathematical example topological diagram of a photovoltaic power generation system provided by the embodiment of the invention. In the embodiment, the real-time simulator adopts a Stratix V series FPGA 5SGSMD5K2F40C2 of Altera company and a matched official development board thereof, the whole active power distribution network real-time simulator is driven by a 125MHz clock, the FPGA is connected with a computer system through a gigabit Ethernet, and a simulation result is transmitted to the computer system in real time through an Ethernet communication device for display. As can be seen from fig. 3, the main structure of the photovoltaic power generation system is that the unipolar photovoltaic power generation unit is connected with an infinite bus. In the photovoltaic power generation unit, the inverter adopts Vdc-Q control, photovoltaic voltage reference VrefGiven in constant form, the temperature was set to 298K, V in the examplerefSet to 350V and Qref to 0Var, ensuring unity power factor operation. The power supply and the transformer are simulated by adopting a voltage source connected in series with a constant impedance. In the example, the electrical system contains 5 power class elements (2 controlled current sources and 1 three-phase voltage source), 11 RLC elements, 6 IGBTs, 6 diodes, 8 measurement elements. The calculation example adopts 5 microsecond simulation step length, the output quantity comprises three-phase voltage, three-phase current, direct current voltage, active power, reactive power, frequency, phase angle and illumination intensity, wherein the three-phase voltage and the three-phase current are represented by double-precision floating point numbers, other quantities are represented by single-precision floating point numbers, a simulation result is output to a computer system every two step lengths, and the transmission speed reaches 57.6 Mbps. Fig. 4 to 10 show real-time waveforms drawn after the simulation result is transmitted to the computer system through the ethernet communication device. As can be seen from fig. 4 to fig. 10, the transmission of simulation result data is real and reliable, the waveform is clear and complete, and the situations of transmission interruption, data loss and the like do not occur, so that the effectiveness of the ethernet communication device of the active power distribution network real-time simulator based on the FPGA provided by the invention is verified.
In summary, the ethernet communication device of the real-time simulator based on the FPGA provided by the embodiment of the present invention fully considers the requirement and characteristics of the simulation data output, utilizes the high-speed computing capability and the high-speed network communication capability of the FPGA, improves the speed of the simulation data output under the condition of ensuring the real-time performance of the simulation data output, meets the data output requirement of the small-step active power distribution network real-time simulator with the simulation step length of only a few microseconds, and lays a foundation for utilizing the computer system to store and analyze the result of the FPGA active power distribution network real-time simulator. The Ethernet communication device has the characteristics of high bandwidth, low time delay and capability of ensuring real-time performance and data integrity, and can meet the requirement of rapid data output of the FPGA real-time simulator.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (6)

1. An Ethernet communication device of a real-time simulator based on FPGA is characterized by comprising a shared memory RAM, a memory manager, a network communication processor, a network data transceiver module, a simulation data storage module and an MAC module; wherein the content of the first and second substances,
a first input/output end of the shared memory RAM is connected with a first input/output end of the network communication processor, a second input/output end of the shared memory RAM is connected with a first input/output end of the network data transceiver module, and an input end of the shared memory RAM is connected with an output end of the simulation data storage module and is used for storing data sent by the network communication processor, the network data transceiver module and the simulation data storage module;
a first input/output end of the memory manager is connected with a second input/output end of the network communication processor, a second input/output end of the memory manager is connected with a second input/output end of the network data transceiver module, and a third input/output end of the memory manager is connected with an input/output end of the simulation data storage module, and is used for allocating memory areas for the network communication processor, the network data transceiver module and the simulation data storage module;
a third input/output end of the network communication processor is connected with the first input/output end of the MAC module and is used for finishing the initialization of the MAC module;
the third input/output end of the network data transceiver module is connected with the second input/output end of the MAC module through a bus and is used for finishing the mutual transmission of network data packets;
the input end of the simulation data storage module is connected with the output end of the real-time simulator and used for receiving simulation result data generated by the real-time simulator;
the MAC module is connected with an external computer system through Ethernet and used for receiving control instructions of the computer system and transmitting data to the computer system.
2. The FPGA-based real-time emulator Ethernet communication device of claim 1, wherein M data storage areas and N temporary variable storage areas are provided in the shared memory RAM, each data storage area having a length of N bytes; wherein M is more than or equal to 1, N is more than or equal to 1, and N is more than or equal to 1500.
3. The ethernet communication device for FPGA-based real-time emulator of claim 2, wherein M state variables are correspondingly disposed in the memory manager, and the state variable of the ith data storage area is sig _ stateiWherein i is more than or equal to 1 and less than or equal to M, the idle state is sig _ state _ idle, the received network data state is sig _ state _ rx _ eth, the received simulation data state is sig _ state _ rx _ sim, the sent network data state is sig _ state _ tx _ eth, and the network communication processor state is sig _ state _ ena.
4. The FPGA-based real-time emulator Ethernet communication device of claim 1, wherein the network communication processor comprises an instruction decoding module, a control module, an arithmetic processing module, a jump processing module, an instruction memory ROM, and a register set RAM; wherein the content of the first and second substances,
the instruction decoding module is used for reading the instruction in the instruction storage ROM and decomposing the instruction into an instruction code, a first operand, a second operand, a memory addressing mode and an immediate field;
the control module is used for completing the operation of taking a first operand and the operation of taking a second operand; the arithmetic processing module is used for sending an arithmetic instruction to the arithmetic processing module and sending a jump instruction to the jump processing module; the register group RAM and the shared memory RAM are used for writing the output result of the arithmetic processing module and the output result of the jump processing module into the register group RAM and the shared memory RAM;
the arithmetic processing module is configured to receive the first operand, the second operand, and the operation instruction sent by the control module, and output a calculation result obtained by performing the instruction encoding specified arithmetic operation on the first operand and the second operand;
and the jump processing module is used for receiving the jump instruction and the destination address sent by the control module and realizing the functions of selection, circulation and shutdown of the network communication processor.
5. The FPGA-based real-time emulator Ethernet communication device of claim 4, wherein a first terminal of the control module is connected to a first input/output terminal of the shared memory RAM, a second terminal of the control module is connected to a first input/output terminal of the MAC module, and a third terminal of the control module is connected to an input terminal of the real-time emulator.
6. The FPGA-based real-time emulator Ethernet communication device of claim 4, wherein the jump processing module is coupled to the first input/output of the memory manager.
CN201910966952.1A 2019-10-11 2019-10-11 Real-time simulator Ethernet communication device based on FPGA Active CN110750889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910966952.1A CN110750889B (en) 2019-10-11 2019-10-11 Real-time simulator Ethernet communication device based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910966952.1A CN110750889B (en) 2019-10-11 2019-10-11 Real-time simulator Ethernet communication device based on FPGA

Publications (2)

Publication Number Publication Date
CN110750889A true CN110750889A (en) 2020-02-04
CN110750889B CN110750889B (en) 2022-12-06

Family

ID=69278032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910966952.1A Active CN110750889B (en) 2019-10-11 2019-10-11 Real-time simulator Ethernet communication device based on FPGA

Country Status (1)

Country Link
CN (1) CN110750889B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736573A (en) * 2020-06-24 2020-10-02 清科优能(深圳)技术有限公司 Simulation system suitable for microgrid central controller closed-loop test

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050082009A (en) * 2004-02-17 2005-08-22 한국항공우주산업 주식회사 Flight simulation realtime monitoring system
US20050198040A1 (en) * 2004-03-04 2005-09-08 Cohen Michael S. Network information management system
CN106897114A (en) * 2017-02-23 2017-06-27 南方电网科学研究院有限责任公司 A kind of digital analog interface and its driving method of the real-time simulator based on FPGA
CN107066670A (en) * 2017-01-13 2017-08-18 天津大学 A kind of active power distribution network real-time simulator A/D interface design method based on FPGA
CN109583013A (en) * 2018-10-19 2019-04-05 天津大学 Active power distribution network real-time simulator output module design method based on FPGA

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050082009A (en) * 2004-02-17 2005-08-22 한국항공우주산업 주식회사 Flight simulation realtime monitoring system
US20050198040A1 (en) * 2004-03-04 2005-09-08 Cohen Michael S. Network information management system
CN107066670A (en) * 2017-01-13 2017-08-18 天津大学 A kind of active power distribution network real-time simulator A/D interface design method based on FPGA
CN106897114A (en) * 2017-02-23 2017-06-27 南方电网科学研究院有限责任公司 A kind of digital analog interface and its driving method of the real-time simulator based on FPGA
CN109583013A (en) * 2018-10-19 2019-04-05 天津大学 Active power distribution network real-time simulator output module design method based on FPGA

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736573A (en) * 2020-06-24 2020-10-02 清科优能(深圳)技术有限公司 Simulation system suitable for microgrid central controller closed-loop test
CN111736573B (en) * 2020-06-24 2022-03-29 清科优能(深圳)技术有限公司 Simulation system suitable for microgrid central controller closed-loop test

Also Published As

Publication number Publication date
CN110750889B (en) 2022-12-06

Similar Documents

Publication Publication Date Title
CN108051786A (en) A kind of broadband target simulator verification platform and verification method
CN106844256B (en) Active power distribution network real-time simulator internal interface design method based on multiple FPGAs
CN103164278B (en) A kind of Real-time and Dynamic memory manager implementation method of multi-core processor oriented
CN102904550A (en) Multi-channel synchronous waveform generator based on AD9959
CN112540951A (en) Special main control chip suitable for electric power system control protection device
CN106773796B (en) Electric power heterogeneous hybrid real-time simulation system and method
CN110750889B (en) Real-time simulator Ethernet communication device based on FPGA
CN202929519U (en) Multichannel phase adjustable signal generator
CN106610789B (en) A kind of data processing method, apparatus and system
CN107423476A (en) Active power distribution network real-time simulator parallel communication method based on more FPGA
Li et al. Synchronisation mechanism and interfaces design of multi‐FPGA‐based real‐time simulator for microgrids
CN110765594B (en) Method and device for controlling internal interaction interface of wind power plant real-time simulator
CN109583013B (en) Active power distribution network real-time simulator output module design method based on FPGA
CN116126742A (en) Memory access method, device, server and storage medium
CN106845041A (en) Real-time emulation system, emulation mode and MMC valve emulator based on MMC
CN105676197A (en) Array radar echo simulator and simulation method thereof
CN109408427A (en) A kind of clock-domain crossing data processing method and system
CN205015472U (en) General radar simulator real -time communication device
CN211979671U (en) Platform chip and chip verification platform
CN107122562A (en) Active power distribution network real-time simulator serial communication method based on many FPGA
CN117032812A (en) Management method, device and apparatus of server, storage medium and electronic device
CN109857192B (en) Signal processing method, device, system, equipment and readable storage medium
CN207123738U (en) A kind of arbitrarily signal generating device based on terminal fitting
Ouafi et al. Parallelization of EMT simulations for integration of inverter-based resources
CN216145101U (en) Double-channel high-speed data playback device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant