* Z:\tmp\asc_dec_bjh7r6w2\0812b1eda031_BH-simple-2_dec1.asc
* Generated by LTspice 26.0.1 for Windows.
R16 -Vb N006 100
R12 N002 +Vo 470
Q3 A N008 N001 0 2N5401
R19 +Vi N007 600
MQ8 N016 N019 N024 N024 Si9420DY m=.15
R11 N025 N026 100
I3 N023 0 TBL(-15 0 -14 3m3)
R20 -Vi N014 600
R17 N010 N011 10k
R3 +Vo N015 200k
I6 0 N017 TBL(300 0 301 11m)
D2 N004 N013 1N914
V5 0 N027 400 Rser=1
I2 0 N004 TBL(-15 0 -14 2m)
R4 -Vo N018 200k
I7 0 -Vo TBL(-398 0 -397 28m)
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NPN NPN
.model PNP PNP
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.bjt
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 1368 1008
WIRE -464 48 -480 48
WIRE -464 128 -464 48
WIRE -464 256 -464 208
WIRE -448 48 -464 48
WIRE -448 128 -464 128
WIRE -448 176 -464 176
WIRE -448 256 -464 256
WIRE -400 208 -464 208
WIRE -400 208 -400 192
WIRE -352 48 -368 48
WIRE -352 256 -368 256
WIRE -192 192 -240 192
WIRE -144 -176 -144 -192
WIRE -144 -80 -144 -96
WIRE -144 32 -144 -80
WIRE -144 128 -144 96
WIRE -144 240 -144 224
WIRE -144 336 -144 240
WIRE -144 432 -144 416
WIRE -112 112 -240 112
WIRE -112 192 -112 112
WIRE -80 432 -144 432
WIRE -80 448 -80 432
WIRE -80 544 -80 528
WIRE -64 192 -112 192
WIRE -16 -176 -16 -192
WIRE -16 0 -16 -96
WIRE -16 32 -16 0
WIRE -16 128 -16 96
WIRE -16 320 -16 224
WIRE -16 336 -16 320
WIRE -16 432 -80 432
WIRE -16 432 -16 416
WIRE 16 -80 -144 -80
WIRE 16 0 -16 0
WIRE 32 240 -144 240
WIRE 32 320 -16 320
WIRE 64 64 64 -16
WIRE 64 80 64 64
WIRE 64 176 64 160
WIRE 128 240 112 240
WIRE 128 320 112 320
WIRE 144 -80 112 -80
WIRE 144 0 112 0
WIRE 368 384 352 384
WIRE 464 384 448 384
WIRE 464 464 416 464
WIRE 464 464 464 384
WIRE 464 528 464 464
WIRE 464 624 352 624
WIRE 464 624 464 608
WIRE 480 384 464 384
WIRE 512 464 464 464
WIRE 576 208 576 160
WIRE 576 352 576 288
WIRE 576 384 560 384
WIRE 576 384 576 352
WIRE 576 416 576 384
WIRE 576 528 576 512
WIRE 576 624 464 624
WIRE 576 624 576 608
WIRE 640 -128 640 -160
WIRE 640 -112 640 -128
WIRE 640 -16 640 -32
WIRE 640 352 576 352
WIRE 640 512 640 352
WIRE 672 -16 640 -16
WIRE 672 320 352 320
WIRE 672 464 672 320
WIRE 720 -128 640 -128
WIRE 720 -128 720 -144
WIRE 720 -64 720 -128
WIRE 752 -128 720 -128
WIRE 752 112 752 48
WIRE 752 288 752 112
WIRE 752 624 576 624
WIRE 752 624 752 384
WIRE 784 0 768 0
WIRE 784 112 752 112
WIRE 784 464 672 464
WIRE 832 208 832 192
WIRE 832 304 800 304
WIRE 832 304 832 288
WIRE 832 384 832 304
WIRE 864 624 752 624
WIRE 880 0 864 0
WIRE 912 0 880 0
WIRE 912 16 912 0
WIRE 912 112 864 112
WIRE 912 112 912 96
WIRE 912 480 832 480
WIRE 912 528 912 480
WIRE 960 0 912 0
WIRE 960 112 912 112
WIRE 992 208 992 192
WIRE 992 304 992 288
WIRE 992 384 992 304
WIRE 992 480 912 480
WIRE 1024 304 992 304
WIRE 1040 512 640 512
WIRE 1040 512 1040 464
WIRE 1056 0 1040 0
WIRE 1072 112 1040 112
WIRE 1072 112 1072 48
WIRE 1072 288 1072 112
WIRE 1072 624 912 624
WIRE 1072 624 1072 384
WIRE 1104 -224 1104 -240
WIRE 1104 -128 1072 -128
WIRE 1104 -128 1104 -144
WIRE 1104 -64 1104 -128
WIRE 1184 -224 1184 -240
WIRE 1184 -128 1104 -128
WIRE 1184 -128 1184 -160
WIRE 1184 -112 1184 -128
WIRE 1184 -16 1184 -32
WIRE 1184 528 1184 512
WIRE 1184 624 1072 624
WIRE 1184 624 1184 608
SYMBOL res 944 16 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R16
SYMATTR Value 100
SYMBOL res 656 -16 R180
WINDOW 0 36 76 Left 0
WINDOW 3 36 40 Left 0
SYMATTR InstName R12
SYMATTR Value 470
SYMBOL pnp 112 -16 M270
WINDOW 0 44 0 VLeft 0
WINDOW 3 21 3 VLeft 0
SYMATTR InstName Q3
SYMATTR Value 2N5401
SYMBOL res -352 32 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R19
SYMATTR Value 600
SYMBOL nmos 784 384 R0
WINDOW 0 56 24 Left 0
WINDOW 3 57 72 Left 0
WINDOW 123 57 48 Left 0
SYMATTR InstName Q8
SYMATTR Value Si9420DY
SYMATTR Value2 m=.15
SYMBOL res 560 512 R0
SYMATTR InstName R11
SYMATTR Value 100
SYMBOL current -80 448 M0
WINDOW 0 40 24 Left 0
WINDOW 3 40 56 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I3
SYMATTR Value TBL(-15 0 -14 3m3)
SYMBOL res -352 240 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R20
SYMATTR Value 600
SYMBOL res 944 128 R270
WINDOW 0 32 56 VTop 0
WINDOW 3 0 56 VBottom 0
SYMATTR InstName R17
SYMATTR Value 10k
SYMBOL res 128 224 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R3
SYMATTR Value 200k
SYMBOL current 992 208 R0
WINDOW 0 18 0 Left 0
WINDOW 3 80 -40 Right 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I6
SYMATTR Value TBL(300 0 301 11m)
SYMBOL diode 0 32 M0
WINDOW 0 42 21 Left 0
WINDOW 3 40 44 Left 0
SYMATTR InstName D2
SYMATTR Value 1N914
SYMBOL voltage 1184 512 M0
WINDOW 123 0 0 Left 0
WINDOW 39 40 80 Left 0
WINDOW 0 40 32 Left 0
WINDOW 3 40 56 Left 0
SYMATTR SpiceLine Rser=1
SYMATTR InstName V5
SYMATTR Value 400
SYMBOL current -16 -176 R0
WINDOW 0 40 40 Left 0
WINDOW 3 32 16 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I2
SYMATTR Value TBL(-15 0 -14 2m)
SYMBOL res 128 304 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R4
SYMATTR Value 200k
SYMBOL current 1104 -224 M0
WINDOW 0 32 64 Left 0
WINDOW 3 32 16 Left 0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I7
SYMATTR Value TBL(-398 0 -397 28m)
FLAG 64 176 0
FLAG 1184 512 0
FLAG 752 -128 +Vo
FLAG 128 240 +Vo
FLAG 128 320 -Vo
FLAG -240 112 -Vi
FLAG -352 256 -Vi
FLAG -352 48 +Vi
FLAG -240 192 +Vi
FLAG -80 544 0
FLAG -144 -192 0
FLAG -16 -192 0
FLAG 144 -80 A
FLAG 144 0 B
FLAG 576 160 B
FLAG 880 0 -Vb
FLAG 832 192 0
FLAG 992 192 0
FLAG 1072 -128 -Vo
FLAG 1104 -240 0
FLAG 1184 -240 0
FLAG -464 176 0
FLAG -400 112 0