* SPICE netlist
R1 DB N009 {R_TRIM}
R2 N001 Ve {R_ISENSE}
V1 VCC 0 {VCC}
Q4 Vd Vb Ve 0 TIP42C
Q5 0 N007 Vb 0 2N3906
Q7 DB DB N006 0 2N3906
R7 VCC VT 145
R13 VT N004 145
RT VCC VT {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
D2 Vd Vb BAT54SHY
R12 LEFT N008 {R_SET}
L4 RIGHT N008 {L_SET}
C1 VCC N002 22n
D3 Vd LEFT 1N914
D9 N012 LEFT BZX84C27VLY
D12 RIGHT RIGHT 1N914
D4 N003 VCC BZX84C6V2L
R3 N005 0 4.7k
Q8 0 N005 N009 0 2N3906
Q9 N005 N005 N003 0 2N3906
R4 N007 DB 100
Q1 N006 N006 N004 0 TIP42C
C3 NC_01 N010 5n
R21 N010 RIGHT 25
C2 NC_02 N011 100n
R5 N011 RIGHT 50
L1 VCC N001 10n
I1 RIGHT 0 PULSE(0 320m 50n 1n 1n {TON} {TC}) AC 1
V2 NC_03 RIGHT PULSE(0 2 50n 1n 1n {TON} {TC}) AC 1
R6 N012 RIGHT 500
;.step temp 0 75 25
;.step param VCC 18 25 1
.param VCC=20
;.step param R_SET 100 350 5
.param beta=3468
;.step param beta 3100 4000 100
;.step param R_SET 15 30 15
.temp 25
.step param L_SET list 1p 1u 2u 4u
.param L_SET=1p
.param R_SET=15
.param TON=10350n
.param TC=20500n
.param R_ISENSE=0.562
;.step dec param L_COMP 100n 1000n 3
;.step param R_TRIM 3k 4k 25
.param R_TRIM=3.0k
.ac dec 100 100k 1000mega

* LTspice schematic (.asc)
Version 4
SHEET 1 2304 1984
WIRE -720 -992 -1152 -992
WIRE -640 -992 -720 -992
WIRE -384 -992 -640 -992
WIRE 464 -992 -384 -992
WIRE 576 -992 464 -992
WIRE 576 -928 576 -992
WIRE 464 -784 464 -992
WIRE 576 -768 576 -848
WIRE -384 -704 -384 -992
WIRE -384 -704 -576 -704
WIRE 464 -672 464 -720
WIRE 576 -656 576 -688
WIRE -576 -640 -576 -704
WIRE -384 -640 -384 -704
WIRE 576 -640 576 -656
WIRE 400 -592 -64 -592
WIRE 448 -592 400 -592
WIRE 512 -592 448 -592
WIRE -576 -512 -576 -560
WIRE -432 -512 -576 -512
WIRE -384 -512 -384 -560
WIRE -384 -512 -432 -512
WIRE 400 -496 400 -592
WIRE 464 -496 400 -496
WIRE 576 -496 576 -544
WIRE 576 -496 528 -496
WIRE -720 -464 -720 -992
WIRE -384 -448 -384 -512
WIRE -720 -320 -720 -400
WIRE -384 -320 -384 -368
WIRE -784 -272 -880 -272
WIRE -448 -272 -544 -272
WIRE -880 -192 -880 -272
WIRE -720 -192 -720 -224
WIRE -720 -192 -880 -192
WIRE -544 -192 -544 -272
WIRE -384 -192 -384 -224
WIRE -384 -192 -544 -192
WIRE -384 -160 -384 -192
WIRE -448 -112 -544 -112
WIRE -544 -32 -544 -112
WIRE -384 -32 -384 -64
WIRE -384 -32 -544 -32
WIRE -64 -16 -64 -592
WIRE 576 16 576 -496
WIRE -384 32 -384 -32
WIRE -352 32 -384 32
WIRE -288 32 -352 32
WIRE -128 32 -208 32
WIRE 576 48 576 16
WIRE -1152 64 -1152 -992
WIRE -384 96 -384 32
WIRE 576 208 576 112
WIRE 656 208 576 208
WIRE 736 208 656 208
WIRE 896 208 816 208
WIRE 1024 208 976 208
WIRE 1040 208 1024 208
WIRE 1152 208 1040 208
WIRE 1152 224 1152 208
WIRE 576 288 576 208
WIRE -384 384 -384 176
WIRE 640 400 640 320
WIRE 1056 400 1056 320
WIRE -720 432 -720 -192
WIRE -448 432 -720 432
WIRE 576 432 576 352
WIRE -720 480 -720 432
WIRE -1152 576 -1152 144
WIRE -720 576 -720 560
WIRE -720 576 -1152 576
WIRE -544 576 -720 576
WIRE -384 576 -384 480
WIRE -384 576 -544 576
WIRE -64 576 -64 80
WIRE -64 576 -384 576
WIRE 576 576 576 512
WIRE 640 576 640 480
WIRE 640 576 576 576
WIRE 768 576 640 576
WIRE 848 576 768 576
WIRE 1024 576 1024 208
WIRE 1024 576 848 576
WIRE 1056 576 1056 480
WIRE 1056 576 1024 576
WIRE 1152 576 1152 288
WIRE 1152 576 1056 576
WIRE -544 608 -544 576
WIRE 848 656 848 576
WIRE 848 880 848 736
WIRE 560 912 400 912
WIRE 400 992 400 912
WIRE 464 992 400 992
WIRE 560 992 464 992
FLAG -544 608 0
FLAG -432 -512 VT
FLAG -640 -992 VCC
FLAG -352 32 DB
FLAG 848 880 0
FLAG 656 208 LEFT
FLAG 1040 208 RIGHT
FLAG 576 16 Vd
FLAG 448 -592 Vb
FLAG 576 -656 Ve
FLAG 464 992 0
SYMBOL res -400 80 R0
SYMATTR InstName R1
SYMATTR Value {R_TRIM}
SYMBOL res 560 -784 R0
SYMATTR InstName R2
SYMATTR Value {R_ISENSE}
SYMBOL voltage -1152 48 R0
SYMATTR InstName V1
SYMATTR Value {VCC}
SYMBOL pnp 512 -544 M180
SYMATTR InstName Q4
SYMATTR Value TIP42C
SYMBOL pnp -128 80 M180
SYMATTR InstName Q5
SYMATTR Value 2N3906
SYMBOL pnp -448 -64 M180
SYMATTR InstName Q7
SYMATTR Value 2N3906
SYMBOL res -400 -656 R0
SYMATTR InstName R7
SYMATTR Value 145
SYMBOL res -400 -464 R0
SYMATTR InstName R13
SYMATTR Value 145
SYMBOL res -592 -656 R0
SYMATTR Value {300*exp(beta*(1/(TEMP+273.15)-1/(25+273.15)))}
SYMATTR InstName RT
SYMBOL schottky 528 -512 R90
SYMATTR InstName D2
SYMATTR Value BAT54SHY
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 720 224 R270
SYMATTR InstName R12
SYMATTR Value {R_SET}
SYMBOL ind 992 192 R90
SYMATTR InstName L4
SYMATTR Value {L_SET}
SYMBOL cap 448 -784 R0
SYMATTR InstName C1
SYMATTR Value 22n
SYMBOL diode 560 48 R0
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL diode 592 352 R180
SYMATTR InstName D9
SYMATTR Value BZX84C27VLY
SYMBOL diode 1136 224 R0
SYMATTR InstName D12
SYMATTR Value 1N914
SYMBOL zener -704 -400 R180
SYMATTR InstName D4
SYMATTR Value BZX84C6V2L
SYMBOL res -736 464 R0
SYMATTR InstName R3
SYMATTR Value 4.7k
SYMBOL pnp -448 480 M180
SYMATTR InstName Q8
SYMATTR Value 2N3906
SYMBOL pnp -784 -224 M180
SYMATTR InstName Q9
SYMATTR Value 2N3906
SYMBOL res -192 16 R90
SYMATTR InstName R4
SYMATTR Value 100
SYMBOL pnp -448 -224 M180
SYMATTR InstName Q1
SYMATTR Value TIP42C
SYMBOL cap 624 256 R0
SYMATTR InstName C3
SYMATTR Value 5n
SYMBOL res 624 384 R0
SYMATTR InstName R21
SYMATTR Value 25
SYMBOL cap 1040 256 R0
SYMATTR InstName C2
SYMATTR Value 100n
SYMBOL res 1040 384 R0
SYMATTR InstName R5
SYMATTR Value 50
SYMBOL ind 560 -944 R0
SYMATTR InstName L1
SYMATTR Value 10n
SYMBOL current 848 656 R0
SYMATTR InstName I1
SYMATTR Value PULSE(0 320m 50n 1n 1n {TON} {TC})
SYMATTR Value2 AC 1
SYMBOL voltage 768 480 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 2 50n 1n 1n {TON} {TC})
SYMATTR Value2 AC 1
SYMBOL res 560 416 R0
SYMATTR InstName R6
SYMATTR Value 500