* SPICE netlist
S1 N001 VDRAIN PWM 0 MSW
L0 VSOURCE N003 {WDSargL0} Rser=0m IC={WDSargIo}
VBUS VDRAIN 0 {WDSargVs}
DSW VSOURCE VDRAIN DID
Rswitch N001 N002 {WDSargRswitch}
C0 N004 0 {WDSargC0} IC={WDSargVout}
Resr VOUT N004 {WDSargResr}
Rdcr VOUT N003 {WDSargRdcr}
Rload VOUT 0 {WDSargR0}
D1 0 VSOURCE DFW
H1 VRAMP 0 VBUS {-1.0*{WDSargRI}}
DBODY N002 VSOURCE DIDEAL
V1 ref 0 {WDSargVref}
R1 N005 VOUT {WDSargR1}
Rb 0 N005 {WDSargRb}
R2 N005 N007 {WDSargR2}
C3 N005 CTRL {WDSargC3}
C1 N007 CTRL {WDSargC1}
XU1 ref N005 VDD 0 CTRL level2 Avol=100Meg GBW=1000Meg Slew=100Meg Ilimit=25m Rail=0 Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R3 VOUT N006 {WDSargR3}
C2 N006 N005 {WDSargC2}
VDD1 VDD 0 12V
SPWM N008 VDD CTRL VPWMRAMP COMP
VPWMRAMP VPWMRAMP 0 PULSE(0 {WDSargVramp} 0 {0.99/{WDSargFs}} 1f 0 {1/{WDSargFs}})
Rpwm 0 N008 1K
A1 N008 N009 N009 N009 N009 0 PWM 0 AND Vhigh=15 Vlow=0 Trise=10n Tfall=10n
VCLK N009 0 PULSE(0 12 0 1f 1f {{{WDSargDswitch_lim}/100}/{WDSargFs}} {1/{WDSargFs}})
.param LSECarg={{WDSargLm}/{({WDSargNp}*{WDSargNp})}}
.tran 0 {WDSargTsim} {WDSargTstart} {WDSargTstep} uic
.Param Tr={0.95/{WDSargFs}}
.param WDSargVs=1080.000000000000000
.Param WDSargRswitch=20.0000000000000000m
.Param WDSargL0=25u
.Param WDSargRdcr=0.01
.Param WDSargC0=200u
.Param WDSargResr=32.5636057961645590m
.Param WDSargTstart=4.9500000000000002m
.Param WDSargTstep=1.0000000000000000n
.Param WDSargVramp=1.0000000000000000
.Param Ts={1/{WDSargFs}}
.Param Vlow=0.05
.Param Vhigh=1.0
.Param WDSargLm=0.0000000000000000u
.Param WDSargNp=1.0000000000000000
.IC I(L0)={WDSargIo}
.IC V(VOUT)={WDSargVout}
.Param WDSargIo=2.0000000000000000
.Param WDSargVout=3.2999999999999998
.Param WDSargDswitch=31.5974505200724460
.Param WDSargRxtp=1.0000000000000000m
.Param WDSargRxts=1.0000000000000000m
.Param WDSargVdiode=0.6000000000000000
.Param WDSargR1=10k
.Param WDSargRb=10k
.Param WDSargR2=1393.588
.Param WDSargC1=10n
.Param WDSargC3=4.7n
.Param WDSargC2=10n
.Param WDSargR3=45
.Param WDSargRI=0.4800000000000000
.Param WDSargRsense=10.0000000000000000
.Param WDSargNcs=50.0000000000000000
.Param WDSargVe_ext=0.0000000000000000
.Param WDSargRz=0.0000000000000000k
.Param WDSargVz=3.2999999999999998
.Param WDSargRled=0.0000000000000000k
.Param WDSargRbias=0.0000000000000000k
.Param WDSargRpullup=2.2000000000000002k
.Param WDSargVpullup=8.0000000000000000
.Param WDSargDswitch_lim=90.0000000000000000
.Param WDSargVf=1.3899999999999999
.Param WDSargCTR=123.0000000000000000
.measure WDSresVin avg V(VDRAIN)
.measure WDSresVout avg V(vout)
.measure WDSresIo avg I(Rload)
.measure WDSresVr_actual PP V(vout)
.measure WDSresDswitch_avg avg V(pwm)
.measure WDSresDswitch param (WDSresDswitch_avg /15.0)
.measure WDSresL0Iac PP I(L0)
.measure WDSresL0Ipk max I(L0)
.measure WDSresL0Iavg avg I(L0)
.measure WDSresL0pd avg (V(VOUT,N002)*I(Rdcr))
.measure WDSresL0Irms rms I(L0)
.measure WDSresC0Irms rms I(C0)
.measure WDSresC0Iac PP I(C0)
.measure WDSresC0Vpk max V(vout)
.measure WDSresC0pd param WDSresC0Irms*WDSresC0Irms*{WDSargResr}
.measure WDSresDiodeVpk max V(vsource)
.measure WDSresDiodeIavg avg I(D1)
.measure WDSresDiodeIrms rms I(D1)
.measure WDSresDiodeIpk max I(D1)
.measure WDSresDiodeLoss avg (-V(VSOURCE)*I(D1))
.measure WDSresSwitchVpk max V(VDRAIN,VSOURCE)
.measure WDSresSwitchIavg avg I(S1)
.measure WDSresSwitchIrms rms I(S1)
.measure WDSresSwitchIpk max I(S1)
.measure WDSresSwitchLoss avg (V(N001,VSOURCE)*I(Rswitch))
.Param WDSargA1=1.2285185098461360
.Param WDSargA3=-0.1000359183388560
.Param WDSargB1=1.8000173160223438
.Param WDSargB0=-1.9115445319399298
.Param WDSargA2=-0.1284825915072801
.Param WDSargB2=1.9123196648167622
.Param WDSargB3=-1.7992421831455114
.Param WDSargKpd=0.8753185455376753
.Param WDSargTd=0.5000000000000000
.Param WDSargFsamp=200.0000000000000000k
.Param WDSargCopto=2.7999999999999998n
.Param WDSarggm=100.0000000000000000u
.Param WDSargFs=22.0000000000000000k
.Param WDSargVref=90
.param WDSargTsim=15.0000000000000000m
.Param WDSargR0=13.846

* LTspice schematic (.asc)
Version 4
SHEET 1 2432 2640
WIRE -1024 -1320 -1056 -1320
WIRE -1056 -1240 -1056 -1320
WIRE -576 -1144 -576 -1176
WIRE -448 -1144 -576 -1144
WIRE -144 -1144 -144 -1176
WIRE -144 -1144 -384 -1144
WIRE -1056 -1096 -1056 -1160
WIRE -576 -1016 -576 -1144
WIRE -576 -1016 -1216 -1016
WIRE -544 -1016 -576 -1016
WIRE -400 -1016 -464 -1016
WIRE -224 -1016 -320 -1016
WIRE -144 -1016 -144 -1144
WIRE -144 -1016 -160 -1016
WIRE -112 -1016 -144 -1016
WIRE 48 -1016 -112 -1016
WIRE 208 -1016 128 -1016
WIRE 336 -1016 288 -1016
WIRE 528 -1016 336 -1016
WIRE 576 -1016 528 -1016
WIRE -528 -936 -528 -968
WIRE -480 -936 -480 -968
WIRE 336 -920 336 -1016
WIRE 528 -824 528 -1016
WIRE -112 -776 -112 -1016
WIRE 336 -728 336 -840
WIRE -1216 -632 -1216 -1016
WIRE -1216 -520 -1216 -552
WIRE -112 -520 -112 -712
WIRE -112 -520 -1216 -520
WIRE 208 -520 -112 -520
WIRE 336 -520 336 -664
WIRE 336 -520 208 -520
WIRE 528 -520 528 -744
WIRE 528 -520 336 -520
WIRE -1216 -488 -1216 -520
WIRE 208 -488 208 -520
WIRE -640 152 -832 152
WIRE -400 152 -576 152
WIRE -304 152 -400 152
WIRE -192 152 -240 152
WIRE -32 152 -112 152
WIRE 16 152 -32 152
WIRE -32 216 -32 152
WIRE -832 296 -832 152
WIRE -768 296 -832 296
WIRE -608 296 -704 296
WIRE -400 296 -400 152
WIRE -400 296 -528 296
WIRE -256 296 -400 296
WIRE -336 328 -352 328
WIRE -352 344 -352 328
WIRE -256 360 -256 296
WIRE -256 360 -320 360
WIRE -32 360 -32 296
WIRE -32 360 -256 360
WIRE -832 376 -832 296
WIRE -832 376 -880 376
WIRE -384 376 -832 376
WIRE -288 392 -320 392
WIRE -288 424 -288 392
WIRE -32 424 -32 360
WIRE -352 440 -352 408
WIRE -288 536 -288 504
WIRE -32 536 -32 504
WIRE -400 600 -432 600
WIRE -432 680 -432 600
WIRE -480 696 -848 696
WIRE -576 744 -688 744
WIRE -480 744 -576 744
WIRE -576 776 -576 744
WIRE -432 792 -432 760
WIRE -160 792 -432 792
WIRE -176 808 -240 808
WIRE -160 808 -176 808
WIRE -16 808 -96 808
WIRE -432 824 -432 792
WIRE -240 824 -240 808
WIRE -176 824 -176 808
WIRE -160 824 -176 824
WIRE -176 840 -176 824
WIRE -160 840 -176 840
WIRE -176 856 -176 840
WIRE -160 856 -176 856
WIRE -144 872 -144 856
WIRE -576 888 -576 856
WIRE -432 920 -432 904
WIRE -240 920 -240 904
WIRE 1216 968 1168 968
WIRE 1168 1192 1168 968
WIRE 1168 1320 1168 1272
FLAG -528 -936 PWM
IOPIN 1216 592 In
FLAG 208 -488 0
FLAG -144 -1176 VSOURCE
IOPIN 1600 352 Out
FLAG -576 -1176 VDRAIN
IOPIN 1168 352 Out
FLAG -1216 -488 0
FLAG 576 -1016 VOUT
IOPIN 2320 512 Out
FLAG -480 -936 0
FLAG -1056 -1096 0
FLAG -1024 -1320 VRAMP
IOPIN 720 208 Out
FLAG -288 536 0
FLAG -288 392 ref
FLAG -32 536 0
FLAG 16 152 VOUT
IOPIN 1760 1680 In
FLAG -880 376 CTRL
IOPIN 864 1904 Out
FLAG -336 328 VDD
IOPIN 1408 1856 Out
FLAG -352 440 0
FLAG 1216 968 VDD
IOPIN 2960 2496 Out
FLAG 1168 1320 0
FLAG -688 744 VPWMRAMP
IOPIN 1056 2272 Out
FLAG -576 888 0
FLAG -16 808 PWM
IOPIN 1728 2336 Out
FLAG -400 600 VDD
IOPIN 1344 2128 Out
FLAG -432 920 0
FLAG -848 696 CTRL
IOPIN 896 2224 Out
FLAG -240 920 0
FLAG -144 872 0
SYMBOL sw -448 -1016 M270
SYMATTR InstName S1
SYMATTR Value MSW
SYMBOL ind 32 -1000 R270
SYMATTR InstName L0
SYMATTR Value {WDSargL0}
SYMATTR SpiceLine2 IC={WDSargIo}
SYMATTR SpiceLine Rser=0m
SYMBOL voltage -1216 -648 R0
SYMATTR InstName VBUS
SYMATTR Value {WDSargVs}
SYMBOL diode -384 -1160 R90
SYMATTR InstName DSW
SYMATTR Value DID
SYMBOL res -416 -1000 R270
SYMATTR InstName Rswitch
SYMATTR Value {WDSargRswitch}
SYMBOL cap 320 -728 R0
SYMATTR SpiceLine IC={WDSargVout}
SYMATTR InstName C0
SYMATTR Value {WDSargC0}
SYMBOL res 320 -936 R0
SYMATTR InstName Resr
SYMATTR Value {WDSargResr}
SYMBOL res 304 -1032 R90
SYMATTR InstName Rdcr
SYMATTR Value {WDSargRdcr}
SYMBOL res 512 -840 R0
SYMATTR InstName Rload
SYMATTR Value {WDSargR0}
SYMBOL diode -96 -712 R180
SYMATTR InstName D1
SYMATTR Value DFW
SYMBOL h -1056 -1256 R0
SYMATTR Value2 {-1.0*{WDSargRI}}
SYMATTR InstName H1
SYMATTR Value VBUS
SYMBOL diode -224 -1032 M90
SYMATTR InstName DBODY
SYMATTR Value DIDEAL
SYMBOL voltage -288 408 R0
SYMATTR Value {WDSargVref}
SYMATTR InstName V1
SYMBOL res -16 312 R180
SYMATTR InstName R1
SYMATTR Value {WDSargR1}
SYMBOL res -16 520 R180
SYMATTR InstName Rb
SYMATTR Value {WDSargRb}
SYMBOL res -512 280 R90
SYMATTR InstName R2
SYMATTR Value {WDSargR2}
SYMBOL cap -576 136 R90
SYMATTR InstName C3
SYMATTR Value {WDSargC3}
SYMBOL cap -704 280 R90
SYMATTR InstName C1
SYMATTR Value {WDSargC1}
SYMBOL Opamps\\UniversalOpamp2 -352 376 M0
SYMATTR InstName U1
SYMATTR Value2 Avol=100Meg GBW=1000Meg Slew=100Meg
SYMBOL res -96 136 R90
SYMATTR InstName R3
SYMATTR Value {WDSargR3}
SYMBOL cap -240 136 R90
SYMATTR InstName C2
SYMATTR Value {WDSargC2}
SYMBOL voltage 1168 1176 R0
SYMATTR InstName VDD1
SYMATTR Value 12V
SYMBOL sw -432 776 M180
SYMATTR InstName SPWM
SYMATTR Value COMP
SYMBOL voltage -576 760 R0
SYMATTR InstName VPWMRAMP
SYMATTR Value PULSE(0 {WDSargVramp} 0 {0.99/{WDSargFs}} 1f 0 {1/{WDSargFs}})
SYMBOL res -416 920 R180
SYMATTR InstName Rpwm
SYMATTR Value 1K
SYMBOL Digital\\and -128 760 R0
SYMATTR InstName A1
SYMATTR SpiceLine Vhigh=15 Vlow=0 Trise=10n Tfall=10n
SYMBOL voltage -240 808 R0
SYMATTR InstName VCLK
SYMATTR Value PULSE(0 12 0 1f 1f {{{WDSargDswitch_lim}/100}/{WDSargFs}} {1/{WDSargFs}})