* Z:\tmp\asc_dec_bjh7r6w2\0628f98d720a_VCO_logic_2-3-curr-mirr_6-sw_2_dec2.asc
* Generated by LTspice 26.0.1 for Windows.
M4 N010 11 N009 N009 QP
R6 N008 N009 10
D1 N005 N006 1N914
M1 12 12 A A QP
XU1 12 Vref A opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
R1 11 0 80k
V3 _inh 0 5
S3 0 N013 Gate1 0 SW
S1 0 N002 Gate2 0 SW
D2 N010 N006 1N914
R7 N006 N001 1
A2 C1A 0 0 0 0 0 N011 0 SCHMITT Vt=1.1 Vh=0
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.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 3256 1204
WIRE 1152 -480 1152 -528
WIRE 1152 -368 1152 -400
WIRE 224 -176 176 -176
WIRE 336 -160 288 -160
WIRE 368 -160 336 -160
WIRE 224 -144 192 -144
WIRE 1440 -128 1408 -128
WIRE 1408 -112 1408 -128
WIRE 1488 -112 1456 -112
WIRE 448 -80 448 -144
WIRE 560 -80 448 -80
WIRE 672 -80 656 -80
WIRE 704 -80 672 -80
WIRE 192 -64 192 -144
WIRE 192 -64 176 -64
WIRE 224 -64 192 -64
WIRE 336 -64 336 -160
WIRE 336 -64 304 -64
WIRE 1088 -64 1040 -64
WIRE 1392 -64 1280 -64
WIRE 1488 -64 1488 -112
WIRE 1488 -64 1472 -64
WIRE 1504 -64 1488 -64
WIRE 576 0 576 -32
WIRE 672 0 672 -80
WIRE 672 0 576 0
WIRE 576 32 576 0
WIRE 1040 32 1040 -64
WIRE 1120 32 1040 32
WIRE 1360 32 1280 32
WIRE 1456 32 1424 32
WIRE 1696 48 1648 48
WIRE 448 80 448 -80
WIRE 464 80 448 80
WIRE 560 80 544 80
WIRE 720 80 656 80
WIRE 896 80 784 80
WIRE -16 96 -16 64
WIRE 128 96 128 64
WIRE 896 128 896 80
WIRE 928 128 896 128
WIRE 1040 128 1040 32
WIRE 1040 128 1008 128
WIRE 1456 128 1456 32
WIRE 1488 128 1456 128
WIRE 1824 128 1824 64
WIRE 1856 128 1824 128
WIRE 464 176 448 176
WIRE 560 176 544 176
WIRE 720 176 656 176
WIRE 896 176 896 128
WIRE 896 176 784 176
WIRE 1856 176 1824 176
WIRE 1712 192 1696 192
WIRE -16 208 -16 176
WIRE 128 208 128 176
WIRE 1696 208 1696 192
WIRE 1040 240 1040 128
WIRE 1120 240 1040 240
WIRE 1360 240 1280 240
WIRE 1456 240 1456 128
WIRE 1456 240 1424 240
WIRE 1696 240 1648 240
WIRE 576 256 576 224
WIRE 672 256 576 256
WIRE 1824 256 1824 176
WIRE 1824 256 1760 256
WIRE 576 288 576 256
WIRE 1040 320 1040 240
WIRE 1392 320 1280 320
WIRE 1488 320 1472 320
WIRE 1504 320 1488 320
WIRE 448 336 448 176
WIRE 560 336 448 336
WIRE 672 336 672 256
WIRE 672 336 656 336
WIRE 704 336 672 336
WIRE 1488 368 1488 320
WIRE 1488 368 1456 368
WIRE 1408 384 1408 368
WIRE 1440 384 1408 384
WIRE 448 432 448 336
SYMBOL pmos 656 224 M270
SYMATTR InstName M4
SYMATTR Value QP
SYMBOL res 448 160 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R6
SYMATTR Value 10
SYMBOL diode 720 64 M90
WINDOW 3 32 32 VTop 0
WINDOW 0 0 32 VBottom 0
SYMATTR Value 1N914
SYMATTR InstName D1
SYMBOL pmos 656 -32 M270
SYMATTR InstName M1
SYMATTR Value QP
SYMBOL Opamps\\opamp 256 -96 M180
SYMATTR InstName U1
SYMBOL res -32 80 R0
SYMATTR InstName R1
SYMATTR Value 80k
SYMBOL voltage 1152 -496 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL sw 1488 320 M270
SYMATTR InstName S3
SYMBOL sw 1488 -64 R90
SYMATTR InstName S1
SYMBOL diode 720 192 R270
WINDOW 3 0 32 VBottom 0
WINDOW 0 32 32 VTop 0
SYMATTR Value 1N914
SYMATTR InstName D2
SYMBOL res 912 112 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R7
SYMATTR Value 1
SYMBOL Digital\\schmitt 1696 304 M180
WINDOW 3 38 -4 Left 0
SYMATTR Value Vt=1.1 Vh=0
SYMATTR InstName A2
FLAG 176 -176 Vref
FLAG 128 208 0
FLAG 1504 -64 0
FLAG 1504 320 0
FLAG 1152 -368 0
FLAG 1152 -528 _inh
FLAG -16 208 0
FLAG 1488 128 0
FLAG 368 -160 A
FLAG 448 -144 A
FLAG -16 64 11
FLAG 128 64 12
FLAG 176 -64 12
FLAG 704 -80 12
FLAG 704 336 11
FLAG 1440 -128 Gate2
FLAG 1440 384 Gate1
FLAG 1712 192 0
FLAG 1648 240 C1A
FLAG 1648 48 C1B