* SPICE netlist
S1 6 N004 7 0 SW
S2 0 7 7 0 SW
S3 7 N004 6 0 SW
S4 0 6 6 0 SW
C1 7 6 10p
B1 0 N004 I=I(R1)*36
B2 4 0 V=ddt(V(6,7))>0 ? 5 : 0 Tripdt=0.007u Tripdv=0.007m
R3 4 0 1G
R_by-pass-1 N003 0 2.7k
G1 0 N003 9 N003 TABLE(0.05, 0.001m) (0.31, 0.005m) (0.5, 0.011m) (2.29V, 0.091m) (3V, 0.12m)
R_by-pass-2 N005 0 2.7k
G2 0 N005 16 N005 TABLE(0.05, 0.001m) (0.31, 0.005m) (0.5, 0.011m) (2.29V, 0.091m) (3V, 0.12m)
B3 0 N004 I=I(R2)*90
A1 14 3 0 0 0 0 13 0 PHASEDET Vhigh={Vhigh1} Td={td1} ref={ref1}
R_by-pass-3 10 0 2.7k
G3 0 10 9 10 1
A2 0 14 0 3 0 0 2 0 XOR Vhigh={Vhigh1}
A3 N001 N002 0 0 0 15 0 0 SRFLOP Vhigh={Vhigh2} ref={ref2}
A4 14 0 0 0 0 N001 0 0 BUF Vhigh={Vhigh2} ref={ref2} Trise={Trise2} Tfall={Tfall2}
A5 3 0 0 0 0 N002 0 0 BUF Vhigh={Vhigh2} ref={ref2} Td={Td2}
R1 N003 11 1n
R2 N005 12 1n
.ic V(6)=0.5 V(Q)=0 V(_Q)=5
.params: Vhigh1=5 ref1=2.5 Td1=50n Vhigh2=5 ref2=0.5 Td2=50n Trise2=5n Tfall2=5n

* LTspice schematic (.asc)
Version 4
SHEET 1 1280 912
WIRE 352 -360 336 -360
WIRE 432 -344 416 -344
WIRE 432 -328 432 -344
WIRE 448 -328 432 -328
WIRE 352 -296 336 -296
WIRE 448 -280 416 -280
WIRE 624 -280 560 -280
WIRE -416 -232 -448 -232
WIRE -496 -216 -640 -216
WIRE -608 -168 -640 -168
WIRE -496 -168 -528 -168
WIRE 432 -168 416 -168
WIRE 624 -168 496 -168
WIRE -464 -136 -496 -168
WIRE -416 -136 -416 -232
WIRE -416 -136 -464 -136
WIRE 432 -136 400 -136
WIRE -144 -72 -160 -72
WIRE -48 -72 -64 -72
WIRE -32 -72 -48 -72
WIRE 64 -72 48 -72
WIRE 272 -56 272 -456
WIRE 464 -56 272 -56
WIRE 640 -40 592 -40
WIRE 240 -24 240 -456
WIRE 464 -24 240 -24
WIRE -416 8 -448 8
WIRE -48 8 -48 -72
WIRE -48 8 -192 8
WIRE 96 8 -48 8
WIRE -496 24 -640 24
WIRE -192 24 -192 8
WIRE 96 24 96 8
WIRE -608 72 -640 72
WIRE -496 72 -528 72
WIRE -464 104 -496 72
WIRE -416 104 -416 8
WIRE -416 104 -464 104
WIRE -192 120 -192 104
WIRE -80 120 -192 120
WIRE 96 120 96 104
WIRE 96 120 -16 120
WIRE -112 136 -192 120
WIRE 16 136 96 120
WIRE -192 152 -192 120
WIRE 96 152 96 120
WIRE 496 184 448 184
WIRE 624 184 496 184
WIRE 448 200 448 184
WIRE -416 232 -448 232
WIRE -240 232 -240 216
WIRE -192 232 -240 232
WIRE -48 232 -192 232
WIRE 96 232 -48 232
WIRE 144 232 144 216
WIRE 144 232 96 232
WIRE -496 248 -560 248
WIRE -48 248 -48 232
WIRE 496 280 496 264
WIRE -496 296 -640 296
WIRE -464 328 -496 296
WIRE -416 328 -416 232
WIRE -416 328 -464 328
WIRE -112 456 -112 136
WIRE 16 456 16 136
FLAG -48 248 0
FLAG -112 456 6
IOPIN 32 272 BiDir
FLAG 16 456 7
IOPIN 160 272 BiDir
FLAG 144 88 0
FLAG -240 88 0
FLAG -240 40 7
FLAG 144 168 7
FLAG -240 168 6
FLAG 144 40 6
FLAG -160 -72 0
FLAG 624 184 4
IOPIN 768 0 Out
FLAG 448 280 0
FLAG 496 280 0
FLAG -416 -56 0
FLAG -448 -152 0
FLAG -640 -168 11
IOPIN -496 -352 Out
FLAG -416 184 0
FLAG -448 88 0
FLAG -640 24 16
IOPIN -496 -160 In
FLAG -640 72 12
IOPIN -496 -112 Out
FLAG 64 -72 0
FLAG 272 -456 14
IOPIN 416 -640 In
FLAG 240 -456 3
IOPIN 384 -640 In
FLAG -640 -216 9
IOPIN -496 -400 In
FLAG -416 408 0
FLAG -448 312 0
FLAG -560 248 9
FLAG -640 296 10
IOPIN -496 112 Out
FLAG 416 -168 14
FLAG 400 -136 3
FLAG 624 -168 2
IOPIN 768 -352 Out
FLAG 336 -360 14
FLAG 336 -296 3
FLAG 624 -280 15
IOPIN 768 -464 Out
FLAG 640 -40 13
IOPIN 784 -224 Out
SYMBOL sw -192 120 M180
SYMATTR InstName S1
SYMBOL sw 96 248 R180
SYMATTR InstName S2
SYMBOL sw 96 120 R180
SYMATTR InstName S3
SYMBOL sw -192 248 M180
SYMATTR InstName S4
SYMBOL cap -16 104 R90
SYMATTR InstName C1
SYMATTR Value 10p
SYMBOL bi2 -64 -72 M270
SYMATTR Value I=I(R1)*36
SYMATTR InstName B1
SYMBOL bv 448 184 M0
SYMATTR Value V=ddt(V(6,7))>0 ? 5 : 0
SYMATTR InstName B2
SYMATTR Value2 Tripdt=0.007u Tripdv=0.007m
SYMBOL res 480 168 R0
SYMATTR InstName R3
SYMATTR Value 1G
SYMBOL res -432 -152 R0
SYMATTR InstName R_by-pass-1
SYMATTR Value 2.7k
SYMBOL g -448 -248 R0
SYMATTR Value TABLE(0.05, 0.001m) (0.31, 0.005m) (0.5, 0.011m) (2.29V, 0.091m) (3V, 0.12m)
SYMATTR InstName G1
SYMBOL res -432 88 R0
SYMATTR InstName R_by-pass-2
SYMATTR Value 2.7k
SYMBOL g -448 -8 R0
SYMATTR Value TABLE(0.05, 0.001m) (0.31, 0.005m) (0.5, 0.011m) (2.29V, 0.091m) (3V, 0.12m)
SYMATTR InstName G2
SYMBOL bi2 -32 -72 M90
SYMATTR Value I=I(R2)*90
SYMATTR InstName B3
SYMBOL Digital\\phidet 496 -40 R0
SYMATTR Value Vhigh={Vhigh1}
SYMATTR InstName A1
SYMATTR Value2 Td={td1} ref={ref1}
SYMBOL res -432 312 R0
SYMATTR InstName R_by-pass-3
SYMATTR Value 2.7k
SYMBOL g -448 216 R0
SYMATTR Value 1
SYMATTR InstName G3
SYMBOL Digital\\xor 480 -216 R0
SYMATTR Value Vhigh={Vhigh1}
SYMATTR InstName A2
SYMBOL Digital\\srflop 496 -376 R0
SYMATTR Value Vhigh={Vhigh2} ref={ref2}
SYMATTR InstName A3
SYMBOL Digital\\buf 352 -424 R0
SYMATTR Value Vhigh={Vhigh2} ref={ref2}
SYMATTR InstName A4
SYMATTR Value2 Trise={Trise2} Tfall={Tfall2}
SYMBOL Digital\\buf 352 -360 R0
SYMATTR Value Vhigh={Vhigh2} ref={ref2}
SYMATTR InstName A5
SYMATTR SpiceLine Td={Td2}
SYMBOL res -512 -184 R90
SYMATTR InstName R1
SYMATTR Value 1n
SYMBOL res -512 56 R90
SYMATTR InstName R2
SYMATTR Value 1n