Jour 92
Jour 92
Jour 92
5, 731- 746
I. Introduction
Over the past several years, electronic circuit simulation has become highly
popular among electronic designers. In some areas, e.g. VLSI design for digital
systems, simulation has practically surpassed the classical breadboarding stage. In
other areas, such as analogue circuit design, simulation is gaining momentum as the
available simulators become more sophisticated, accurate and user friendly.
The switched inductor model (SIM) (Ben-Yaakov 1989, Ben-Yaakov et al. 1990,
Kimhi and Ben-Yaakov 1991, Amran et al. 1991, Ben-Yaakov and Gaaton 1992)
developed for PWM and quasi-resonant converters is based on the average behav-
iour of the switch mode circuit. This inherent feature and the fact that it is topology
independent makes the model highly compatible with general-purpose electronic
circuit simulators. Hence, it is potentially more 'engineer friendly' than the state
space averaging approach. As has already been shown, the SIM can be applied for
both small and large signal analysis of switch mode systems. Simulation results
obtained by running the SIM on general-purpose circuit simulators were found to be
in good agreement with previous studies and new experimental results for converters
operating in continuous and discontinuous modes (Ben-Yaakov 1989, Amran et al.
1991), cur:rent mode (Kimhi and Ben-Yaakov 1991, Amradn et al. 1991), quasi-
resonant converters (Ben- Yaakov et al. 1990) and average current mode (Ben-
Yaakov and Gaaton 1992).
The objective of this study is to reexamine the possibilities for simplifying
average simulation of PWM converters in the light of the new developments in
electronic circuit simulation technology.
differential equations of networks that include passive and active devices and
polynomial-dependent sources. It turns out that average simulation of switch mode
systems requires the inclusion of more sophisticated dependent sources. This was
accomplished in previous studies by introducing complex equivalent circuits that
emulate the desired relationships (Ben-Yaakov 1989, Ben-Yaakov et al. 1990, Kimhi
and Ben-Yaakov 1991, Amran et al. 1991, Ben-Yaakov and Gaaton 1991).
The shortcoming of earlier simulators has been alleviated in modern packages
which now include generalized behavioural models. These dependent sources can be
described by any algebriac relationship and hence the restriction to polynomial
functions has been removed. For example, HSPICE (Meta-Software Inc., Campbell,
CA) permits the definition of a behaviour-dependent voltage source (EX) as
K x ~a. b)
EX=~
where K is a constant, J'(m.n)denotes the voltage between node m and n and ABS
denotes absolute value (note that the above form of the mathematical expression
does not conform to the syntax of HSPICE).
Once defined, the behavioural relationship is fully compatible with other
functions of the simulator That is, it can be applied in DC analysis, transient (large
signal) analysis and small signal analysis, which is performed after linearizing the
function around the quiescent operating point.
(b) 1 Lr
r : d
~
:1 IL --+-:
Ic j .
:
~ + : :--
Tv~:t
m -: +1 : l ~ .R~
~ J ...f
1 1
'", ,
~
734 s. Ben-Yaakov
(I)
EL=VDONJ'(..b)+VDOFFJ'(..C) (3)
The average inductor current in the continuous mode case is determined by the
average voltage impressed on the inductor. Hence, the inductor current can be
simulated in this case by the simple equivalent circuit given in Appendix A
(Ben-Yaakov 1989, Ben-Yaakov et al. 1990). The equivalent circuit includes the
inductor, its parasitic resistance and an average voltage source EL which, in general,
will be time dependent. Also included in the equivalent circuit is a voltage source of
zero voltage that is used to sense the current in the loop (Nagel 1975).
'" .
Simulation of PWM converters by behavioural relationships 735
a -b
--
c
YE
Once the inductor current is available, the dependent current sources of the
GSIM model (Fig. 3) can be readily defined by considering the way the current is
split between the terminals. Since the current of terminal a is identical to the
inductor current the dependent current source Go can be defined as
Ga=I(VsN) (4)
where I(VsN) is the current of the dummy voltage source (SN) of the equivalent
circuit (Appendix A). The current is then divided between terminals a and b (Fig. 2)
according to the fraction of time the inductor is connected to them, namely
Continuous Discontinuous
Inductor Inductor
CulTent Current
Voltage
Mode
Current
M(xje
Figure 5. Functional nature of the inductor current generator (ICG) for all PWM cases.
-:-L
736 s. Ben-Yaakov
ILt
Ipk ..
!1lME
are related to the peak current by simple geometrical relationships (Fig. 6). The
GSIM dependent current sources for the discontinuous case are hence defined as:
IG.I=~IIpk.1 (7)
(8)
(9)
where (Fig. 6)
I = I J.(.,b}1 V DON 7:
pk L . (10)
EDoN=KMVE (II)
..
~
Simu/ation of PWM converters by behavioura/ re/ationships
(a) (b)
Figure 8. GSIM orientation and physical current directions for: (a) buck; (b) boost.
DoFF= I -DoN
Consequently
In the discontinuous mode case, the relationship between DOFF and DON is
,...;
/0
~
738 s. Ben-Yaakov
0.105.0.@ GSIM
'.5 b
-:'
>Ro
@
Co
1.5Q
2
Rl
':
lK
@
g~ lOK.Q l~
A L @:L-::;=-l
l =- ~~F R2
\-/EL SN I~~ :lK
--~l<e) ~JF=~ :
@) DCG
-O
VOOF
( \
'ROOF
RYE fEOOF~
Figure 10. PSpice-compatible equivalent circuit for the converter of Fig. 9 when operated in
the continuous inductor current mode.
~
Simulation of PWM converters by behavioural relationships
100 lOk lM
Frequency [Hz]
Figure 12. Small signal control-to-output (vouJvJ transfer function of the power stage
shown in Fig. 9. Discontinuous inductor current case (loon load).
YE-II(VsN)IKs
(
EDON= 7: M + O.5K sIJ':(., b) I) (16)
s c L
where YEis the primary control voltage (the output of the error amplifier), Ks is the
current loop gain and Mc is the slope of the compensating ramp. In the current
mode discontinuous inductor current case, the control voltage YE is found to be
(Fig. 7)
15.00.
14.991 ., , ,
° 0.2 0.4 0.6 0.8 1
Time [~J
Figure 13. Output voltage of the converter of Fig. 9 when subjected to a load change of
O.5A. Continuous inductor current case (1.5Q load).
~
740 s. Ben-Yaakov
15.00:
~
14.991 I
° 0.2 0.4 0.6 0.8 ]
Time [Soc]
Figure 14. Output voltage of the converter of Fig. 9 when subjected to a load pulse-change
of 0.5 A. Discontinuous inductor current case ( 100 .Q load).
YE
)
V DON=
1;( Mc+-z:-
Ksi~..b)l
6. Example
The proposed simulation approach is demonstrated by considering a current
mode (CM) buck converter (Fig. 9). The power stage is the benchmark circuit
presented by Middlebrook (1989) and investigated by Kimhi and Ben-Yaakov
(1991). The circuit is reduced to a PSpice-compatible circuit by applying the
definitions of the GSIM, ICG and DCG (Fig. 3) given in Appendix A. The resulting
average equivalent circuit (Fig. 10) was translated to a PSpice-compatible file by
applying the template subcircuits given in Appendix B. Simulation results obtained
by applying the proposed behavioural models were found to be in good agreement
with previously published (Amran et a/. 1991, Ben-Yaakov and Gaaton 1992, Nagel
1975) analytical and experimental results.
~
Simu/ation of PWM converters by behavioura/ re/ationships 741
{~ DON
+ VDoNI ~..b)l
I ~..c)1 } (19)
which should be smaller than one for the discontinuous mode cases and
equal to or larger than one for continuous mode cases. To help this
evaluation, the subcircuits were designed with extra ports which carry the
essential data (Appendix B). An extensive discussion and a practical solution
for implementing the automatic toggling was given by Edry (1992).
742 s. Ben-Yaakov
ACKNOWLEDGMENTS
The simulation results presented in this paper were obtained with an evaluation
version of PSpice (V.5). The author wishes to thank MicroSim Co. for making this
powerful demonstrator public domain. Special thanks are due to Daniel Edry for
helping to streamline the manuscript.
Appendix A
Behavioural relationships and equivalent circuits of PWM converters
G. = I(VsN)
Gb= VDoNI(VsN)
Go = VDoppI(VsN)
Simulation of PWM converters by behavioural relationships 743
VDONIJ.(..b)1
E DOFF = -rY;;::;r-
EDOFF= 1- VDON
Appendix B
p Spice-compatible templates
PWM DEMO SUB CIRCUITS .
* See Figs 7 & 8 of paper
*Please NOTE: <expression) of'VALUE' must be on one
*line. Correct if shown otherwise in this printout.
* Basic output circuit
RO OUT 0 1.5; Load resistor
CO C 0 2700U; Output capacitor
RC OUT C .012; Capacitor's ESR
* Input section
VIN RS 0 30; 30 Volt source
RS RS IN 0.105; Internal resistance of source
*Error amplifier and phase compensation network
*See Fig. 8 of main text for node labels
ERR E 0 PLUS MINUS IE4; Error Amplifier
*VERR E 0 DC .5; For open loop simulation
VREF PLUS 0 DC 7.5 AC I; Reference plus perturbation
RREF PLUS 0 IE5
CF E EE IOn
RF EE MINUS 10K
RI OUT MINUS IK
R2 MINUS 0 IK
DDIOD 0 DIOD DN4X; Steering diode
*Voltage mode
*ED DD 0 VALUE= {V(E)}
*Current Mode
,. EDD DD 0 VALUE= {(V/E)-ABS(I(VSN»*KS)/
(TS*(MC + 0.5*KS* ABS(V(A,B»/LM» }
~
Simulation of PWM converters by behavioural relationships 745
* E = > VOLTAGE MODE: Don
* D = > DUTY CYCLE INDICATOR (Don)
* DOF = > DUTY CYCLE INDICATOR (Doff)
* PK = > INDUCTOR PEAK CURR INDICATOR
* Change according to parameters of circuit
+PARAMS:LM=40U RL=.OO8 TS=40U KS=O.l MC=5E4
* INDUCTOR LM RES l/Fs CUR GAIN SL COMP
* Current Mode
EDD DD O VALUE={V(E)/(TS*(MC+KS*ABS(V(A,B»/LM»}
*Voltage mode
*ED DD O VALUE= {V(E)
EPK PK O VALUE= {V(A,B)*V(D)*TS/LM}
EDOF DOF O VALUE= {ABS(V(A,B)*V(D)/V(A,C»}
*Generic Switched Inductor Model (GSIM)
GA A O VALUE= {(V(A,B)*V(D)*TS/LM)*«V(D)+ V(DOF»)/2}
GC O C VALUE= {(V(A,B)*V(D)*TS/LM)*V(DOF)/2}
GB O B VALUE= {(V(A,B)*V(D)*TS/LM)*V(D)/2}
RPK PK O I
RYE E O IOEIO
RD D O IOEIO
RDOF DOF O IEIO
RDD DD D IOK
DLM O D DN4X
.ENDS
.PROBE
.END
REFERENCES
AMRAN. Y.. HULIEHEL, F., and BEN-YAAKGV, S.. 1991. A unified SPICE compatible average
model of PWM converters. IEEE Transactions on Power Electronics, 6, 585-594.
BEN-Y AAKOV, S.. 1989, SPICE simulation of PWM DC-DC convertor systems: voltage
feedback. continuous inductor conduction mode. IEE Electronics Letters, 16,
1061-1063.
BEN-YAAKOV,S., EDRY. D.. AMRAN. U.. and SmMONY. 0., 1990, SPICE simulation ofquasi-
resonant zero-current-switching DC-DC convertors. IEE Electronics Letters. 26,
7 847-849.
BEN-YAAKOV, S.. and GAATON, Z., 1992. Unified SPICE compatible model of current
feedback in switch mode convertors. IEE Electronics Letters, 28, 1356-1357.
DIXON. L. H., 1990, Average current-mode control of switching power supplies. 5-1-5-14.
Unitrode Switching Regulated Power Supply Design Seminar Manual (Merrimack:
Unitrode Corp.).
EDRY. D., 1992, Capacitive-Ioaded push-pull parallel-resonant converters. M.Sc. thesis. Ben-
Gurion University of the Negev, Israel (in Hebrew).
KlMHI, D.. and BEN-YAAKOV. S.. 1991, A SPICE model for current mode PWM converters
operating under continuous inductor current conditions. IEEE Transactions on Power
Electronics, 6, 281-286.
MIDDLEBROOK.R. D., 1989, Modeling current programmed buck and boost converters. IEEE
Transactions on Power Electronics. 4, 36-52.
-1
~
'0;- --7-
746
..-"
...
-.-
'~.,