Design of FPGA-Controlled Power Electronics and Drives Using MATLAB Simulink
Design of FPGA-Controlled Power Electronics and Drives Using MATLAB Simulink
Design of FPGA-Controlled Power Electronics and Drives Using MATLAB Simulink
by 33% as compared to manual coding. In addition, MATLAB � HDL Creation iii HDL Verification D Hardware Iteration
constraints for space applications, and it can be adapted to any 3) Elaborate Design for FPGA/ASIC
4) Generate HOL from Simulink Model
change in design by dynamic reconfiguration [4]. Some of the 5) Verify HDL (Cosimulation/Hardware-in-the-Loop)
572
D
ufix24 En24
T1
T1
Scope1
�:� boolean
SW4
SW5
boolean
CD
SW6
To
Fig. 5. Final SVPWM model in Matlab Simulink using HDL Coder ufix24 En24
to automatically generate HDL Code for FPGA prototype. Is
Free-Running
horizontal (d) and vertical (q) axes. The relation between these U3 Product5
+ Vq
sin(4pi/3)
Fig. 7. Inside abc2dq transformation block.
V4(01l) �_����--'::'.L-� .•d
(-2/3,0) Vl(lOO)
(2/3,0) �
D
ufiX24 EnS . UfiX24 En12.,
m
Vref
Add Sqrt
V5(001) V6(101)
sfix24 En14
GD
"'sfi""2
' 4o.E
. 0 4 ---1-___
"" "" -----ne atan2JIXPI
'02
Fig. 6. Switching map of SVPWM for thee phase VSI
573 Cordie
SO, ( cos
(6)
T
L I;�f rl �
co: : :
e h} J
� v,.J,lI ::: i)tJ � v �.T2 [ t)]
e
cost "3)
e
�
2 2
)
n-I
s
. )1
--L:-+_,.,S5
I
" v�. 3 3 · v�. 3 --+__,., 551--......
551--+--"'-'--+
vo Vl;V2; V7 i V7 V2! V< vo
_l-
:r -+h i I i I
. n-J . n-J
VO !V3!V4 V7 i V7 :V4:V3 vo
(
vo !V3 V2; V7 V7 ;V2 V3! VO
v"31�lv�f I. n-J fJJ�IV�f I
Tn+! = --- sln(a--;r)= --- -cosaSlll-JT+smaCOS-ff
(11)
v" 3 v'k 3 3 ) TO/2 n:12:To/2:TO/2 12:Tl:TO/2 TO/2;T2 n:To/2 TO/2:n T2:TO/2
Sector v: 2400 � a � 3000
TO/linin TO/2ITo/2 [ n [n TO/2
Sector VI : 3000 � a � 3600
1
51 51 51 i
=
SVPWM M�
0) Time [ms]
b)
S\lPWM_SimulinkMm
ce_out
sw1
c)
s'tO.
vy !l,; sw3
FIL sw4
sw5
vb
sw6
Fig. 13. SVPWM control signals generated for one cycle (50Hz) by SVPWMJIL SCq:€2
a) Floating-Point Design; b) Fixed-Point Design and c) corresponding
conversion % Error. 575 Fig. 16. FPGA in-the-loop co-simulation
D. VHDL to bitstream and FPGA programming
The generated HDL code is bit-true, cycle-accurate and
synthesizable HDL code which is free from bugs. HDL Coder Ch 1 Freq
12.52kHz
offers integration with Xilinx ISE design suite that makes it
easy to implement algorithm in MATLAB and Simulink to Ch2 Freq
12.S1kHZ
target Xilinx FPGAs. Xilinx ISE compiles and generates the
bitstream file which is then loaded into the FPGA using JTAG
via the USB connection by iMPACT or Digilent Adept
software. Table 1 shows the Xilinx ISE13.4 compilation report
of resources utilization for SVPWM implementation in
Spartan-6 XC6SLX45.
13sep 2012
V. EXPERIMENTAL RESULTS AND DISCUSSIONS i1�� 800. OOOI'S 14:33:41
a)
The FPGA based approach to the automatic generation of PreVu __ 0 ___[",-:...
) ����c='
VHDL code for digital controlled power electronics and drives � .. .. .. ........ . .. ................ .... · UfJfJ�;;��it;h g�t�;igJ1�i
using MATLAB Simulink is verified by implementing
SVPWM modulated VSI in a Xilinx Spartan-6 platform.
The six driving pulses from FPGA are connected to signal
:/
amplification and isolation circuit via 8 pin PMOD connector.
R-i .. ,-
The power ground and logic ground are completely isolated
DC·'
from one another using HCPL2531 optoisolator. It protects
FPGA from circulating ground current and high voltage spikes >d
T�2f1S
(15kV/flS). Fig. 17(a) shows the FPGA generated SVPWM
control pulses for the high side switches.
Six SPW47N60C3 Cool MOS power MOSFET with best Lower switch gate signal
�
R1JS(on) are used for better efficiency design. The TTL level M 4.00)JS A ell 1 I-10.OmV
Ch4 5.00 V
SVPWM signal from FPGA is amplified to meet the gate u-+"..... 194.84QJls
28 sep 2012
17:31:26
16Jan 2013
Number of BUFG/BUFGCTRLs I 16 6% 0....",. , 9.7600ms 14:10:23
b)
Number of DSP48Als 21 58 36%
Fig. 18. Three phase voltage out from the VSI without loading
Number used as Memory 3 6408 1% a) before filter. b) after filter (Measured with high voltage differential probe
576 GE8115 with attenuation of 1000:1. Chl-7VRy• Ch2-7VyB• Ch3-7VBR)
--
1l]!i2l�!Hl!rn!m1ID) Scoing. Lne Filter- Tire
Integ: Reset
-----:--:--
'IQ«)(»WA..
[I][(l!l[I][I][(JiI[I1l[[!i AVG • Freq Filter- �r. �:m �� REFERENCES
(J':3
[I] Concettina Buccella and Carlo Cecati, "Digital control of power
converters -A survey", IEEE Trans. Industrial Informatics, vol. 8, no. 3,
pp. 437-447, August 2012.
[2] Stephan Van Beek and Sudhir Sharma, MathWorks, "Four Best
Practices for Prototyping MATLAB and Simulink Algorithms on
FPGAs", Verification Horizons, pp. 49-53, August 2011.
[3] Kiran Kintali and Yongfeng Gu, Model-based design with Simulink,
HDL Coder, and Xilinx system generator for DSP," Mathworks White
Paper 92077VOO, 2012.
Fig. 19. Three phase voltage (300V/div) and current (2A/div) with 3300 [6] Eftichios Koutroulis, Apostolos Dollas, Kostas Kalaitzakis, "High
resistive load in each phase (delta connected). frequency pulse width modulation implementation using FPGA and
CPLD ICs", J. Systems Architecture, vol. 52, pp. 332-344, June 2006.
VI. CONCLlISIONS [12] Oscar Garcia, Pablo Zumel Angel de Castro and Jose A. Cobos,
"Automotive DC-DC bidirectional converter made with many
We have described a method to facilitate the development interleaved buck stages", IEEE Trans. Power Electronics, vol. 21, no. 3,
and implementation of FPGA-based digital controllers in pp. 578-586, May 2006.
power electronic converters and drives. The method is faster [13] Oscar Lopez, Jacobo Alvarez, Jesus Doval-Gandoy, Francisco D.
and provides a greater degree of confidence than traditional Freijedo, Andres Nogueiras, Alfonso Logo and Carlos M. Penalver,
"Comparison of the FPGA implementation of two multilevel space
manual HDL coding. To illustrate the method a laboratory vector PWM algorithms", IEEE Trans. Industrial Electronics, vol. 55,
prototype of a 1kW FPGA-controlled Voltage Source Inverter no. 4, pp. 1537-1547, April 2008.
(YSI) was described in detail in which the fixed-point control [14] R. Erikson, S. Angkititrakul and K. Almazeedi, "A new family of
algorithm was automatically generated from Simulink models multilevel matrix converters for wind power applications: Final report",
using the MATLAB HDL Coder, and verified before NREL Report NRELlSR-500-40051, December 2006.
implementation on a Xilinx Spartan-6 XC6SLX45 board. [15] Marcian N. Cirstea and Andrei Dinu, "A VHDL holistic modeling
approach and FPGA implementation of a digital sensorless induction
Experimental characterization of the resulting YSI converter
motor control scheme", IEEE Trans. Industrial Electronics, vol. 54, no.
resulted in 3.8% total hannonic distortion and line-to-line 4, pp. 1853-1864, August 2007.
crest factor of 1.52, well within the allowable range of IEEE [16] Da Zhang and Hui Li, "A stochastic-based FPGA controller for an
standards. The very close agreement between experiment and induction motor drives with integrated neural network algorithms",
simulation shows the efficacy of the method. The method is IEEE Trans. Industrial Electronics, vol. 55, pp. 551-561, Feb. 2008.
expected to be particularly useful for prototype development [17] Mohamed Wissem Naouar, Ahmad Ammar Naassani, Eric Monmasson
and IIhem Slama-Belkhodja, "FPGA-based predictive current controller
of other power electronic converters and electric drives with
for synchronous machine speed drive", IEEE Transactions on Power
more complicated interfacing and control algorithms. Electronics, vol. 23, no. 4, pp. 2115-2126, July 2008.
[18] Frede Blaabjerg, Philip C. Kjaer, Peter Omand Rasmussen and Calum
ACKNOWLEDGEMENTS
Cossar, "Improved digital current control methods in switched
This work was supported by the Australian Research reluctance motor drives", IEEE Transactions on Power Electronics, vol.
14, no. 3, pp. 563-572, May 1999.
Council (ARC), Triquint Semiconductor Inc. USA, and
[19] Richard Zhang, "High performance power converter systems for
Macquarie University, Australia. The authors would like to
nonlinear and unbalanced load/source", PhD Thesis, Virginia
thank Yokogawa for the loan of a WTl800 power analyzer; Polytechnic Institute and State University, 17th Sept. 1998.
and Sudeshna Bhattacharya (Application Support Engineer, [20] International Rectifier, Data Sheet No. 60019 Rev. P, "IR21301IR2132
MathWorks) for model verification (FIL) and Daryl Ning 3-phase bridge driver", http://www.irfcom/product-
(Senior Application Engineer, MathWorks) for providing577 info/datasheetsl datalir213O.pdf