* SPICE netlist
V1 Vref 0 5
V2 Test|_VCO_without_PHD 0 PULSE(0 6 0 1500u 1u 1u 1700u)
R2 12 0 200k
XU1 12 Vref A opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
V3 _inh 0 5
R1 11 0 10k
XU16 11 9 B opamp Aol=100K GBW=10Meg ;pnba invin)noninvin)out
R5 A N003 10
M3 11 11 B B QP
M4 N007 11 N006 N006 QP
D1 N004 N005 1N914
D2 N007 N005 1N914
R6 B N006 10
M1 12 12 A A QP
M2 N004 12 N003 N003 QP
R7 N005 N001 1
R8 A 12 100k
R9 11 B 100k
C2 C1B C1A 220p
B1 VCO_out 0 V=V(Gate2)*V(Vref)
B4 _VCO_out 0 V=V(Gate1)*V(Vref)
S1 0 C1A Gate2 0 SW
S2 C1B N001 Gate2 0 SW
S3 0 C1B Gate1 0 SW
S4 C1A N001 Gate1 0 SW
A1 C1B 0 0 0 0 0 N002 0 SCHMITT Vt=0.05 Vh=0
A2 C1A 0 0 0 0 0 N008 0 SCHMITT Vt=0.05 Vh=0
A3 N008 N002 0 0 0 Gate1 Gate2 0 SRFLOP Td=10ns Trise=10ns Tfall=10ns
A4 N009 _VCO_out 0 0 0 0 N010 0 PHASEDET
V4 N009 0 PULSE(0 1 1u 100n 100n 5u 9.8u)
R3 N010 0 100k
R4 9 N010 1k
R10 9 N011 470
C1 9 N011 1n
C3 N011 0 10n
C4 B 9 10p
D3 C1A N001 1N746
D4 0 C1A 1N746
D5 C1B N001 1N746
D6 0 C1B 1N746
.ic V(C1A)=0 V(C1B)=0
.tran 4.08m
.inc "C:\Program Files\LTC\LTspiceIV\lib\sym\Extra\CD4000\CD4000.lib"

* LTspice schematic (.asc)
Version 4
SHEET 1 2288 1552
WIRE -504 -728 -504 -776
WIRE -376 -728 -376 -760
WIRE 40 -728 40 -776
WIRE -504 -616 -504 -648
WIRE -376 -616 -376 -648
WIRE 40 -616 40 -648
WIRE -888 -424 -936 -424
WIRE -776 -408 -824 -408
WIRE -744 -408 -776 -408
WIRE -888 -392 -920 -392
WIRE 24 -392 -8 -392
WIRE 328 -376 296 -376
WIRE -8 -360 -8 -392
WIRE 88 -360 40 -360
WIRE 296 -360 296 -376
WIRE 376 -360 344 -360
WIRE -664 -328 -664 -392
WIRE -552 -328 -664 -328
WIRE -440 -328 -456 -328
WIRE -408 -328 -440 -328
WIRE 1144 -328 1144 -392
WIRE -920 -312 -920 -392
WIRE -920 -312 -936 -312
WIRE -888 -312 -920 -312
WIRE -776 -312 -776 -408
WIRE -776 -312 -808 -312
WIRE -24 -312 -72 -312
WIRE 168 -312 56 -312
WIRE 280 -312 168 -312
WIRE 376 -312 376 -360
WIRE 376 -312 360 -312
WIRE 392 -312 376 -312
WIRE 600 -264 584 -264
WIRE -536 -248 -536 -280
WIRE -440 -248 -440 -328
WIRE -440 -248 -536 -248
WIRE 584 -232 584 -264
WIRE -536 -216 -536 -248
WIRE -72 -216 -72 -312
WIRE 8 -216 -72 -216
WIRE 168 -216 168 -312
WIRE 168 -216 72 -216
WIRE 248 -216 168 -216
WIRE 344 -216 312 -216
WIRE 1144 -216 1144 -248
WIRE 584 -200 536 -200
WIRE 712 -184 648 -184
WIRE 760 -184 744 -184
WIRE -664 -168 -664 -328
WIRE -648 -168 -664 -168
WIRE -552 -168 -568 -168
WIRE -392 -168 -456 -168
WIRE -216 -168 -328 -168
WIRE -1128 -152 -1128 -184
WIRE -984 -152 -984 -184
WIRE 744 -152 744 -184
WIRE 168 -136 168 -216
WIRE 168 -136 152 -136
WIRE -216 -120 -216 -168
WIRE -184 -120 -216 -120
WIRE -72 -120 -72 -216
WIRE -72 -120 -104 -120
WIRE 344 -120 344 -216
WIRE 376 -120 344 -120
WIRE 712 -120 712 -184
WIRE 744 -120 712 -120
WIRE 888 -120 856 -120
WIRE 168 -88 152 -88
WIRE -648 -72 -664 -72
WIRE -552 -72 -568 -72
WIRE -392 -72 -456 -72
WIRE -216 -72 -216 -120
WIRE -216 -72 -328 -72
WIRE 744 -72 712 -72
WIRE 888 -72 840 -72
WIRE 600 -56 584 -56
WIRE -1128 -40 -1128 -72
WIRE -984 -40 -984 -72
WIRE 584 -40 584 -56
WIRE -72 -8 -72 -120
WIRE 8 -8 -72 -8
WIRE 168 -8 168 -88
WIRE 168 -8 72 -8
WIRE 248 -8 168 -8
WIRE 344 -8 344 -120
WIRE 344 -8 312 -8
WIRE 584 -8 536 -8
WIRE -536 8 -536 -24
WIRE -440 8 -536 8
WIRE 712 8 712 -72
WIRE 712 8 648 8
WIRE -536 40 -536 8
WIRE 1144 40 1144 -24
WIRE -1096 56 -1128 56
WIRE -984 56 -1032 56
WIRE -72 72 -72 -8
WIRE -24 72 -72 72
WIRE 168 72 168 -8
WIRE 168 72 56 72
WIRE 280 72 168 72
WIRE 376 72 360 72
WIRE 392 72 376 72
WIRE -664 88 -664 -72
WIRE -552 88 -664 88
WIRE -440 88 -440 8
WIRE -440 88 -456 88
WIRE -408 88 -440 88
WIRE -856 104 -888 104
WIRE -760 104 -792 104
WIRE 72 120 40 120
WIRE 376 120 376 72
WIRE 376 120 344 120
WIRE 296 136 296 120
WIRE 328 136 296 136
WIRE -8 152 -8 120
WIRE 40 152 -8 152
WIRE 1144 152 1144 120
WIRE -664 184 -664 88
WIRE -888 200 -888 104
WIRE -888 200 -920 200
WIRE -872 200 -888 200
WIRE -760 216 -760 104
WIRE -760 216 -808 216
WIRE -728 216 -760 216
WIRE -872 232 -904 232
WIRE -904 312 -904 232
WIRE -904 312 -936 312
WIRE -888 312 -904 312
WIRE -760 312 -760 216
WIRE -760 312 -808 312
WIRE 104 568 -88 568
WIRE 392 584 232 584
WIRE 408 584 392 584
WIRE 504 584 488 584
WIRE 584 584 504 584
WIRE 680 584 584 584
WIRE 72 600 72 488
WIRE 104 600 72 600
WIRE 584 600 584 584
WIRE -88 616 -88 568
WIRE 392 616 392 584
WIRE 104 632 72 632
WIRE 72 648 72 632
WIRE 504 680 504 664
WIRE 584 680 584 664
WIRE 584 680 504 680
WIRE 584 696 584 680
WIRE -88 712 -88 696
WIRE 392 728 392 696
WIRE 584 776 584 760
FLAG -376 -616 0
FLAG -504 -616 0
FLAG -504 -776 Vref
FLAG -936 -424 Vref
FLAG -984 -40 0
FLAG 392 -312 0
FLAG 392 72 0
FLAG 24 -392 Gate1
FLAG 40 152 Gate2
FLAG 152 -136 C1A
IOPIN 1264 112 BiDir
FLAG 152 -88 C1B
IOPIN 1264 160 BiDir
FLAG 888 -120 Gate1
FLAG 40 -616 0
FLAG 40 -776 _inh
FLAG -1128 -40 0
FLAG 376 -120 0
FLAG -744 -408 A
FLAG -728 216 B
FLAG -664 184 B
FLAG -664 -392 A
FLAG -1128 -184 11
IOPIN -16 64 BiDir
FLAG -984 -184 12
IOPIN 128 64 BiDir
FLAG -936 -312 12
IOPIN 176 -64 BiDir
FLAG -936 312 11
IOPIN 176 560 BiDir
FLAG -920 200 9
IOPIN 192 448 BiDir
FLAG 680 584 9
IOPIN 1792 832 BiDir
FLAG -1128 56 C1A
IOPIN -16 304 BiDir
FLAG -984 56 C1B
IOPIN 128 304 BiDir
FLAG -408 -328 12
IOPIN 704 -80 BiDir
FLAG -408 88 11
IOPIN 704 336 BiDir
FLAG 1144 -216 0
FLAG 1144 152 0
FLAG 888 -72 Gate2
FLAG 88 -360 0
FLAG 72 120 0
FLAG 328 -376 Gate2
FLAG 328 136 Gate1
FLAG 600 -264 0
FLAG 600 -56 0
FLAG 536 -8 C1A
IOPIN 1648 240 BiDir
FLAG 536 -200 C1B
IOPIN 1648 48 BiDir
FLAG 760 -184 0
FLAG 1144 -392 VCO_out
FLAG 1144 -24 _VCO_out
FLAG -88 712 0
FLAG 392 728 0
FLAG 584 776 0
FLAG 72 488 _VCO_out
FLAG 72 648 0
FLAG -376 -760 Test|_VCO_without_PHD
SYMBOL voltage -504 -744 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -376 -744 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 6 0 1500u 1u 1u 1700u)
SYMBOL res -1000 -168 R0
SYMATTR InstName R2
SYMATTR Value 200k
SYMBOL Opamps\\opamp -856 -344 M180
SYMATTR InstName U1
SYMBOL voltage 40 -744 R0
SYMATTR InstName V3
SYMATTR Value 5
SYMBOL res -1144 -168 R0
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL Opamps\\opamp -840 280 M180
SYMATTR InstName U16
SYMBOL res -664 -152 R270
SYMATTR InstName R5
SYMATTR Value 10
SYMBOL pmos -456 40 R90
SYMATTR InstName M3
SYMATTR Value QP
SYMBOL pmos -456 -24 M270
SYMATTR InstName M4
SYMATTR Value QP
SYMBOL diode -392 -184 M90
SYMATTR Value 1N914
SYMATTR InstName D1
SYMBOL diode -392 -56 R270
SYMATTR Value 1N914
SYMATTR InstName D2
SYMBOL res -664 -88 M90
SYMATTR InstName R6
SYMATTR Value 10
SYMBOL pmos -456 -280 M270
SYMATTR InstName M1
SYMATTR Value QP
SYMBOL pmos -456 -216 R90
SYMATTR InstName M2
SYMATTR Value QP
SYMBOL res -200 -136 M90
SYMATTR InstName R7
SYMATTR Value 1
SYMBOL res -792 -328 R90
SYMATTR InstName R8
SYMATTR Value 100k
SYMBOL res -904 296 M90
SYMATTR InstName R9
SYMATTR Value 100k
SYMBOL cap -1032 40 R90
SYMATTR InstName C2
SYMATTR Value 220p
SYMBOL bv 1144 -344 R0
SYMATTR Value V=V(Gate2)*V(Vref)
SYMATTR InstName B1
SYMBOL bv 1144 24 R0
SYMATTR Value V=V(Gate1)*V(Vref)
SYMATTR InstName B4
SYMBOL sw 376 -312 R90
SYMATTR InstName S1
SYMBOL sw 72 72 M270
SYMATTR InstName S2
SYMBOL sw 376 72 M270
SYMATTR InstName S3
SYMBOL sw 72 -312 R90
SYMATTR InstName S4
SYMBOL Digital\\schmitt 584 -136 M180
SYMATTR Value Vt=0.05 Vh=0
SYMATTR InstName A1
SYMBOL Digital\\schmitt 584 56 M180
SYMATTR Value Vt=0.05 Vh=0
SYMATTR InstName A2
SYMBOL Digital\\srflop 792 -24 M180
SYMATTR Value Td=10ns Trise=10ns Tfall=10ns
SYMATTR InstName A3
SYMBOL Digital\\phidet 136 584 R0
SYMATTR InstName A4
SYMBOL voltage -88 600 R0
SYMATTR InstName V4
SYMATTR Value PULSE(0 1 1u 100n 100n 5u 9.8u)
SYMBOL res 376 600 R0
SYMATTR InstName R3
SYMATTR Value 100k
SYMBOL res 504 568 R90
SYMATTR InstName R4
SYMATTR Value 1k
SYMBOL res 488 568 R0
SYMATTR InstName R10
SYMATTR Value 470
SYMBOL cap 568 600 R0
SYMATTR InstName C1
SYMATTR Value 1n
SYMBOL cap 568 696 R0
SYMATTR InstName C3
SYMATTR Value 10n
SYMBOL cap -792 88 R90
SYMATTR InstName C4
SYMATTR Value 10p
SYMBOL zener 72 -232 R90
SYMATTR InstName D3
SYMATTR Value 1N746
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL zener 312 -232 R90
SYMATTR InstName D4
SYMATTR Value 1N746
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL zener 72 -24 R90
SYMATTR InstName D5
SYMATTR Value 1N746
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL zener 312 -24 R90
SYMATTR InstName D6
SYMATTR Value 1N746
SYMATTR Description Diode
SYMATTR Type diode