* SPICE netlist
S1c N014 Ce1 PSW Vss Std
S2c N014 Ce2 NSW Vss Std
S1v Ce1 Vdd NSW Vss Std
S2v Ce2 Vdd PSW Vss Std
AsrFf N011 N012 Vss Vss Vss NSW PSW Vss SRFLOP Td=10ns Trise=10ns Tfall=10ns
A1 Th_ref Ce2 0 0 0 0 N011 0 SCHMITT Vt=0 Vh=.1
A2 Th_ref Ce1 0 0 0 0 N012 0 SCHMITT Vt=0 Vh=.1
Vref Th_ref Vss {Vdd*.6}
Eout Vcout Vss PSW Vss {Vdd}
bdem Demout Vss V=v(vcoin)*(1-u(v(inh)))
Rdem Demout Vss 1g
Rinh Inh Vss 1e6
Dz Vss Zener Zen
Rz Zener Vss 1g
G2 R2 N014 Vss Th_ref .9n
ADff1 Vdd 0 N002 Vss N001 N003 N006 0 DFLOP
ADff2 Vdd 0 N010 Vss N001 N013 N004 0 DFLOP
An1 0 0 N003 N004 0 N005 0 0 OR td=20n
An2 0 N006 0 N013 0 N009 0 0 OR td=20n
Axor1 N002 0 0 0 N010 0 N007 0 XOR
An3 N005 0 0 0 N009 N008 0 0 OR
And1 N006 0 0 0 N004 0 N001 0 AND td=20n tripdt=20n
SH1 CBout Vdd N005 Vss Std
SL1 Vss CBout N009 Vss Std
Spout1 Ppout Vdd N008 Vss Std
Rpout1 Vss Ppout 10k
Sca1 CAout Vdd N007 Vss Std
Rcpa1 Vss CAout 10k
Acmp1 Comp 0 0 0 0 0 N010 0 SCHMITT vt={Vdd/2} vh={(Vdd/2)-.5} td=20n tripdt=50n
Ain1 Sigin 0 0 0 0 0 N002 0 SCHMITT vt={Vx/2} vh=100m td=20n tripdt=50n
B1 R1 N014 I=-2*V(Vcoin)/{R1}
R1 VcoIn Vss 1g

* LTspice schematic (.asc)
Version 4
SHEET 1 2432 448
WIRE -624 -224 -832 -224
WIRE -832 -208 -832 -224
WIRE 880 -208 864 -208
WIRE 1056 -208 992 -208
WIRE 1216 -208 1200 -208
WIRE 864 -192 864 -208
WIRE 928 -192 864 -192
WIRE 992 -192 992 -208
WIRE 1200 -192 1104 -192
WIRE 1216 -192 1216 -208
WIRE 1216 -192 1200 -192
WIRE -976 -176 -1008 -176
WIRE -272 -176 -320 -176
WIRE -128 -176 -272 -176
WIRE 864 -176 864 -192
WIRE 928 -176 928 -192
WIRE 1056 -176 1056 -208
WIRE 1104 -176 1104 -192
WIRE 1200 -176 1200 -192
WIRE -1072 -160 -1120 -160
WIRE -976 -160 -976 -176
WIRE -912 -160 -976 -160
WIRE -560 -160 -736 -160
WIRE -128 -160 -128 -176
WIRE 688 -160 384 -160
WIRE 704 -160 688 -160
WIRE -560 -144 -608 -144
WIRE -464 -144 -496 -144
WIRE -176 -144 -464 -144
WIRE 384 -128 384 -160
WIRE 688 -128 688 -160
WIRE -944 -112 -1152 -112
WIRE -912 -112 -944 -112
WIRE -720 -112 -752 -112
WIRE -576 -112 -720 -112
WIRE -464 -112 -464 -144
WIRE -432 -112 -464 -112
WIRE 336 -112 304 -112
WIRE 752 -112 736 -112
WIRE -176 -96 -352 -96
WIRE 0 -96 -32 -96
WIRE -1152 -80 -1152 -112
WIRE -976 -80 -976 -160
WIRE -976 -80 -992 -80
WIRE -720 -80 -720 -112
WIRE -704 -80 -720 -80
WIRE -272 -80 -272 -176
WIRE 864 -80 864 -112
WIRE 928 -80 928 -96
WIRE 928 -80 864 -80
WIRE 992 -80 992 -112
WIRE 992 -80 928 -80
WIRE 1104 -80 1104 -96
WIRE 1104 -80 992 -80
WIRE 1200 -80 1200 -96
WIRE 1200 -80 1104 -80
WIRE -1056 -64 -1104 -64
WIRE -624 -64 -624 -224
WIRE -624 -64 -640 -64
WIRE -320 -64 -368 -64
WIRE 752 -64 736 -64
WIRE 864 -64 864 -80
WIRE 864 -64 752 -64
WIRE -432 -48 -464 -48
WIRE -944 -32 -944 -112
WIRE -928 -32 -944 -32
WIRE -32 -32 -32 -96
WIRE 0 -32 -32 -32
WIRE -1088 -16 -1104 -16
WIRE -976 -16 -992 -16
WIRE -704 -16 -720 -16
WIRE -352 -16 -352 -96
WIRE -320 -16 -352 -16
WIRE 80 -16 64 -16
WIRE 384 -16 384 -48
WIRE 480 -16 384 -16
WIRE 688 -16 688 -48
WIRE 688 -16 592 -16
WIRE -64 0 -64 -16
WIRE 0 0 -64 0
WIRE -1216 16 -1216 -16
WIRE -1152 16 -1152 0
WIRE -1152 16 -1216 16
WIRE -1088 16 -1088 -16
WIRE -832 16 -832 -64
WIRE -832 16 -1088 16
WIRE -352 16 -352 -16
WIRE -352 16 -832 16
WIRE -272 16 -272 0
WIRE -256 16 -272 16
WIRE 384 16 384 -16
WIRE 688 16 688 -16
WIRE 80 32 80 -16
WIRE 112 32 80 32
WIRE 240 32 208 32
WIRE -832 48 -832 16
WIRE -272 48 -272 16
WIRE 1216 64 1216 32
WIRE -1216 80 -1216 16
WIRE -1200 80 -1216 80
WIRE -1088 80 -1088 16
WIRE -1088 80 -1120 80
WIRE -128 80 -128 -80
WIRE -128 80 -144 80
WIRE 112 80 80 80
WIRE 240 80 224 80
WIRE 480 80 480 -16
WIRE 592 80 592 -16
WIRE 848 80 848 32
WIRE 960 80 960 32
WIRE 1040 80 1040 48
WIRE -944 96 -944 -32
WIRE -912 96 -944 96
WIRE -720 96 -720 -16
WIRE -720 96 -752 96
WIRE -608 96 -608 -144
WIRE -608 96 -720 96
WIRE 432 96 432 80
WIRE 640 96 640 80
WIRE 784 96 784 64
WIRE 896 96 896 64
WIRE 912 96 896 96
WIRE -576 112 -576 -112
WIRE -560 112 -576 112
WIRE -32 112 -32 -32
WIRE 0 112 -32 112
WIRE -128 128 -128 80
WIRE 80 128 80 80
WIRE 80 128 64 128
WIRE -976 144 -976 -16
WIRE -976 144 -1008 144
WIRE -912 144 -976 144
WIRE -560 144 -736 144
WIRE -464 144 -464 -48
WIRE -464 144 -496 144
WIRE -176 144 -464 144
WIRE -64 144 -64 128
WIRE 0 144 -64 144
WIRE -1072 160 -1104 160
WIRE -176 192 -208 192
WIRE 480 192 480 160
WIRE 592 192 592 160
WIRE 592 192 480 192
WIRE 848 192 848 160
WIRE 848 192 592 192
WIRE 960 192 960 160
WIRE 960 192 848 192
WIRE -832 208 -832 192
WIRE -624 208 -624 -64
WIRE -624 208 -832 208
WIRE -352 208 -352 16
WIRE -352 208 -384 208
WIRE -272 208 -272 128
WIRE -272 208 -352 208
WIRE -208 208 -208 192
WIRE -208 208 -272 208
WIRE -128 208 -208 208
WIRE 112 208 112 112
WIRE 112 208 -128 208
WIRE 336 208 336 -64
WIRE 336 208 112 208
WIRE 432 208 432 144
WIRE 432 208 336 208
WIRE 640 208 640 144
WIRE 640 208 432 208
WIRE 752 208 752 -64
WIRE 752 208 640 208
WIRE 784 208 784 176
WIRE 784 208 752 208
WIRE 912 208 912 144
WIRE 912 208 784 208
WIRE 1040 208 1040 128
WIRE 1040 208 912 208
WIRE 1088 208 1088 144
WIRE 1088 208 1040 208
WIRE 1216 208 1216 144
WIRE 1216 208 1088 208
FLAG 384 16 Ce1
IOPIN 592 128 BiDir
FLAG 688 16 Ce2
IOPIN 896 128 BiDir
FLAG 704 -160 Vdd
IOPIN 912 -48 In
FLAG 848 32 R1
IOPIN 1056 144 BiDir
FLAG 960 32 R2
IOPIN 1168 144 BiDir
FLAG 240 32 PSW
IOPIN 448 144 Out
FLAG 240 80 NSW
IOPIN 448 192 Out
FLAG 432 80 PSW
IOPIN 640 192 In
FLAG 640 80 NSW
IOPIN 848 192 In
FLAG 752 -112 PSW
IOPIN 960 0 In
FLAG 304 -112 NSW
IOPIN 512 0 In
FLAG -64 -16 Ce2
IOPIN 144 96 In
FLAG -64 128 Ce1
IOPIN 144 240 In
FLAG 1216 32 Th_ref
IOPIN 1424 144 Out
FLAG 0 -96 Th_ref
IOPIN 208 16 In
FLAG 896 64 Th_ref
IOPIN 1104 176 In
FLAG 784 64 VcoIn
IOPIN 992 176 In
FLAG 1088 64 Vcout
IOPIN 1296 176 Out
FLAG 1040 48 PSW
IOPIN 1248 160 In
FLAG 1200 -208 Demout
IOPIN 1408 -96 Out
FLAG 1056 -176 Inh
IOPIN 1264 -64 In
FLAG 880 -208 Zener
IOPIN 1088 -96 Out
FLAG -1104 160 Comp
IOPIN -896 272 In
FLAG -256 16 Ppout
IOPIN -48 128 Out
FLAG -320 -176 Vdd
IOPIN -112 -64 In
FLAG -144 80 CBout
IOPIN 64 192 Out
FLAG -1216 -16 CAout
IOPIN -1008 96 Out
FLAG -928 -32 Vdd
IOPIN -720 80 In
FLAG -1120 -160 Sigin
IOPIN -912 -48 In
FLAG -384 208 Vss
SYMBOL sw 480 176 M180
SYMATTR Value Std
SYMATTR InstName S1c
SYMBOL sw 592 176 R180
SYMATTR Value Std
SYMATTR InstName S2c
SYMBOL sw 384 -32 M180
SYMATTR InstName S1v
SYMATTR Value Std
SYMBOL sw 688 -32 R180
SYMATTR InstName S2v
SYMATTR Value Std
SYMBOL Digital\\srflop 160 -16 R0
SYMATTR Value Td=10ns Trise=10ns Tfall=10ns
SYMATTR InstName AsrFf
SYMBOL Digital\\diffschmtbuf 0 -80 R0
SYMATTR Value Vt=0 Vh=.1
SYMATTR InstName A1
SYMBOL Digital\\diffschmtbuf 0 64 R0
SYMATTR Value Vt=0 Vh=.1
SYMATTR InstName A2
SYMBOL voltage 1216 48 R0
SYMATTR InstName Vref
SYMATTR Value {Vdd*.6}
SYMBOL e 1088 48 R0
SYMATTR InstName Eout
SYMATTR Value {Vdd}
SYMBOL bv 1200 -192 R0
SYMATTR InstName bdem
SYMATTR Value V=v(vcoin)*(1-u(v(inh)))
SYMBOL res 1088 -192 R0
SYMATTR InstName Rdem
SYMATTR Value 1g
SYMBOL res 976 -208 R0
SYMATTR InstName Rinh
SYMATTR Value 1e6
SYMBOL zener 880 -112 R180
SYMATTR InstName Dz
SYMATTR Value Zen
SYMBOL res 912 -192 R0
SYMATTR InstName Rz
SYMATTR Value 1g
SYMBOL g 960 176 M180
SYMATTR InstName G2
SYMATTR Value .9n
SYMBOL Digital\\dflop -832 -64 M180
SYMATTR InstName ADff1
SYMBOL Digital\\dflop -832 48 R0
SYMATTR InstName ADff2
SYMBOL Digital\\or -528 -224 R0
SYMATTR InstName An1
SYMATTR Value td=20n
SYMBOL Digital\\or -528 64 R0
SYMATTR InstName An2
SYMATTR Value td=20n
SYMBOL Digital\\xor -1040 -112 M0
SYMATTR InstName Axor1
SYMBOL Digital\\or -400 -144 R0
SYMATTR InstName An3
SYMBOL Digital\\and -672 -112 R0
SYMATTR InstName And1
SYMATTR Value td=20n tripdt=20n
SYMBOL sw -128 -64 M180
SYMATTR InstName SH1
SYMATTR Value Std
SYMBOL sw -128 224 M180
SYMATTR InstName SL1
SYMATTR Value Std
SYMBOL sw -272 16 M180
SYMATTR InstName Spout1
SYMATTR Value Std
SYMBOL res -256 144 R180
SYMATTR InstName Rpout1
SYMATTR Value 10k
SYMBOL sw -1152 16 R180
SYMATTR InstName Sca1
SYMATTR Value Std
SYMBOL res -1104 64 R90
SYMATTR InstName Rcpa1
SYMATTR Value 10k
SYMBOL Digital\\schmitt -1072 96 R0
SYMATTR Value vt={Vdd/2} vh={(Vdd/2)-.5} td=20n tripdt=50n
SYMATTR InstName Acmp1
SYMBOL Digital\\schmitt -1072 -224 R0
SYMATTR Value vt={Vx/2} vh=100m td=20n tripdt=50n
SYMATTR InstName Ain1
SYMBOL bi 848 80 R0
SYMATTR InstName B1
SYMATTR Value I=-2*V(Vcoin)/{R1}
SYMBOL res 768 80 R0
SYMATTR InstName R1
SYMATTR Value 1g