Download presentation
Presentation is loading. Please wait.
Published byCecily Miller Modified over 8 years ago
1
P225/MAPLD 2004Pimentel1 Julio C. G. Pimentel (pimentel@ieee.org) Hoang Le-Huy (lehuy@gel.ulaval.ca) Gilbert Sybille (gsybille@ireq.ca) LEEPCI - Laboratory of Electro-technology, Power Electronics and Industrial Control An FPGA-Based Real Time Power System Simulator for Power Electronics
2
P225/MAPLD 2004Pimentel2 Plan Introduction Proposed Approach Implementation Flow Library of Components Experimental Results Conclusion
3
Pimentel3B225/MAPLD 2004 Introduction
4
P225/MAPLD 2004Pimentel4 Objective Simulate in real time electrical networks including: Switched mode circuits Control circuits (controllers, modulators, etc.) Linear circuits (filters, capacitors, inductors, etc.) Non linear circuits (diodes, IGBTs, Thyristors, saturate inductors, etc.)
5
P225/MAPLD 2004Pimentel5 Applications Power system stability analysis High frequency switched converters High frequency motion control applications: Industrial machines Hybrid vehicles Many more …
6
P225/MAPLD 2004Pimentel6 Evolution of Real Time Power System Simulators Continue Time Models Amplifiers and passive devices Reduced scale models Transient Network Analyzers (1970) Hybrids Digital Computers (1990) Discrete Time Models Parallel processors Matrix Representation Interactive Numeric Methods (algorithm) Proposed Approach Hardware Emulation FPGAs + VHDL DSP or Processor
7
Pimentel7B225/MAPLD 2004 Proposed Approach
8
P225/MAPLD 2004Pimentel8 General Architecture Decouple the electrical network in two parts: Decouple the electrical network in two parts: 1. Linear part - RLC network is modelled as a matrix and processed by a microprocessor 2. Nonlinear part – nonlinear devices are modelled as VHDL sub-circuits and processed in the FPGA Voltage and currents calculated by each part are exchanged at the end of each time step Voltage and currents calculated by each part are exchanged at the end of each time step
9
P225/MAPLD 2004Pimentel9 Data Flow Processing Model The sub-circuits are interconnected through their input and output ports The inputs of a sub-circuit can only change at the end of a time step The outputs of a sub-circuit only depends on its inputs At the end of a time step the sub-circuit transfers its calculated voltages and currents to the next sub-circuit The sub-circuits are modelled in VHDL and implemented in a FPGA
10
P225/MAPLD 2004Pimentel10 The synchronization Problem The sub-circuits I/O signals can be: The sub-circuits I/O signals can be: –Control signals: CLK, RST, EN, STC, EOC and REG –Voltages and currents – fixed point integer –Logical signals: carry On/OFF information (PWM outputs, RST CLK Voltages EN STC EOC Reg Logical Signals Sub Circuit Currents Voltages Currents Logical Signals
11
P225/MAPLD 2004Pimentel11 The synchronization Problem (cnt’d) RST CLK EOC1 EOC2 EOCn Master State Machine The control signals are: The control signals are: –Generated by a master state machine that synchronizes the whole system –Sent to all VHDL sub-circuits The SM controls: The SM controls: –Initialization - Stability depends a lot on the initialization strategy –Sequencing 1.Send data to/from DAC 2.Send data to/from uP 3.Process data EN STC_l STC_nl REG_l REG_nl
12
P225/MAPLD 2004Pimentel12 I(t-1)Vb(t-1) Z -1 Decoupling Strategy Decouple the linear and nonlinear parts by introducing a Voltage-Current pair => reduce the size of the problem Decouple the linear and nonlinear parts by introducing a Voltage-Current pair => reduce the size of the problem Problem: the value of I et Vb used in each part are delayed by one time step => system may become unstable Problem: the value of I et Vb used in each part are delayed by one time step => system may become unstable ?
13
P225/MAPLD 2004Pimentel13 Decoupling Strategy (cnt’d) ?
14
P225/MAPLD 2004Pimentel14 Decoupling Strategy (in parallel) SourcesNonlinear linear Z -1 AC, DC, Sin, Pulse, Step, etc. Diode, Thyristor, MOSFET, Control, etc. State Space Model [A, B, C, D] VHDL ALGORITHM Total: 2 time step delay
15
P225/MAPLD 2004Pimentel15 Decoupling Strategy (in series) Total: ONLY 1 time step delay (more stable) SourcesNonlinear linear Z -1 AC, DC, Pulse, Step, etc. Diode, Thyristor, MOSFET, Control, etc. State Space Model [A, B, C, D] VHDL ALGORITHM Zero Delay The simulation of the nonlinear part takes much less than 1 us
16
Pimentel16B225/MAPLD 2004 Implementation Flow
17
P225/MAPLD 2004Pimentel17 Implementation Flow Translate PSB To VHDL Elaboration Synthesis Placement Routing FPGA Programming PSB/Matlab Schematic Library of Components For DRTPSS Vendor Library FPGA Design Flow DRTPSS Simulator
18
Pimentel18B225/MAPLD 2004 Library of parameter-driven components Sources: DC, ramp, sinus, etc. 1and 3PWM modulators PI and PID controllers DQ-ABC and ABC-DQ converters Components (diode, MOST, Thyristor, etc.) Digital filters and CORDIC D/A converters
19
P225/MAPLD 2004Pimentel19 Sinusoidal source n, nc, VMax Sin_1Ø clk clock out n Freq n en The sinusoidal source (example): Can generate a sinus with 16-bit resolution (amplitude and phase) Approximation: series of Taylor (can also use a lookup table): Implemented using multiply-accumulate operations Distortion < 1%
20
P225/MAPLD 2004Pimentel20 PWM Modulator The PWM modulator (example) Resolution: ex.: 8 bitsResolution: ex.: 8 bits frequency: 2.99 Mhzfrequency: 2.99 Mhz Modulation factor: 25%Modulation factor: 25% n PWM_1Ø en ld clkclock out input n load enable
21
P225/MAPLD 2004Pimentel21 3 sinusoidal PWM Modulator clock out_A n Freq n out_B n out_C n n,nc,VMax Sin_3Ø clk en EN DQ C R PWM_1Ø En Ld clk out_A n EN DQ C R PWM_1Ø En Ld clk out_B n EN DQ C R PWM_1Ø En Ld clk out_C n clock Sin_1Ø clk n Freq n State machine clk
22
Pimentel22B225/MAPLD 2004 Experimental Results
23
P225/MAPLD 2004Pimentel23 Ex1: Full Wave Rectifier PSB FPGASim FPGASim – proposed simulator (real time simulator)FPGASim – proposed simulator (real time simulator) PSB – Power System Blockset of Matlab (non real time simulator)PSB – Power System Blockset of Matlab (non real time simulator)
24
P225/MAPLD 2004Pimentel24 Ex2: Thyristor Rectifier FPGASim PSB
25
P225/MAPLD 2004Pimentel25 Ex3: Effect of Transitory on a DC-DC Buck Converter FPGASim PSB
26
P225/MAPLD 2004Pimentel26 Ex4: DC-DC Buck Converter with PI Controller L1=20mH R=20 C=30uF Kp=0.1 Ki=4 FPGASim PSB
27
P225/MAPLD 2004Pimentel27 Ex5: Three-phase DC-AC PWM Converter FPGASim PSB
28
P225/MAPLD 2004Pimentel28 Ex6: 50Hz – 60Hz Cicloconverter Vpeak=150V Ls=100uH Vc=100uF Rl=10Ohm Ll=100mH FPGASim PSB
29
Pimentel29B225/MAPLD 2004 Conclusion
30
P225/MAPLD 2004Pimentel30 FPGA Used Xilinx 2VP30 Virtex II PRO Logic Cells (1): 30,816 Slices: 13,696 18 X 18 Bit Multiplier Blocks: 136 Maximum User I/O Pads: 644 PowerPC Processor Blocks: 2 (1) Logic Cell = (1) 4-input LUT + (1)FF + Carry Logic Device RocketIO Transceiver Blocks PowerPC Processor Blocks Logic Cells(1) CLB (1 = 4 slices = max 128 bits) 18 X 18 Bit Multiplier Blocks Block SelectRAM+ DCMs Maximum User I/O Pads Slices Max Distr RAM (Kb) 18 Kb Blocks Max Block RAM (Kb) XC2VP2 4 0 3,168 1,408 44 12 12 216 4 204 XC2VP4 4 1 6,768 3,008 94 28 28 504 4 348 XC2VP7 8 1 11,088 4,928 154 44 44 792 4 396 XC2VP20 8 2 20,880 9,280 290 88 88 1,584 8 564 XC2VP30 8 2 30,816 13,696 428 136 136 2,448 8 644 XC2VP40 0(2), 8, or 12 2 43,632 19,392 606 192 192 3,456 8 804 XC2VP50 0(2)or 16 2 53,136 23,616 738 232 232 4,176 8 852 XC2VP70 16 or 20 2 74,448 33,088 1,034 328 328 5,904 8 996 XC2VP100 0(2)or 20 2 99,216 44,096 1,378 444 444 7,992 12 1,164
31
P225/MAPLD 2004Pimentel31 Summary (nonlinear part only) Fclk max Time step # of gates # of FFPs usage Ex458 MHz0.17us160K5009% Ex555 MHz0.18 us370K130020% Ex660 MHz0.17 us500K170027% NOTE: 1) implemented on a Xilinx 2VP30 Virtex II PRO FPGA 2) results taken after placement and routing
32
P225/MAPLD 2004Pimentel32 Conclusion Proposed a new approach to implement DRTPSSs based on programmable hardware and HDL languages The proposed simulator produces results comparable to those obtained with the PSB/Matlab from Mathworks The initial results show that the technique has the potential to create a breakthrough in DRTPSS and set a new level of performance for these simulation tools
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.