* SPICE netlist
XU1 N006 N002 N001 N009 N003 level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
XU2 0 N005 N001 N009 cos level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
XU3 0 N007 N001 N009 Sine level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
C1 Sine N007 1.59p
R3 N007 cos 1Meg
C2 cos N005 1.59p
R4 N005 N003 1Meg
R1 N003 N002 10k
R2 N002 Sine 10k
R5 N002 N004 500k
R6 N006 0 1k
R7 N004 cos 10k
R8 0 N004 4
V1 N001 0 5
V2 0 N009 5
R9 N006 N008 10k
D1 N008 cos 1N4148
D2 cos N008 1N4148
.tran 100m

* LTspice schematic (.asc)
Version 4
SHEET 1 1072 544
WIRE 408 -272 -408 -272
WIRE 536 -224 472 -224
WIRE -408 -144 -408 -272
WIRE -376 -144 -408 -144
WIRE -264 -144 -296 -144
WIRE -248 -144 -264 -144
WIRE -136 -144 -168 -144
WIRE 472 -96 472 -224
WIRE 472 -96 -200 -96
WIRE -200 -80 -200 -96
WIRE -344 -64 -424 -64
WIRE -264 -64 -264 -144
WIRE -232 -64 -264 -64
WIRE 472 -64 472 -96
WIRE 472 -64 72 -64
WIRE -136 -48 -136 -144
WIRE -136 -48 -168 -48
WIRE -104 -48 -136 -48
WIRE -8 -48 -24 -48
WIRE 24 -48 -8 -48
WIRE 136 -48 88 -48
WIRE 472 -48 472 -64
WIRE 472 -48 312 -48
WIRE -232 -32 -264 -32
WIRE -424 -16 -424 -64
WIRE -424 -16 -456 -16
WIRE -408 -16 -424 -16
WIRE 72 16 72 -64
WIRE -8 32 -8 -48
WIRE 40 32 -8 32
WIRE 136 48 136 -48
WIRE 136 48 104 48
WIRE 152 48 136 48
WIRE 168 48 152 48
WIRE 264 48 248 48
WIRE 296 48 264 48
WIRE 408 48 408 -272
WIRE 408 48 360 48
WIRE -264 80 -264 -32
WIRE 312 96 312 -48
WIRE 264 112 264 48
WIRE 280 112 264 112
WIRE -536 128 -536 -16
WIRE -312 128 -536 128
WIRE 152 128 152 48
WIRE 152 128 -312 128
WIRE 408 128 408 48
WIRE 408 128 344 128
WIRE -264 160 -456 160
WIRE -200 160 -200 -16
WIRE -120 160 -200 160
WIRE 72 160 72 80
WIRE 72 160 -120 160
WIRE 312 160 72 160
WIRE -120 176 -120 160
WIRE -456 192 -456 160
WIRE -456 192 -520 192
WIRE -392 192 -456 192
WIRE 152 208 152 128
WIRE 408 208 408 128
WIRE -392 256 -520 256
WIRE -312 256 -312 128
WIRE -312 256 -392 256
FLAG 408 208 Sine
IOPIN 544 352 Out
FLAG -328 -16 0
FLAG -344 80 0
FLAG 280 144 0
FLAG 40 64 0
FLAG 152 208 cos
IOPIN 288 352 Out
FLAG 536 -144 0
FLAG -120 256 0
SYMBOL OpAmps\\UniversalOpAmp -200 -48 R0
SYMATTR InstName U1
SYMBOL OpAmps\\UniversalOpAmp 72 48 R0
SYMATTR InstName U2
SYMBOL OpAmps\\UniversalOpAmp 312 128 R0
SYMATTR InstName U3
SYMBOL cap 360 32 R90
SYMATTR InstName C1
SYMATTR Value 1.59p
SYMBOL res 264 32 R90
SYMATTR InstName R3
SYMATTR Value 1Meg
SYMBOL cap 88 -64 R90
SYMATTR InstName C2
SYMATTR Value 1.59p
SYMBOL res -8 -64 R90
SYMATTR InstName R4
SYMATTR Value 1Meg
SYMBOL res -152 -160 R90
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL res -280 -160 R90
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL res -248 -80 R90
SYMATTR InstName R5
SYMATTR Value 500k
SYMBOL res -248 64 R90
SYMATTR InstName R6
SYMATTR Value 1k
SYMBOL res -440 -32 R90
SYMATTR InstName R7
SYMATTR Value 10k
SYMBOL res -312 -32 R90
SYMATTR InstName R8
SYMATTR Value 4
SYMBOL voltage 536 -240 R0
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL voltage -120 272 R180
SYMATTR InstName V2
SYMATTR Value 5
SYMBOL res -280 64 R0
SYMATTR InstName R9
SYMATTR Value 10k
SYMBOL diode -408 192 R0
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL diode -504 256 R180
SYMATTR InstName D2
SYMATTR Value 1N4148