* Z:\tmp\asc_dec_bjh7r6w2\0a719e6e3e92_4046_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
Rm Mix N020 1
Rz Zener N020 1g
bdem Demout N020 V=table (2e8*v(vcoin,demout)*(1-u(v(inh))),-20,-20, 20,20)
Bim Ce1 Vss I=((M1*I(Er1)*V(adj)+M2*I(Er2))*Kc*V(sqr))
Aca Sigin Vss Vss Vss Vss N002 ca Vss SCHMITT vt=0 vh=150m td=20n tripdt=50n
Rdumy ca Vss 1g
Rpout Vss Ppout 10k
Rin Vcoin N020 {Rin}
BOut Vcout Vss V=table ((1-u(v(inh)))*(v(sqr)),.1,.1, v(vdd),v(vdd))
Spcpo Ppout N001 N006 Vss Std
Dliml 14 N017 Dio
Cstray Ce1 Ce2 5p
Axor cc Vss Vss Vss N009 Vss N007 Vss XOR
Er2 N020 Ir1 Mix Ir1 2e8
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2112 680
WIRE -208 -528 -208 -560
WIRE -144 -624 -144 -672
WIRE -144 -528 -208 -528
WIRE -144 -528 -144 -544
WIRE -144 -512 -144 -528
WIRE -96 -704 -96 -720
WIRE -80 -560 -96 -560
WIRE -80 -416 -80 -560
WIRE -48 -544 -48 -576
WIRE -48 -512 -48 -544
WIRE -32 -608 -96 -608
WIRE -32 -512 -48 -512
WIRE 0 -544 -48 -544
WIRE 0 -544 0 -560
WIRE 16 -864 -16 -864
WIRE 16 -736 16 -864
WIRE 16 -656 16 -736
WIRE 32 -656 16 -656
WIRE 48 -864 16 -864
WIRE 48 -816 48 -832
WIRE 48 -800 48 -816
WIRE 48 -736 16 -736
WIRE 48 -704 0 -704
WIRE 48 -608 32 -608
WIRE 48 -592 32 -592
WIRE 48 -592 48 -608
WIRE 48 -576 32 -576
WIRE 48 -576 48 -592
WIRE 48 -544 0 -544
WIRE 48 -544 48 -576
WIRE 64 -800 48 -800
WIRE 96 0 96 -16
WIRE 96 16 96 0
WIRE 96 112 96 80
WIRE 112 -816 48 -816
WIRE 112 -816 112 -848
WIRE 112 -16 96 -16
WIRE 128 -720 112 -720
WIRE 128 -656 112 -656
WIRE 128 -656 128 -720
WIRE 144 -880 112 -880
WIRE 160 -880 144 -880
WIRE 160 -720 160 -880
WIRE 160 -624 32 -624
WIRE 160 -624 160 -720
WIRE 160 -560 32 -560
WIRE 160 -400 160 -560
WIRE 160 -128 160 -160
WIRE 160 0 96 0
WIRE 160 16 160 0
WIRE 160 112 96 112
WIRE 160 112 160 96
WIRE 192 -592 176 -592
WIRE 192 -592 192 -672
WIRE 224 -768 224 -784
WIRE 224 -720 160 -720
WIRE 224 -672 192 -672
WIRE 224 -448 192 -448
WIRE 224 -400 160 -400
WIRE 224 -336 208 -336
WIRE 224 -336 224 -352
WIRE 240 -784 224 -784
WIRE 240 -256 192 -256
WIRE 240 -224 240 -256
WIRE 240 -128 160 -128
WIRE 240 -128 240 -144
WIRE 256 16 256 0
WIRE 256 112 160 112
WIRE 256 112 256 96
WIRE 304 -336 304 -352
WIRE 304 0 256 0
WIRE 320 -288 288 -288
WIRE 320 -240 320 -288
WIRE 320 -224 320 -240
WIRE 320 -128 240 -128
WIRE 320 -128 320 -144
WIRE 336 0 304 0
WIRE 336 16 336 0
WIRE 336 112 256 112
WIRE 336 112 336 96
WIRE 352 -288 320 -288
WIRE 352 -240 320 -240
WIRE 416 -448 384 -448
WIRE 416 -448 416 -576
WIRE 416 32 416 0
WIRE 432 32 416 32
WIRE 448 -288 432 -288
WIRE 448 -240 416 -240
WIRE 448 -240 448 -288
WIRE 448 -224 448 -240
WIRE 448 -128 320 -128
WIRE 448 -128 448 -144
WIRE 480 -288 448 -288
WIRE 480 0 416 0
WIRE 480 16 480 0
WIRE 480 112 336 112
WIRE 480 112 480 96
WIRE 496 0 480 0
WIRE 544 -448 416 -448
WIRE 544 -448 544 -704
WIRE 544 -128 448 -128
WIRE 576 32 576 0
WIRE 592 -416 592 -672
WIRE 592 32 576 32
WIRE 624 -384 624 -432
WIRE 624 -368 608 -368
WIRE 624 -368 624 -384
WIRE 624 -240 576 -240
WIRE 624 -224 624 -240
WIRE 624 -128 544 -128
WIRE 624 -128 624 -144
WIRE 640 -416 592 -416
WIRE 640 -400 400 -400
WIRE 640 -384 624 -384
WIRE 640 0 576 0
WIRE 640 16 640 0
WIRE 640 112 480 112
WIRE 640 112 640 96
WIRE 656 -368 624 -368
WIRE 656 -240 624 -240
WIRE 656 0 640 0
WIRE 688 112 640 112
WIRE 736 32 736 0
WIRE 752 -336 304 -336
WIRE 784 -128 624 -128
WIRE 784 -128 784 -144
WIRE 800 0 736 0
WIRE 800 16 800 0
WIRE 800 112 688 112
WIRE 800 112 800 96
WIRE 832 -672 832 -688
WIRE 832 -656 832 -672
WIRE 832 -608 832 -656
WIRE 832 -592 832 -608
WIRE 832 -240 784 -240
WIRE 848 -672 832 -672
WIRE 848 -656 832 -656
WIRE 848 -640 800 -640
WIRE 848 -624 800 -624
WIRE 848 -608 832 -608
WIRE 864 -592 832 -592
WIRE 864 -592 864 -608
WIRE 880 -592 864 -592
WIRE 880 -432 848 -432
WIRE 880 -432 880 -576
WIRE 912 -688 832 -688
WIRE 912 -656 912 -688
WIRE 912 -240 896 -240
WIRE 928 -240 912 -240
WIRE 928 -224 928 -240
WIRE 928 -128 784 -128
WIRE 928 -128 928 -144
WIRE 944 -272 784 -272
WIRE 944 -240 944 -272
WIRE 944 0 928 0
WIRE 944 16 944 0
WIRE 944 112 800 112
WIRE 944 112 944 96
WIRE 960 -624 912 -624
WIRE 960 -576 880 -576
WIRE 976 -240 944 -240
WIRE 1008 -640 1008 -736
WIRE 1008 -544 992 -544
WIRE 1008 -544 1008 -560
WIRE 1008 -528 1008 -544
WIRE 1008 -432 880 -432
WIRE 1008 -432 1008 -448
WIRE 1040 16 1040 0
WIRE 1040 112 944 112
WIRE 1040 112 1040 96
WIRE 1056 -240 1040 -240
WIRE 1072 -336 1056 -336
WIRE 1072 -336 1072 -352
WIRE 1072 -240 1056 -240
WIRE 1072 -224 1072 -240
WIRE 1072 -128 928 -128
WIRE 1072 -128 1072 -144
WIRE 1104 -704 800 -704
WIRE 1104 -656 1088 -656
WIRE 1104 -400 800 -400
WIRE 1104 -352 1072 -352
WIRE 1152 -736 1008 -736
WIRE 1152 -736 1152 -816
WIRE 1152 -720 1152 -736
WIRE 1152 -496 1136 -496
WIRE 1152 -496 1152 -640
WIRE 1152 -416 1152 -496
WIRE 1152 -336 1072 -336
WIRE 1152 -288 1136 -288
WIRE 1152 -224 1152 -288
WIRE 1152 -128 1072 -128
WIRE 1152 -128 1152 -144
WIRE 1152 0 1040 0
WIRE 1152 16 1152 0
WIRE 1152 112 1040 112
WIRE 1152 112 1152 96
WIRE 1168 -16 1152 -16
WIRE 1168 0 1152 0
WIRE 1168 0 1168 -16
SYMBOL res 240 0 R0
WINDOW 0 24 47 Left 0
SYMATTR InstName Rm
SYMATTR Value 1
SYMBOL res 144 0 R0
WINDOW 0 59 49 Right 0
WINDOW 3 30 84 Left 0
SYMATTR InstName Rz
SYMATTR Value 1g
SYMBOL bv 1152 0 R0
WINDOW 0 -32 57 Left 0
WINDOW 3 28 156 Right 0
SYMATTR InstName bdem
SYMATTR Value V=table (2e8*v(vcoin,demout)*(1-u(v(inh))),-20,-20, 20,20)
SYMBOL bi 448 -224 R0
WINDOW 0 -19 24 Left 0
WINDOW 3 -396 138 Left 0
SYMATTR InstName Bim
SYMATTR Value I=((M1*I(Er1)*V(adj)+M2*I(Er2))*Kc*V(sqr))
SYMBOL Digital\\schmitt 48 -800 R0
WINDOW 3 -181 102 Invisible 0
WINDOW 0 34 35 Left 0
SYMATTR Value vt=0 vh=150m td=20n tripdt=50n
SYMATTR InstName Aca
SYMBOL res -112 -816 R0
SYMATTR InstName Rdumy
SYMATTR Value 1g
SYMBOL res 1024 -432 R180
WINDOW 0 32 79 Left 0
WINDOW 3 34 45 Left 0
SYMATTR InstName Rpout
SYMATTR Value 10k
SYMBOL res 928 0 R0
WINDOW 0 -51 41 Left 0
WINDOW 3 -67 69 Left 0
SYMATTR InstName Rin
SYMATTR Value {Rin}
SYMBOL bv 1152 -240 R0
WINDOW 0 -28 58 Left 0
WINDOW 3 -492 187 Left 0
SYMATTR InstName BOut
SYMATTR Value V=table ((1-u(v(inh)))*(v(sqr)),.1,.1, v(vdd),v(vdd))
SYMBOL sw 1008 -544 M180
WINDOW 0 -25 54 Left 0
WINDOW 3 -50 107 Left 0
SYMATTR InstName pcpo
SYMATTR Value Std
SYMBOL diode 1040 -256 R90
WINDOW 0 1 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName Dliml
SYMATTR Value Dio
SYMBOL cap 416 -256 R90
WINDOW 0 56 28 VBottom 0
WINDOW 3 -12 -16 VTop 0
SYMATTR InstName Cstray
SYMATTR Value 5p
SYMBOL Digital\\xor -16 -656 M0
WINDOW 0 -34 12 Left 0
SYMATTR InstName Axor
SYMBOL e 480 112 M180
WINDOW 0 -17 58 Left 0
WINDOW 3 -58 96 Left 0
SYMATTR InstName Er2
SYMATTR Value 2e8
FLAG 176 -592 Vdd
FLAG 992 -544 Ppout
FLAG 1136 -496 CBout
FLAG -208 -560 CAout
FLAG -144 -672 Vdd
FLAG -16 -864 Sigin
FLAG 112 -752 ca
FLAG 144 -880 cc
FLAG 608 -368 Vss
FLAG 848 -432 Vss
FLAG 1056 -336 Vss
FLAG -32 -512 Vss
FLAG 240 -784 Vss
FLAG 64 -800 Vss
FLAG 0 -704 Vss
FLAG 880 -592 Vss
FLAG 1088 -656 Vss
FLAG -96 -704 Vss
FLAG -96 -800 ca
FLAG 928 0 Vcoin
FLAG 304 0 Mix
FLAG 576 32 Ir2
FLAG 592 80 Vdd
FLAG 656 0 r2
FLAG 416 32 Ir1
FLAG 432 80 Mix
FLAG 496 0 r1
FLAG 544 -128 Vss
FLAG 480 -288 Ce1
FLAG 288 -288 Ce2
FLAG 576 -240 Pul
FLAG 912 -240 13
FLAG 1056 -240 14
FLAG 1136 -288 Vcout
FLAG 736 32 Inh
FLAG 112 -16 Zener
FLAG 1152 -16 Demout