* SPICE netlist
ADff1 Vdd Vss cc Vss N001 N003 N006 Vss DFLOP
ADff2 Vdd Vss N010 Vss N001 N011 N004 Vss DFLOP
An1 Vss Vss N003 N004 Vss N005 Vss Vss OR td=20n
An2 Vss Vss N006 N011 Vss N007 Vss Vss OR td=20n
Axor cc Vss Vss Vss N010 Vss N009 Vss XOR
An3 Vss Vss N005 N007 Vss N008 Vss Vss OR
And N006 N004 Vss Vss Vss Vss N001 Vss AND td=20n tripdt=20n
SH CBout Vdd N005 Vss Std
SL Vss CBout N007 Vss Std
Spcpo Ppout Vdd N008 Vss Std
Rpout Vss Ppout 10k
Sca CAout Vdd N009 Vss Std
Rcpa CAout Vss 10k
Acmp Comp Vss Vss Vss Vss Vss N010 Vss SCHMITT vt={Vdd/2} vh={(Vdd/2)-.5} td=20n tripdt=50n
Aca Sigin Vss Vss Vss Vss N002 ca Vss SCHMITT vt=0 vh=150m td=20n tripdt=50n
Acc Sigin Vss Vss Vss Vss Vss cc Vss SCHMITT vt={Vdd/2} vh={(Vdd/2)-.5} td=20n tripdt=50n
Rbias N002 Sigin 1e7
Rdumy ca Vss 1g
Rin Vcoin Vss {Rin}
Bm Mix Vss V=(if(v(vcoin,vss)<v(vdd,vss),S1*v(vcoin,vss),S2*(v(vcoin,vss)-v(vdd,vss))+v(vdd,vss))*Kb+Vfree)
Rm Mix Vss 1
Er1 Vss Ir2 Vdd Ir2 2e8
Er2 Vss Ir1 Mix Ir1 2e8
Badj Adj Vss V=TABLE ((abs(V(vdd)*V(mix)/I(Er2)*I(Er1))),.5,1.43, 1,1.6, 10,1.04, 50,.67, 100,.84, 101,1, 102,1, 1000,1)
Radj Adj Vss 1g
Bim Ce1 Vss I=((M1*I(Er1)*V(adj)+M2*I(Er2))*Kc*V(sqr))
vcext Ce2 Vss 0
Cstray Ce1 Ce2 5p
Rcext Ce1 Ce2 1g
Bsqr Pul Vss V=(1.2e6*V(sqr)-1e7*V(Ce1))
Rint Sqr Pul .1T
Cint Sqr Vss 10f
Dlimh Sqr 13 Dio
Vlimh 13 Vss {Vdd}
Dliml 14 Sqr Dio
Vliml Vss 14 {Vdd}
BOut Vcout Vss V=table ((1-u(v(inh)))*(v(sqr)),.1,.1, v(vdd),v(vdd))
Rinh Inh Vss 1e6
Dz Vss Zener Zen
Rz Zener Vss 1g
bdem Demout Vss V=table (2e8*v(vcoin,demout)*(1-u(v(inh))),-20,-20, 20,20)
Rdem Demout Vss 1g
+Isr=1.8n Nr=2 Bv=7 Ibv=27.721m Nbv=1.178 Ibvl=1.165m Nbvl=21.894 Tbv1=176.47u)

* LTspice schematic (.asc)
Version 4
SHEET 1 1376 1040
WIRE -688 -120 -688 -152
WIRE -624 -216 -624 -264
WIRE -624 -120 -688 -120
WIRE -624 -120 -624 -136
WIRE -624 -104 -624 -120
WIRE -624 -8 -640 -8
WIRE -624 -8 -624 -24
WIRE -576 -296 -576 -312
WIRE -560 -152 -576 -152
WIRE -560 -8 -624 -8
WIRE -560 -8 -560 -152
WIRE -528 -136 -528 -168
WIRE -528 -104 -528 -136
WIRE -512 -200 -576 -200
WIRE -512 -104 -528 -104
WIRE -480 -136 -528 -136
WIRE -480 -136 -480 -152
WIRE -464 -456 -496 -456
WIRE -464 -328 -464 -456
WIRE -464 -248 -464 -328
WIRE -448 -248 -464 -248
WIRE -432 -456 -464 -456
WIRE -432 -408 -432 -424
WIRE -432 -392 -432 -408
WIRE -432 -328 -464 -328
WIRE -432 -296 -480 -296
WIRE -432 -200 -448 -200
WIRE -432 -184 -448 -184
WIRE -432 -184 -432 -200
WIRE -432 -168 -448 -168
WIRE -432 -168 -432 -184
WIRE -432 -136 -480 -136
WIRE -432 -136 -432 -168
WIRE -416 -392 -432 -392
WIRE -416 24 -448 24
WIRE -416 72 -432 72
WIRE -416 72 -416 56
WIRE -384 408 -384 392
WIRE -384 424 -384 408
WIRE -384 520 -384 488
WIRE -368 -408 -432 -408
WIRE -368 -408 -368 -440
WIRE -368 392 -384 392
WIRE -352 -312 -368 -312
WIRE -352 -248 -368 -248
WIRE -352 -248 -352 -312
WIRE -352 72 -416 72
WIRE -352 72 -352 40
WIRE -336 -472 -368 -472
WIRE -320 -472 -336 -472
WIRE -320 -312 -320 -472
WIRE -320 -216 -448 -216
WIRE -320 -216 -320 -312
WIRE -320 -152 -448 -152
WIRE -320 8 -352 8
WIRE -320 8 -320 -152
WIRE -320 168 -320 152
WIRE -320 280 -320 248
WIRE -320 408 -384 408
WIRE -320 424 -320 408
WIRE -320 520 -384 520
WIRE -320 520 -320 504
WIRE -288 -184 -304 -184
WIRE -288 -184 -288 -264
WIRE -288 -40 -288 -184
WIRE -288 152 -320 152
WIRE -256 -360 -256 -376
WIRE -256 -312 -320 -312
WIRE -256 -264 -288 -264
WIRE -256 -40 -288 -40
WIRE -256 8 -320 8
WIRE -256 72 -272 72
WIRE -256 72 -256 56
WIRE -240 -376 -256 -376
WIRE -240 152 -288 152
WIRE -240 184 -240 152
WIRE -240 280 -320 280
WIRE -240 280 -240 264
WIRE -224 424 -224 408
WIRE -224 520 -320 520
WIRE -224 520 -224 504
WIRE -176 -360 -176 -376
WIRE -176 -168 -224 -168
WIRE -176 -168 -176 -216
WIRE -176 -88 -176 -168
WIRE -176 72 -176 56
WIRE -176 408 -224 408
WIRE -160 120 -192 120
WIRE -160 168 -160 120
WIRE -160 184 -160 168
WIRE -160 280 -240 280
WIRE -160 280 -160 264
WIRE -144 408 -176 408
WIRE -144 424 -144 408
WIRE -144 520 -224 520
WIRE -144 520 -144 504
WIRE -128 120 -160 120
WIRE -128 168 -160 168
WIRE -64 -264 -96 -264
WIRE -64 -184 -64 -264
WIRE -64 -40 -96 -40
WIRE -64 -40 -64 -168
WIRE -64 440 -64 408
WIRE -48 -136 -48 -152
WIRE -48 -120 -48 -136
WIRE -48 -104 -48 -120
WIRE -48 -72 -48 -104
WIRE -48 440 -64 440
WIRE -32 -184 -64 -184
WIRE -32 -168 -64 -168
WIRE -32 -152 -48 -152
WIRE -32 -136 -48 -136
WIRE -32 -120 -48 -120
WIRE -32 -72 -48 -72
WIRE -32 120 -48 120
WIRE -32 168 -64 168
WIRE -32 168 -32 120
WIRE -32 184 -32 168
WIRE -32 280 -160 280
WIRE -32 280 -32 264
WIRE -16 -104 -48 -104
WIRE -16 -104 -16 -120
WIRE 0 120 -32 120
WIRE 0 408 -64 408
WIRE 0 424 0 408
WIRE 0 520 -144 520
WIRE 0 520 0 504
WIRE 16 408 0 408
WIRE 32 -104 -16 -104
WIRE 32 -104 32 -136
WIRE 64 -40 -64 -40
WIRE 64 -40 64 -296
WIRE 64 280 -32 280
WIRE 96 440 96 408
WIRE 112 -264 -64 -264
WIRE 112 -8 112 -264
WIRE 112 440 96 440
WIRE 144 -40 144 -56
WIRE 144 -24 144 -40
WIRE 144 24 144 -24
WIRE 144 40 128 40
WIRE 144 40 144 24
WIRE 144 168 96 168
WIRE 144 184 144 168
WIRE 144 280 64 280
WIRE 144 280 144 264
WIRE 160 -344 160 -360
WIRE 160 -328 160 -344
WIRE 160 -280 160 -328
WIRE 160 -264 160 -280
WIRE 160 -40 144 -40
WIRE 160 -24 144 -24
WIRE 160 -8 112 -8
WIRE 160 8 -80 8
WIRE 160 24 144 24
WIRE 160 408 96 408
WIRE 160 424 160 408
WIRE 160 520 0 520
WIRE 160 520 160 504
WIRE 176 -344 160 -344
WIRE 176 -328 160 -328
WIRE 176 -312 -80 -312
WIRE 176 -296 64 -296
WIRE 176 -280 160 -280
WIRE 176 40 144 40
WIRE 176 40 176 24
WIRE 176 168 144 168
WIRE 176 408 160 408
WIRE 192 -264 160 -264
WIRE 192 -264 192 -280
WIRE 208 -264 192 -264
WIRE 208 520 160 520
WIRE 224 -56 144 -56
WIRE 224 -24 224 -56
WIRE 240 -360 160 -360
WIRE 240 -328 240 -360
WIRE 256 440 256 408
WIRE 272 -376 -176 -376
WIRE 272 -168 32 -168
WIRE 272 -168 272 -376
WIRE 272 72 -176 72
WIRE 272 72 272 -168
WIRE 272 168 256 168
WIRE 304 168 272 168
WIRE 304 168 304 136
WIRE 304 200 304 168
WIRE 304 280 144 280
WIRE 304 280 304 264
WIRE 320 -296 240 -296
WIRE 320 -232 320 -296
WIRE 320 8 224 8
WIRE 320 8 320 -216
WIRE 320 408 256 408
WIRE 320 424 320 408
WIRE 320 520 208 520
WIRE 320 520 320 504
WIRE 352 -264 352 -280
WIRE 352 -248 352 -264
WIRE 352 -200 352 -248
WIRE 352 -184 352 -200
WIRE 352 168 304 168
WIRE 368 -264 352 -264
WIRE 368 -248 352 -248
WIRE 368 -232 320 -232
WIRE 368 -216 320 -216
WIRE 368 -200 352 -200
WIRE 384 -184 352 -184
WIRE 384 -184 384 -200
WIRE 400 -184 384 -184
WIRE 400 -24 368 -24
WIRE 400 -24 400 -168
WIRE 432 -280 352 -280
WIRE 432 -248 432 -280
WIRE 432 168 416 168
WIRE 448 168 432 168
WIRE 448 184 448 168
WIRE 448 280 304 280
WIRE 448 280 448 264
WIRE 464 136 304 136
WIRE 464 168 464 136
WIRE 464 408 448 408
WIRE 464 424 464 408
WIRE 464 520 320 520
WIRE 464 520 464 504
WIRE 480 -216 432 -216
WIRE 480 -168 400 -168
WIRE 496 168 464 168
WIRE 528 -232 528 -328
WIRE 528 -136 512 -136
WIRE 528 -136 528 -152
WIRE 528 -120 528 -136
WIRE 528 -24 400 -24
WIRE 528 -24 528 -40
WIRE 560 424 560 408
WIRE 560 520 464 520
WIRE 560 520 560 504
WIRE 576 168 560 168
WIRE 592 72 576 72
WIRE 592 72 592 56
WIRE 592 168 576 168
WIRE 592 184 592 168
WIRE 592 280 448 280
WIRE 592 280 592 264
WIRE 624 -296 320 -296
WIRE 624 -248 608 -248
WIRE 624 8 320 8
WIRE 624 56 592 56
WIRE 672 -328 528 -328
WIRE 672 -328 672 -408
WIRE 672 -312 672 -328
WIRE 672 -88 656 -88
WIRE 672 -88 672 -232
WIRE 672 -8 672 -88
WIRE 672 72 592 72
WIRE 672 120 656 120
WIRE 672 184 672 120
WIRE 672 280 592 280
WIRE 672 280 672 264
WIRE 672 408 560 408
WIRE 672 424 672 408
WIRE 672 520 560 520
WIRE 672 520 672 504
WIRE 688 392 672 392
WIRE 688 408 672 408
WIRE 688 408 688 392
FLAG -304 -184 Vdd
IOPIN 176 -592 In
FLAG -448 24 Comp
IOPIN 32 -384 In
FLAG 512 -136 Ppout
IOPIN 992 -544 Out
FLAG 672 -408 Vdd
IOPIN 1152 -816 In
FLAG 656 -88 CBout
IOPIN 1136 -496 Out
FLAG -688 -152 CAout
IOPIN -208 -560 Out
FLAG -624 -264 Vdd
IOPIN -144 -672 In
FLAG -496 -456 Sigin
IOPIN -16 -864 In
FLAG -368 -344 ca
FLAG -336 -472 cc
FLAG -432 72 Vss
FLAG -272 72 Vss
FLAG 128 40 Vss
FLAG 368 -24 Vss
FLAG 576 72 Vss
FLAG -640 -8 Vss
FLAG -512 -104 Vss
FLAG -224 -168 Vss
FLAG -240 -376 Vss
FLAG -416 -392 Vss
FLAG -480 -296 Vss
FLAG -32 -72 Vss
FLAG 208 -264 Vss
FLAG 400 -184 Vss
FLAG 608 -248 Vss
FLAG -576 -296 Vss
FLAG -576 -392 ca
FLAG 208 520 Vss
FLAG 448 408 Vcoin
IOPIN 928 0 In
FLAG -176 408 Mix
FLAG 96 440 Ir2
FLAG 112 488 Vdd
FLAG 176 408 r2
IOPIN 656 0 In
FLAG -64 440 Ir1
FLAG -48 488 Mix
FLAG 16 408 r1
IOPIN 496 0 In
FLAG 64 280 Vss
FLAG -288 152 Adj
FLAG 0 120 Ce1
IOPIN 480 -288 In
FLAG -192 120 Ce2
IOPIN 288 -288 In
FLAG 96 168 Pul
FLAG 272 168 Sqr
FLAG 432 168 13
FLAG 576 168 14
FLAG 656 120 Vcout
IOPIN 1136 -288 Out
FLAG 256 440 Inh
IOPIN 736 32 In
FLAG -368 392 Zener
IOPIN 112 -16 Out
FLAG 672 392 Demout
IOPIN 1152 -16 Out
SYMBOL Digital\\dflop -176 -216 M180
SYMATTR InstName ADff1
SYMBOL Digital\\dflop -176 -88 R0
SYMATTR InstName ADff2
SYMBOL Digital\\or 208 -376 R0
SYMATTR InstName An1
SYMATTR Value td=20n
SYMBOL Digital\\or 192 -72 R0
SYMATTR InstName An2
SYMATTR Value td=20n
SYMBOL Digital\\xor -496 -248 M0
SYMATTR InstName Axor
SYMBOL Digital\\or 400 -296 R0
SYMATTR InstName An3
SYMBOL Digital\\and 0 -216 R0
SYMATTR InstName And
SYMATTR Value td=20n tripdt=20n
SYMBOL sw 672 -216 M180
SYMATTR InstName SH
SYMATTR Value Std
SYMBOL sw 672 88 M180
SYMATTR InstName SL
SYMATTR Value Std
SYMBOL sw 528 -136 M180
SYMATTR InstName pcpo
SYMATTR Value Std
SYMBOL res 544 -24 R180
SYMATTR InstName Rpout
SYMATTR Value 10k
SYMBOL sw -624 -120 R180
SYMATTR InstName Sca
SYMATTR Value Std
SYMBOL res -640 -120 R0
SYMATTR InstName Rcpa
SYMATTR Value 10k
SYMBOL Digital\\schmitt -416 -40 R0
SYMATTR Value vt={Vdd/2} vh={(Vdd/2)-.5} td=20n tripdt=50n
SYMATTR InstName Acmp
SYMBOL Digital\\schmitt -432 -392 R0
SYMATTR Value vt=0 vh=150m td=20n tripdt=50n
SYMATTR InstName Aca
SYMBOL Digital\\schmitt -432 -520 R0
SYMATTR Value vt={Vdd/2} vh={(Vdd/2)-.5} td=20n tripdt=50n
SYMATTR InstName Acc
SYMBOL res -352 -264 R90
SYMATTR InstName Rbias
SYMATTR Value 1e7
SYMBOL res -592 -408 R0
SYMATTR InstName Rdumy
SYMATTR Value 1g
SYMBOL res 448 408 R0
SYMATTR InstName Rin
SYMATTR Value {Rin}
SYMBOL bv -144 408 R0
SYMATTR InstName Bm
SYMATTR Value V=(if(v(vcoin,vss)<v(vdd,vss),S1*v(vcoin,vss),S2*(v(vcoin,vss)-v(vdd,vss))+v(vdd,vss))*Kb+Vfree)
SYMBOL res -240 408 R0
SYMATTR InstName Rm
SYMATTR Value 1
SYMBOL e 160 520 M180
SYMATTR InstName Er1
SYMATTR Value 2e8
SYMBOL e 0 520 M180
SYMATTR InstName Er2
SYMATTR Value 2e8
SYMBOL bv -240 168 R0
SYMATTR InstName Badj
SYMATTR Value V=TABLE ((abs(V(vdd)*V(mix)/I(Er2)*I(Er1))),.5,1.43, 1,1.6, 10,1.04, 50,.67, 100,.84, 101,1, 102,1, 1000,1)
SYMBOL res -336 152 R0
SYMATTR InstName Radj
SYMATTR Value 1g
SYMBOL bi -32 184 R0
SYMATTR InstName Bim
SYMATTR Value I=((M1*I(Er1)*V(adj)+M2*I(Er2))*Kc*V(sqr))
SYMBOL voltage -160 168 R0
SYMATTR InstName vcext
SYMATTR Value 0
SYMBOL cap -64 152 R90
SYMATTR InstName Cstray
SYMATTR Value 5p
SYMBOL res -32 104 R90
SYMATTR InstName Rcext
SYMATTR Value 1g
SYMBOL bv 144 168 R0
SYMATTR InstName Bsqr
SYMATTR Value V=(1.2e6*V(sqr)-1e7*V(Ce1))
SYMBOL res 272 152 R90
SYMATTR InstName Rint
SYMATTR Value .1T
SYMBOL cap 288 200 R0
SYMATTR InstName Cint
SYMATTR Value 10f
SYMBOL diode 352 184 R270
SYMATTR InstName Dlimh
SYMATTR Value Dio
SYMBOL voltage 448 168 R0
SYMATTR InstName Vlimh
SYMATTR Value {Vdd}
SYMBOL diode 560 152 R90
SYMATTR InstName Dliml
SYMATTR Value Dio
SYMBOL voltage 592 280 R180
SYMATTR InstName Vliml
SYMATTR Value {Vdd}
SYMBOL bv 672 168 R0
SYMATTR InstName BOut
SYMATTR Value V=table ((1-u(v(inh)))*(v(sqr)),.1,.1, v(vdd),v(vdd))
SYMBOL res 304 408 R0
SYMATTR InstName Rinh
SYMATTR Value 1e6
SYMBOL zener -368 488 R180
SYMATTR InstName Dz
SYMATTR Value Zen
SYMBOL res -336 408 R0
SYMATTR InstName Rz
SYMATTR Value 1g
SYMBOL bv 672 408 R0
SYMATTR InstName bdem
SYMATTR Value V=table (2e8*v(vcoin,demout)*(1-u(v(inh))),-20,-20, 20,20)
SYMBOL res 544 408 R0
SYMATTR InstName Rdem
SYMATTR Value 1g