* SPICE netlist
S1 BP N006 P2 0 SW1
S2 N007 sum2 P1 0 SW1
C1 N006 N007 {CSC1}
C2 sum2 LP 32p
S3 0 N006 P1 0 SW1
S4 N007 0 P2 0 SW1
S5 sum2 LP P0 0 SW1
V4 P0 0 PULSE(1 0 0 1n 1n 1k 2k)
S7 N010 N011 P1 0 SW1
S8 N012 sum1 P1 0 SW1
C4 N011 N012 {CSC1}
C5 sum1 BP 32p
S9 0 N011 P2 0 SW1
S10 N012 0 P2 0 SW1
S11 sum1 BP P0 0 SW1
S12 NAPHP N004 P2 0 SW1
S13 N005 sum1 P1 0 SW1
C6 N004 N005 {CSC1}
S14 0 N004 P1 0 SW1
S15 N005 0 P2 0 SW1
S16 S1 N001 P1 0 SW1
S17 N002 sum1 P1 0 SW1
C7 N001 N002 {CSC1}
S18 0 N001 P2 0 SW1
S19 N002 0 P2 0 SW1
R3 BP 0 1
R4 LP 0 1
R5 NAPHP 0 1
S6 COM N010 _SA 0 SW1
S20 LP N010 SA 0 SW1
A1 SAB 0 0 0 0 _SA SA 0 BUF REF=1 VHIGH=1 VLOW=0
A5 CLK 0 0 0 0 N017 N015 0 BUF REF=1 VHIGH=1 VLOW=0
A6 50100CL 0 0 0 0 _50 50 0 BUF REF=1 VHIGH=1 VLOW=0
S21 N004 N008 50 0 SW1
C3 N008 N005 {CSC1}
S22 N001 N003 50 0 SW1
C8 N003 N002 {CSC1}
S23 N011 N013 50 0 SW1
C9 N013 N012 {CSC1}
S24 N006 N009 50 0 SW1
C10 N009 N007 {CSC1}
A7 N014 0 N016 0 N015 0 P1 0 AND trise=2n
A8 N015 0 0 0 0 0 N014 0 BUF td=6n
A9 N018 0 N016 0 N017 0 P2 0 AND trise=5n
A10 N017 0 0 0 0 0 N018 0 BUF td=6n
A2 50100CL 0 0 0 0 0 N016 0 BUF REF=-1 VHIGH=1 VLOW=0
B1 NAPHP 0 I=4*tanh(OPG*V(INV))
B2 BP 0 I=4*tanh(OPG*V(sum1))
B3 LP 0 I=4*tanh(OPG*V(sum2))
C11 NAPHP 0 100p
C12 BP 0 100p
C13 LP 0 100p
.param CSC1=32p*(2*pi/100) ; 100/1 2p, 50/1 4p
.param OPG=20k/4 ; gain=10k, vout=4V

* LTspice schematic (.asc)
Version 4
SHEET 1 2368 1600
WIRE -752 -800 -816 -800
WIRE -624 -800 -672 -800
WIRE -432 -800 -624 -800
WIRE -352 -800 -368 -800
WIRE -320 -800 -352 -800
WIRE -160 -800 -240 -800
WIRE -736 -736 -736 -752
WIRE -688 -736 -688 -752
WIRE -304 -736 -304 -752
WIRE -752 -608 -784 -608
WIRE -624 -608 -624 -800
WIRE -624 -608 -672 -608
WIRE -576 -608 -624 -608
WIRE -432 -608 -496 -608
WIRE -352 -608 -352 -800
WIRE -352 -608 -368 -608
WIRE -336 -608 -352 -608
WIRE -224 -608 -256 -608
WIRE 912 -576 880 -576
WIRE 1008 -576 992 -576
WIRE -736 -544 -736 -560
WIRE -560 -544 -560 -560
WIRE -512 -544 -512 -560
WIRE -320 -544 -320 -560
WIRE -48 -512 -80 -512
WIRE 48 -512 32 -512
WIRE 928 -512 928 -528
WIRE -32 -448 -32 -464
WIRE 880 -432 880 -576
WIRE 912 -432 880 -432
WIRE 1008 -432 1008 -576
WIRE 1008 -432 976 -432
WIRE 1088 -432 1088 -688
WIRE 1088 -432 1008 -432
WIRE 1184 -432 1088 -432
WIRE 1184 -400 1184 -432
WIRE 1008 -384 1008 -432
WIRE 1088 -384 1088 -432
WIRE -1072 -368 -1072 -432
WIRE -976 -368 -1072 -368
WIRE -880 -368 -976 -368
WIRE -752 -368 -880 -368
WIRE -624 -368 -672 -368
WIRE -432 -368 -624 -368
WIRE -352 -368 -368 -368
WIRE -320 -368 -352 -368
WIRE -160 -368 -160 -800
WIRE -160 -368 -240 -368
WIRE -128 -368 -160 -368
WIRE -80 -368 -80 -512
WIRE -80 -368 -128 -368
WIRE -48 -368 -80 -368
WIRE 48 -368 48 -512
WIRE 48 -368 16 -368
WIRE 128 -368 128 -688
WIRE 128 -368 48 -368
WIRE 208 -368 128 -368
WIRE 304 -368 208 -368
WIRE 432 -368 384 -368
WIRE 624 -368 432 -368
WIRE 704 -368 688 -368
WIRE 736 -368 704 -368
WIRE 848 -368 816 -368
WIRE 880 -368 880 -432
WIRE 880 -368 848 -368
WIRE 960 -368 880 -368
WIRE -976 -336 -976 -368
WIRE -880 -336 -880 -368
WIRE 128 -336 128 -368
WIRE 208 -336 208 -368
WIRE 48 -320 48 -368
WIRE -736 -304 -736 -320
WIRE -688 -304 -688 -320
WIRE -304 -304 -304 -320
WIRE -80 -304 -80 -368
WIRE 0 -304 -80 -304
WIRE 320 -304 320 -320
WIRE 368 -304 368 -320
WIRE 752 -304 752 -320
WIRE 960 -288 960 -320
WIRE 1008 -288 1008 -304
WIRE 1088 -288 1088 -304
WIRE 1184 -288 1184 -336
WIRE -1072 -272 -1072 -368
WIRE -1120 -256 -1184 -256
WIRE -976 -224 -976 -256
WIRE -880 -224 -880 -272
WIRE 0 -224 0 -256
WIRE 48 -224 48 -240
WIRE 128 -224 128 -256
WIRE 208 -224 208 -272
WIRE -752 -192 -784 -192
WIRE -624 -192 -624 -368
WIRE -624 -192 -672 -192
WIRE -576 -192 -624 -192
WIRE -432 -192 -496 -192
WIRE -352 -192 -352 -368
WIRE -352 -192 -368 -192
WIRE -336 -192 -352 -192
WIRE -224 -192 -256 -192
WIRE 304 -192 272 -192
WIRE 432 -192 432 -368
WIRE 432 -192 384 -192
WIRE 480 -192 432 -192
WIRE 624 -192 560 -192
WIRE 704 -192 704 -368
WIRE 704 -192 688 -192
WIRE 720 -192 704 -192
WIRE 832 -192 800 -192
WIRE -1120 -176 -1120 -208
WIRE -1072 -176 -1072 -192
WIRE -736 -128 -736 -144
WIRE -560 -128 -560 -144
WIRE -512 -128 -512 -144
WIRE -320 -128 -320 -144
WIRE 320 -128 320 -144
WIRE 496 -128 496 -144
WIRE 544 -128 544 -144
WIRE 736 -128 736 -144
WIRE -1008 64 -1088 64
WIRE -880 64 -928 64
WIRE -752 64 -880 64
WIRE -624 64 -672 64
WIRE -432 64 -624 64
WIRE -352 64 -368 64
WIRE -320 64 -352 64
WIRE -160 64 -160 -368
WIRE -160 64 -240 64
WIRE -1088 112 -1088 64
WIRE -992 128 -992 112
WIRE -944 128 -944 112
WIRE -736 128 -736 112
WIRE -688 128 -688 112
WIRE -304 128 -304 112
WIRE -1008 256 -1040 256
WIRE -880 256 -880 64
WIRE -880 256 -928 256
WIRE -752 256 -784 256
WIRE -624 256 -624 64
WIRE -624 256 -672 256
WIRE -576 256 -624 256
WIRE -432 256 -496 256
WIRE -352 256 -352 64
WIRE -352 256 -368 256
WIRE -336 256 -352 256
WIRE -224 256 -256 256
WIRE -992 320 -992 304
WIRE -944 320 -944 304
WIRE -736 320 -736 304
WIRE -560 320 -560 304
WIRE -512 320 -512 304
WIRE -320 320 -320 304
WIRE -576 432 -640 432
WIRE -704 448 -864 448
WIRE -576 464 -640 464
WIRE 64 496 0 496
WIRE -64 512 -128 512
WIRE 192 512 128 512
WIRE 64 528 32 528
WIRE -128 560 -128 512
WIRE -128 560 -640 560
WIRE 64 560 -128 560
WIRE -704 576 -864 576
WIRE -128 592 -640 592
WIRE 784 608 784 560
WIRE 32 672 32 528
WIRE 32 672 -352 672
WIRE -416 688 -768 688
WIRE 784 720 784 688
WIRE 64 736 0 736
WIRE -128 752 -128 592
WIRE -64 752 -128 752
WIRE 192 752 128 752
WIRE -576 768 -640 768
WIRE 32 768 32 672
WIRE 64 768 32 768
WIRE -768 784 -768 688
WIRE -768 784 -864 784
WIRE -704 784 -768 784
WIRE -576 800 -640 800
WIRE -128 800 -128 752
WIRE 64 800 -128 800
FLAG 960 -288 0
FLAG 1008 -288 0
FLAG 832 -192 0
FLAG 272 -192 0
FLAG 320 -304 0
FLAG 752 -304 0
FLAG 320 -128 0
FLAG 736 -128 0
FLAG 368 -304 P2
FLAG 800 -320 P1
FLAG 784 -144 P2
FLAG 368 -144 P1
FLAG 928 -512 0
FLAG 976 -528 P0
FLAG 784 720 0
FLAG 784 560 P0
FLAG 1088 -688 LP
IOPIN 976 -144 Out
FLAG 0 -224 0
FLAG 48 -224 0
FLAG -224 256 0
FLAG -784 256 0
FLAG -736 128 0
FLAG -304 128 0
FLAG -736 320 0
FLAG -320 320 0
FLAG -688 128 P1
FLAG -256 112 P1
FLAG -272 304 P2
FLAG -688 304 P2
FLAG -32 -448 0
FLAG 16 -464 P0
FLAG 128 -688 BP
IOPIN 16 -144 Out
FLAG -224 -192 0
FLAG -784 -192 0
FLAG -736 -304 0
FLAG -304 -304 0
FLAG -736 -128 0
FLAG -320 -128 0
FLAG -688 -304 P2
FLAG -256 -320 P1
FLAG -272 -144 P2
FLAG -688 -144 P1
FLAG -1120 -176 0
FLAG -1072 -176 0
FLAG -224 -608 0
FLAG -784 -608 0
FLAG -736 -736 0
FLAG -304 -736 0
FLAG -736 -544 0
FLAG -320 -544 0
FLAG -688 -736 P1
FLAG -256 -752 P1
FLAG -272 -560 P2
FLAG -688 -560 P2
FLAG -816 -800 S1
IOPIN -928 -256 In
FLAG -1184 -256 INV
IOPIN -1296 288 In
FLAG 128 -224 0
FLAG 1088 -288 0
FLAG -976 -224 0
FLAG -1072 -432 NAPHP
IOPIN -1184 112 Out
FLAG -992 128 0
FLAG -944 128 _SA
FLAG -992 320 0
FLAG -944 320 SA
FLAG -1040 256 LP
FLAG -864 448 SAB
IOPIN -976 992 In
FLAG -576 432 SA
FLAG -576 464 _SA
FLAG -864 576 CLK
IOPIN -976 1120 In
FLAG -864 784 50100CL
IOPIN -976 1328 In
FLAG -560 -128 0
FLAG -512 -128 50
FLAG -560 -544 0
FLAG -512 -544 50
FLAG -560 320 0
FLAG -512 320 50
FLAG 496 -128 0
FLAG 544 -128 50
FLAG -576 768 50
FLAG 192 512 P1
FLAG 192 752 P2
FLAG -1088 112 COM
FLAG -576 800 _50
FLAG -128 -368 sum1
FLAG 848 -368 sum2
FLAG -880 -224 0
FLAG 208 -224 0
FLAG 1184 -288 0
SYMBOL sw 288 -368 R270
SYMATTR InstName S1
SYMATTR Value SW1
SYMBOL sw 720 -368 R270
SYMATTR InstName S2
SYMATTR Value SW1
SYMBOL cap 624 -352 R270
SYMATTR InstName C1
SYMATTR Value {CSC1}
SYMBOL cap 912 -416 R270
SYMATTR InstName C2
SYMATTR Value 32p
SYMBOL sw 288 -192 R270
SYMATTR InstName S3
SYMATTR Value SW1
SYMBOL sw 704 -192 R270
SYMATTR InstName S4
SYMATTR Value SW1
SYMBOL sw 896 -576 R270
SYMATTR InstName S5
SYMATTR Value SW1
SYMBOL voltage 784 592 R0
SYMATTR InstName V4
SYMATTR Value PULSE(1 0 0 1n 1n 1k 2k)
SYMBOL sw -768 64 R270
SYMATTR InstName S7
SYMATTR Value SW1
SYMBOL sw -336 64 R270
SYMATTR InstName S8
SYMATTR Value SW1
SYMBOL cap -432 80 R270
SYMATTR InstName C4
SYMATTR Value {CSC1}
SYMBOL cap -48 -352 R270
SYMATTR InstName C5
SYMATTR Value 32p
SYMBOL sw -768 256 R270
SYMATTR InstName S9
SYMATTR Value SW1
SYMBOL sw -352 256 R270
SYMATTR InstName S10
SYMATTR Value SW1
SYMBOL sw -64 -512 R270
SYMATTR InstName S11
SYMATTR Value SW1
SYMBOL sw -768 -368 R270
SYMATTR InstName S12
SYMATTR Value SW1
SYMBOL sw -336 -368 R270
SYMATTR InstName S13
SYMATTR Value SW1
SYMBOL cap -432 -352 R270
SYMATTR InstName C6
SYMATTR Value {CSC1}
SYMBOL sw -768 -192 R270
SYMATTR InstName S14
SYMATTR Value SW1
SYMBOL sw -352 -192 R270
SYMATTR InstName S15
SYMATTR Value SW1
SYMBOL sw -768 -800 R270
SYMATTR InstName S16
SYMATTR Value SW1
SYMBOL sw -336 -800 R270
SYMATTR InstName S17
SYMATTR Value SW1
SYMBOL cap -432 -784 R270
SYMATTR InstName C7
SYMATTR Value {CSC1}
SYMBOL sw -768 -608 R270
SYMATTR InstName S18
SYMATTR Value SW1
SYMBOL sw -352 -608 R270
SYMATTR InstName S19
SYMATTR Value SW1
SYMBOL res 112 -352 R0
SYMATTR InstName R3
SYMATTR Value 1
SYMBOL res 1072 -400 R0
SYMATTR InstName R4
SYMATTR Value 1
SYMBOL res -992 -352 R0
SYMATTR InstName R5
SYMATTR Value 1
SYMBOL sw -1024 64 R270
SYMATTR InstName S6
SYMATTR Value SW1
SYMBOL sw -1024 256 R270
SYMATTR InstName S20
SYMATTR Value SW1
SYMBOL Digital\\buf -704 384 R0
SYMATTR InstName A1
SYMATTR Value2 REF=1
SYMATTR SpiceLine VHIGH=1 VLOW=0
SYMBOL Digital\\buf -704 512 R0
SYMATTR InstName A5
SYMATTR Value2 REF=1
SYMATTR SpiceLine VHIGH=1 VLOW=0
SYMBOL Digital\\buf -704 720 R0
SYMATTR InstName A6
SYMATTR Value2 REF=1
SYMATTR SpiceLine VHIGH=1 VLOW=0
SYMBOL sw -592 -192 R270
SYMATTR InstName S21
SYMATTR Value SW1
SYMBOL cap -432 -176 R270
SYMATTR InstName C3
SYMATTR Value {CSC1}
SYMBOL sw -592 -608 R270
SYMATTR InstName S22
SYMATTR Value SW1
SYMBOL cap -432 -592 R270
SYMATTR InstName C8
SYMATTR Value {CSC1}
SYMBOL sw -592 256 R270
SYMATTR InstName S23
SYMATTR Value SW1
SYMBOL cap -432 272 R270
SYMATTR InstName C9
SYMATTR Value {CSC1}
SYMBOL sw 464 -192 R270
SYMATTR InstName S24
SYMATTR Value SW1
SYMBOL cap 624 -176 R270
SYMATTR InstName C10
SYMATTR Value {CSC1}
SYMBOL Digital\\and 96 464 R0
SYMATTR InstName A7
SYMATTR SpiceLine trise=2n
SYMBOL Digital\\buf -64 448 R0
SYMATTR SpiceLine td=6n
SYMATTR InstName A8
SYMBOL Digital\\and 96 704 R0
SYMATTR InstName A9
SYMATTR SpiceLine trise=5n
SYMBOL Digital\\buf -64 688 R0
SYMATTR SpiceLine td=6n
SYMATTR InstName A10
SYMBOL Digital\\buf -416 624 R0
SYMATTR InstName A2
SYMATTR Value2 REF=-1
SYMATTR SpiceLine VHIGH=1 VLOW=0
SYMBOL bi -1072 -272 R0
SYMATTR Value I=4*tanh(OPG*V(INV))
SYMATTR InstName B1
SYMBOL bi 48 -320 R0
SYMATTR Value I=4*tanh(OPG*V(sum1))
SYMATTR InstName B2
SYMBOL bi 1008 -384 R0
SYMATTR Value I=4*tanh(OPG*V(sum2))
SYMATTR InstName B3
SYMBOL cap -896 -336 R0
SYMATTR InstName C11
SYMATTR Value 100p
SYMBOL cap 192 -336 R0
SYMATTR InstName C12
SYMATTR Value 100p
SYMBOL cap 1168 -400 R0
SYMATTR InstName C13
SYMATTR Value 100p