* SPICE netlist
Rin x 14 1g
R2 2 14 1g
B1 14 3 I=(V(A)*V(x)*V(4))/1k
B2 14 B I=V(3)*V(x)*V(4)/1k
Cb2 B 14 {cval} Rpar=1g
Bxd A 14 V=-V(B)-.1*V(3)**3-.1*V(3)*V(B)**2+.1*V(3)*V(5)**2
Ra A 14 1g
Vinit z 14 PULSE(0 {a})
Cb1 3 z {cval} Rpar=1g
R4_5 4 5 1g
Ef0 x 1 6 14 {1/ks}
Bd0 7 14 V=Table (V(B), -1m,0,1m, {2*a})+{d-a}
R7 7 14 1g
R12 12 14 1g
Bd2 9 14 V=Table (V(3), -1m,0,1m, {2*a})+{d-a}
Bd1 8 14 V=Table (-V(B), -1m,0,1m, {2*a})+{d-a}
Bd3 10 14 V=Table (-V(3), -1m,0,1m, {2*a})+{d-a}
Buf2 12 14 V=V(3)+{c}
Buf0 2 14 V=V(B)+{c}
Buf1 11 14 V=-V(B)+{c}
R11 11 14 1g
R9 9 14 1g
R8 8 14 1g
R13 13 14 1g
Buf3 13 14 V=-V(3)+{c}
R10 10 14 1g

* LTspice schematic (.asc)
Version 4
SHEET 1 1344 400
WIRE -656 -120 -656 -136
WIRE -656 -8 -656 -40
WIRE -656 104 -656 88
WIRE -656 200 -656 184
WIRE -576 -136 -576 -168
WIRE -576 -8 -576 -56
WIRE -528 88 -656 88
WIRE -528 104 -528 88
WIRE -528 120 -528 104
WIRE -528 200 -656 200
WIRE -528 200 -528 184
WIRE -480 -200 -640 -200
WIRE -480 -104 -480 -200
WIRE -480 -8 -576 -8
WIRE -480 -8 -480 -24
WIRE -480 200 -528 200
WIRE -480 200 -480 -8
WIRE -400 40 -624 40
WIRE -400 88 -400 40
WIRE -400 200 -480 200
WIRE -400 200 -400 168
WIRE -352 40 -400 40
WIRE -352 88 -352 40
WIRE -352 200 -400 200
WIRE -352 200 -352 168
WIRE -240 88 -240 40
WIRE -240 200 -352 200
WIRE -240 200 -240 168
WIRE -224 -8 -480 -8
WIRE -224 -8 -224 -56
WIRE -208 -184 -608 -184
WIRE -208 -104 -208 -184
WIRE -208 -56 -224 -56
WIRE -160 -168 -576 -168
WIRE -160 -152 -160 -168
WIRE -160 -120 -160 -152
WIRE -160 8 -240 8
WIRE -160 8 -160 -40
WIRE -160 40 -240 40
WIRE -160 72 -160 40
WIRE -160 200 -240 200
WIRE -160 200 -160 152
WIRE -128 40 -160 40
WIRE -96 104 -96 88
WIRE -96 200 -160 200
WIRE -96 200 -96 184
WIRE -64 -8 -224 -8
WIRE -64 8 -64 -8
WIRE -16 -8 -64 -8
WIRE -16 -8 -16 -40
WIRE -16 88 -96 88
WIRE -16 104 -16 88
WIRE -16 200 -96 200
WIRE -16 200 -16 184
WIRE 48 -136 48 -152
WIRE 48 -40 -16 -40
WIRE 48 -40 48 -56
WIRE 48 104 48 40
WIRE 48 200 -16 200
WIRE 48 200 48 184
WIRE 112 -152 48 -152
WIRE 112 -136 112 -152
WIRE 112 -40 48 -40
WIRE 112 -40 112 -56
WIRE 112 40 48 40
WIRE 112 56 112 40
WIRE 112 200 48 200
WIRE 112 200 112 136
WIRE 128 40 112 40
WIRE 144 -152 112 -152
WIRE 208 -136 208 -152
WIRE 208 -40 112 -40
WIRE 208 -40 208 -56
WIRE 208 88 208 56
WIRE 208 104 208 88
WIRE 208 200 112 200
WIRE 208 200 208 184
WIRE 272 -152 208 -152
WIRE 272 -136 272 -152
WIRE 272 -40 208 -40
WIRE 272 -40 272 -56
WIRE 272 88 208 88
WIRE 272 104 272 88
WIRE 272 200 208 200
WIRE 272 200 272 184
WIRE 304 -152 272 -152
WIRE 400 -200 -480 -200
WIRE 400 -56 400 -200
WIRE 400 56 400 8
WIRE 400 72 400 56
WIRE 400 200 272 200
WIRE 400 200 400 152
WIRE 512 -120 512 -152
WIRE 512 -104 512 -120
WIRE 512 200 400 200
WIRE 512 200 512 -24
WIRE 560 -120 512 -120
WIRE 560 72 560 -120
WIRE 560 200 512 200
WIRE 560 200 560 152
WIRE 608 -8 608 -120
WIRE 608 200 560 200
WIRE 608 200 608 72
WIRE 672 -120 608 -120
WIRE 672 -120 672 -152
WIRE 672 -104 672 -120
WIRE 672 200 608 200
WIRE 672 200 672 -24
FLAG -240 8 1
IOPIN 80 304 In
FLAG -640 -200 3
FLAG -528 104 B
FLAG -96 88 A
FLAG -128 40 2
IOPIN 192 336 Out
FLAG 400 56 z
FLAG -656 -136 4
FLAG -656 -8 5
FLAG -608 -184 6
FLAG -160 -152 x
FLAG 128 40 7
IOPIN 448 336 Out
FLAG 144 -152 12
IOPIN 464 144 Out
FLAG 512 -152 9
IOPIN 832 144 Out
FLAG 208 56 8
IOPIN 528 352 Out
FLAG 672 -152 10
IOPIN 992 144 Out
FLAG -624 40 11
IOPIN -304 336 Out
FLAG 304 -152 13
IOPIN 624 144 Out
FLAG -64 8 14
SYMBOL res -592 -152 R0
SYMATTR InstName Rin
SYMATTR Value 1g
SYMBOL res -176 56 R0
SYMATTR InstName R2
SYMATTR Value 1g
SYMBOL bi -480 -24 R180
SYMATTR InstName B1
SYMATTR Value I=(V(A)*V(x)*V(4))/1k
SYMBOL bi -656 184 R180
SYMATTR InstName B2
SYMATTR Value I=V(3)*V(x)*V(4)/1k
SYMBOL cap -544 120 R0
SYMATTR Value {cval}
SYMATTR InstName Cb2
SYMATTR SpiceLine Rpar=1g
SYMBOL bv -16 88 R0
SYMATTR InstName Bxd
SYMATTR Value V=-V(B)-.1*V(3)**3-.1*V(3)*V(B)**2+.1*V(3)*V(5)**2
SYMBOL res -112 88 R0
SYMATTR InstName Ra
SYMATTR Value 1g
SYMBOL voltage 400 56 R0
SYMATTR InstName Vinit
SYMATTR Value PULSE(0 {a})
SYMBOL cap 384 -56 R0
SYMATTR InstName Cb1
SYMATTR Value {cval}
SYMATTR SpiceLine Rpar=1g
SYMBOL res -672 -136 R0
SYMATTR InstName R4_5
SYMATTR Value 1g
SYMBOL e -160 -136 R0
SYMATTR InstName Ef0
SYMATTR Value {1/ks}
SYMBOL bv 112 40 R0
SYMATTR InstName Bd0
SYMATTR Value V=Table (V(B), -1m,0,1m, {2*a})+{d-a}
SYMBOL res 32 88 R0
SYMATTR InstName R7
SYMATTR Value 1g
SYMBOL res 96 -152 R0
SYMATTR InstName R12
SYMATTR Value 1g
SYMBOL bv 512 -120 R0
SYMATTR InstName Bd2
SYMATTR Value V=Table (V(3), -1m,0,1m, {2*a})+{d-a}
SYMBOL bv 208 88 R0
SYMATTR InstName Bd1
SYMATTR Value V=Table (-V(B), -1m,0,1m, {2*a})+{d-a}
SYMBOL bv 672 -120 R0
SYMATTR InstName Bd3
SYMATTR Value V=Table (-V(3), -1m,0,1m, {2*a})+{d-a}
SYMBOL bv 48 -152 R0
SYMATTR InstName Buf2
SYMATTR Value V=V(3)+{c}
SYMBOL bv -240 72 R0
SYMATTR InstName Buf0
SYMATTR Value V=V(B)+{c}
SYMBOL bv -400 72 R0
SYMATTR InstName Buf1
SYMATTR Value V=-V(B)+{c}
SYMBOL res -368 72 R0
SYMATTR InstName R11
SYMATTR Value 1g
SYMBOL res 544 56 R0
SYMATTR InstName R9
SYMATTR Value 1g
SYMBOL res 256 88 R0
SYMATTR InstName R8
SYMATTR Value 1g
SYMBOL res 256 -152 R0
SYMATTR InstName R13
SYMATTR Value 1g
SYMBOL bv 208 -152 R0
SYMATTR InstName Buf3
SYMATTR Value V=-V(3)+{c}
SYMBOL res 592 -24 R0
SYMATTR InstName R10
SYMATTR Value 1g