* SPICE netlist
B1 idg_irm_ss 0 V=V(k0)*V(iv0) + V(k1)*V(iv1) + fdg
B2 Ioo 0 V=(adg+bdg+cdg)*V(iv0)*V(iv0) + (ddg+edg)*V(iv0) + fdg
B3 k0 0 V=2*adg*iv + cdg*iv +ddg
B4 k1 0 V=2*bdg*iv +cdg*iv + edg
V1 iv0 0 {iv} AC 1
B5 iv1 0 V=V(iv0) Laplace=exp(-s*Tsw)
B6 idg_irm 0 V=adg*V(iv0)*V(iv0) + bdg*V(iv1)*V(iv1) + cdg*V(iv0)*V(iv1) + ddg*V(iv0) + edg*V(iv1) + fdg
B7 <idgbasso> 0 V=V(Ioo) Laplace=(1 - s/wrhpz)
B10 IooChk 0 V=Iinf
B13 idg_izoh 0 V=V(idg_irm_ss) Laplace=s*Tsw/(1 - exp(-s*Tsw))
.param Vin 18.75
.param Vout 5.25
.param N 3.5
.param Vcg {Vin}
.param Vdg {N*Vout}
.param iv 7.5
.param Lm 17.0u
.param Fsw 130k
.param Tsw {1/Fsw}
.param mc {Vcg/Lm}
.param md {Vdg/Lm}
.param dencom {(mc*mc + 2*mc*md + md*md)}
.param adg {-(1/(2*Tsw))*((2*mc + md)/dencom)}
.param bdg {(1/(2*Tsw))*((md)/dencom)}
.param cdg {(1/(Tsw))*((mc)/dencom)}
.param ddg {(mc*mc)/dencom}
.param edg {mc*md/dencom}
.param fdg {(Tsw/2)*md*mc*mc/dencom}
.ac oct 500 10 {6.1*Fsw}
.param Dc {Vdg/(Vdg+Vcg)}
.param Dp {1-Dc}
.param wrhpz ro*Dp*Dp/(Dc*Lm)
.param Iinf {(adg+bdg+cdg)*iv*iv + (ddg+edg)*iv + fdg}
.param ro {Vdg/Iinf}

* LTspice schematic (.asc)
Version 4
SHEET 1 2912 1872
WIRE -704 -936 -784 -936
WIRE -416 -936 -496 -936
WIRE -784 -872 -784 -936
WIRE -496 -872 -496 -936
WIRE -784 -728 -784 -792
WIRE -496 -728 -496 -792
WIRE -656 -344 -784 -344
WIRE -368 -344 -496 -344
WIRE -656 -232 -656 -344
WIRE -368 -232 -368 -344
WIRE -656 -88 -656 -152
WIRE -368 -88 -368 -152
WIRE -1280 232 -1456 232
WIRE -976 232 -1120 232
WIRE -1280 344 -1280 232
WIRE -976 344 -976 232
WIRE -1280 488 -1280 424
WIRE -976 488 -976 424
WIRE -1024 680 -1264 680
WIRE -336 680 -528 680
WIRE 432 680 224 680
WIRE 1456 680 1376 680
WIRE -1264 792 -1264 680
WIRE -528 792 -528 680
WIRE 224 792 224 680
WIRE 1376 792 1376 680
WIRE -1264 936 -1264 872
WIRE -528 936 -528 872
WIRE 224 936 224 872
WIRE 1376 936 1376 872
FLAG -1024 680 idg_irm_ss
FLAG -1264 936 0
FLAG -496 -344 Ioo
FLAG -368 -88 0
FLAG -1456 232 k0
FLAG -1280 488 0
FLAG -1120 232 k1
FLAG -976 488 0
FLAG -784 -728 0
FLAG -704 -936 iv0
FLAG -496 -728 0
FLAG -416 -936 iv1
FLAG 432 680 idg_irm
FLAG 224 936 0
FLAG -336 680 <idgbasso>
FLAG -528 936 0
FLAG -656 -88 0
FLAG -784 -344 IooChk
FLAG 1376 936 0
FLAG 1456 680 idg_izoh
DATAFLAG -832 768 ""
DATAFLAG -1120 768 ""
DATAFLAG -1792 1344 ""
DATAFLAG -1424 1344 ""
DATAFLAG -1616 1792 ""
DATAFLAG -864 1792 ""
DATAFLAG -176 1792 ""
SYMBOL bv -1264 776 R0
SYMATTR InstName B1
SYMATTR Value V=V(k0)*V(iv0) + V(k1)*V(iv1) + fdg
SYMBOL bv -368 -248 R0
SYMATTR InstName B2
SYMATTR Value V=(adg+bdg+cdg)*V(iv0)*V(iv0) + (ddg+edg)*V(iv0) + fdg
SYMBOL bv -1280 328 R0
SYMATTR Value V=2*adg*iv + cdg*iv +ddg
SYMATTR InstName B3
SYMBOL bv -976 328 R0
SYMATTR Value V=2*bdg*iv +cdg*iv + edg
SYMATTR InstName B4
SYMBOL voltage -784 -888 R0
SYMATTR Value2 AC 1
SYMATTR InstName V1
SYMATTR Value {iv}
SYMBOL bv -496 -888 R0
SYMATTR InstName B5
SYMATTR Value V=V(iv0) Laplace=exp(-s*Tsw)
SYMBOL bv 224 776 R0
SYMATTR InstName B6
SYMATTR Value V=adg*V(iv0)*V(iv0) + bdg*V(iv1)*V(iv1) + cdg*V(iv0)*V(iv1) + ddg*V(iv0) + edg*V(iv1) + fdg
SYMBOL bv -528 776 R0
SYMATTR InstName B7
SYMATTR Value V=V(Ioo) Laplace=(1 - s/wrhpz)
SYMBOL bv -656 -248 R0
SYMATTR InstName B10
SYMATTR Value V=Iinf
SYMBOL bv 1376 776 R0
SYMATTR InstName B13
SYMATTR Value V=V(idg_irm_ss) Laplace=s*Tsw/(1 - exp(-s*Tsw))