* Z:\tmp\asc_dec_bjh7r6w2\0a7b7fc07784_VCO_logic_2-3-curr-mirr_6-sw_2-phd__Shmitt_Vt__dec1.asc
* Generated by LTspice 26.0.1 for Windows.
R1 11 0 10k
A2 C1A 0 0 0 0 0 N009 0 SCHMITT Vt=0.05 Vh=0
XU16 11 9 B opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
R3 N011 0 100k
R9 11 B 100k
R8 A 12 100k
B1 VCO_out 0 V=V(Gate2)*V(Vref)
V4 N010 0 PULSE(0 1 1u 100n 100n 5u 9.8u)
V2 Test|_VCO_without_PHD 0 PULSE(0 6 0 1500u 1u 1u 1700u)
V1 Vref 0 5
C1 9 N012 1n
B4 _VCO_out 0 V=V(Gate1)*V(Vref)
M4 N007 11 N006 N006 QP
.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 3744 1204
WIRE 608 -480 608 -528
WIRE 736 -480 736 -512
WIRE 608 -368 608 -400
WIRE 736 -368 736 -400
WIRE 224 -176 176 -176
WIRE 336 -160 288 -160
WIRE 368 -160 336 -160
WIRE 224 -144 192 -144
WIRE 448 -80 448 -144
WIRE 560 -80 448 -80
WIRE 2256 -80 2256 -144
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 576 32 576 0
WIRE 2256 32 2256 0
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 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 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 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 2256 288 2256 224
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 256 352 224 352
WIRE 352 352 320 352
WIRE 2256 400 2256 368
WIRE 448 432 448 336
WIRE 224 448 224 352
WIRE 224 448 192 448
WIRE 240 448 224 448
WIRE 352 464 352 352
WIRE 352 464 304 464
WIRE 384 464 352 464
WIRE 240 480 208 480
WIRE 208 560 208 480
WIRE 208 560 176 560
WIRE 224 560 208 560
WIRE 352 560 352 464
WIRE 352 560 304 560
WIRE 1216 816 1024 816
WIRE 1504 832 1344 832
WIRE 1520 832 1504 832
WIRE 1616 832 1600 832
WIRE 1696 832 1616 832
WIRE 1792 832 1696 832
WIRE 1184 848 1184 736
WIRE 1216 848 1184 848
WIRE 1696 848 1696 832
WIRE 1024 864 1024 816
WIRE 1504 864 1504 832
WIRE 1216 880 1184 880
WIRE 1184 896 1184 880
WIRE 1616 928 1616 912
WIRE 1696 928 1696 912
WIRE 1696 928 1616 928
WIRE 1696 944 1696 928
WIRE 1024 960 1024 944
WIRE 1504 976 1504 944
WIRE 1696 1024 1696 1008
SYMBOL res -32 80 R0
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL Digital\\schmitt 1696 304 M180
WINDOW 3 38 -4 Left 0
SYMATTR Value Vt=0.05 Vh=0
SYMATTR InstName A2
SYMBOL Opamps\\opamp 272 528 M180
SYMATTR InstName U16
SYMBOL res 1488 848 R0
SYMATTR InstName R3
SYMATTR Value 100k
SYMBOL res 208 544 M90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R9
SYMATTR Value 100k
SYMBOL res 320 -80 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R8
SYMATTR Value 100k
SYMBOL bv 2256 -96 R0
WINDOW 3 -90 165 Left 0
SYMATTR Value V=V(Gate2)*V(Vref)
SYMATTR InstName B1
SYMBOL voltage 1024 848 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value PULSE(0 1 1u 100n 100n 5u 9.8u)
SYMBOL voltage 736 -496 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value PULSE(0 6 0 1500u 1u 1u 1700u)
SYMBOL voltage 608 -496 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL cap 1680 848 R0
SYMATTR InstName C1
SYMATTR Value 1n
SYMBOL bv 2256 272 R0
WINDOW 3 -99 111 Left 0
SYMATTR Value V=V(Gate1)*V(Vref)
SYMATTR InstName B4
SYMBOL pmos 656 224 M270
SYMATTR InstName M4
SYMATTR Value QP
FLAG 736 -368 0
FLAG 608 -368 0
FLAG 608 -528 Vref
FLAG 176 -176 Vref
FLAG 128 208 0
FLAG 1504 320 0
FLAG -16 208 0
FLAG 368 -160 A
FLAG 384 464 B
FLAG 448 432 B
FLAG 448 -144 A
FLAG -16 64 11
FLAG 128 64 12
FLAG 176 -64 12
FLAG 176 560 11
FLAG 192 448 9
FLAG 1792 832 9
FLAG 704 336 11
FLAG 2256 32 0
FLAG 2256 400 0
FLAG 1712 192 0
FLAG 1648 240 C1A
FLAG 2256 -144 VCO_out
FLAG 2256 224 _VCO_out
FLAG 1024 960 0
FLAG 1504 976 0
FLAG 1696 1024 0
FLAG 1184 736 _VCO_out
FLAG 1184 896 0
FLAG 736 -512 Test|_VCO_without_PHD