* SPICE netlist
V1 N002 0 9
Q1 N002 N006 A 0 NPN
Q2 A N015 0 0 NPN
R1 A B 10
Q3 B N012 0 0 NPN
Q4 N002 N005 B 0 NPN
R2 N006 B 1k
R3 B N012 1k
R4 A N005 1k
R5 N015 A 1k
V2 V+ 0 9
Q5 N016 N019 0 0 NPN
Q6 N013 N017 0 0 NPN
R6 N019 N018 1k
R7 N017 N016 1k
R8 N014 N013 2k
R9 0 N014 6k
R10 N011 N016 10k
R11 N011 N013 1k
V3 N011 0 9
V4 N018 0 PULSE(0 3.3 0 1u 1us 100u 200u 50)
Q7 N007 N010 0 0 NPN
Q8 N003 N008 0 0 NPN
R12 N010 N009 1k
R13 N008 N007 1k
R14 N004 N003 2k
R15 0 N004 6k
R16 N001 N007 10k
R17 N001 N003 1k
V5 N001 0 9
V6 N009 0 PULSE(0 3.3 10m 1us 1us 100u 200u 50)
D1 0 A D
D2 0 B D
D3 A N002 D
D4 B N002 D
XU2 N004 B V+ 0 B TL064 ;pnba In+)In-)V+)V-)OUT
XU1 N014 A V+ 0 A TL064 ;pnba In+)In-)V+)V-)OUT
.tran 0 20ms 0 1us
.include TL064.txt

* LTspice schematic (.asc)
Version 4
SHEET 1 3760 2288
WIRE 1880 -1144 -520 -1144
WIRE 568 -1032 568 -1080
WIRE -1128 -936 -1128 -1032
WIRE -1128 -936 -1320 -936
WIRE -952 -936 -1128 -936
WIRE 568 -824 568 -952
WIRE 568 -824 -104 -824
WIRE 1256 -824 568 -824
WIRE -952 -808 -952 -936
WIRE -552 -760 -696 -760
WIRE -1320 -728 -1320 -936
WIRE 1256 -712 1256 -824
WIRE 1256 -712 1112 -712
WIRE -696 -696 -696 -760
WIRE -664 -696 -696 -696
WIRE -552 -680 -552 -760
WIRE -552 -680 -600 -680
WIRE -520 -680 -520 -1144
WIRE -520 -680 -552 -680
WIRE -104 -680 -104 -824
WIRE -24 -680 -104 -680
WIRE 1256 -680 1256 -712
WIRE -952 -664 -952 -728
WIRE -808 -664 -952 -664
WIRE -712 -664 -728 -664
WIRE -664 -664 -712 -664
WIRE 1112 -664 1112 -712
WIRE -104 -648 -104 -680
WIRE -24 -632 -24 -680
WIRE 1464 -632 1320 -632
WIRE 1800 -632 1544 -632
WIRE -952 -600 -952 -664
WIRE -520 -600 -520 -680
WIRE -360 -600 -520 -600
WIRE -168 -600 -280 -600
WIRE -1320 -552 -1320 -648
WIRE -1176 -552 -1320 -552
WIRE -1016 -552 -1096 -552
WIRE 1112 -552 1112 -600
WIRE 1256 -552 1256 -584
WIRE 1256 -552 1112 -552
WIRE -104 -520 -104 -552
WIRE -24 -520 -24 -568
WIRE -24 -520 -104 -520
WIRE -712 -488 -712 -664
WIRE -1320 -456 -1320 -552
WIRE -1560 -408 -1704 -408
WIRE -1384 -408 -1480 -408
WIRE -1704 -264 -1704 -408
WIRE -1320 -264 -1320 -360
WIRE -1080 -264 -1320 -264
WIRE -952 -264 -952 -504
WIRE -952 -264 -1080 -264
WIRE -712 -264 -712 -408
WIRE -712 -264 -952 -264
WIRE -1080 -200 -1080 -264
WIRE -1704 -104 -1704 -184
WIRE -104 -88 -104 -520
WIRE 360 -88 -104 -88
WIRE 440 -88 360 -88
WIRE 792 -88 520 -88
WIRE 1256 -88 1256 -552
WIRE 1256 -88 792 -88
WIRE -1304 312 -1304 216
WIRE -1304 312 -1496 312
WIRE -1128 312 -1304 312
WIRE 1256 360 1256 -88
WIRE 1672 360 1256 360
WIRE -104 376 -104 -88
WIRE -104 376 -472 376
WIRE -1128 440 -1128 312
WIRE -552 472 -840 472
WIRE 1256 472 1256 360
WIRE 1256 472 1128 472
WIRE 1272 472 1256 472
WIRE 1272 504 1272 472
WIRE -1496 520 -1496 312
WIRE -104 520 -104 376
WIRE 40 520 -104 520
WIRE 1128 520 1128 472
WIRE -840 552 -840 472
WIRE -808 552 -840 552
WIRE -104 552 -104 520
WIRE 1480 552 1336 552
WIRE 1672 552 1672 360
WIRE 1672 552 1560 552
WIRE 1880 552 1880 -1144
WIRE 1880 552 1672 552
WIRE -552 568 -552 472
WIRE -552 568 -744 568
WIRE -472 568 -472 376
WIRE -472 568 -552 568
WIRE 40 568 40 520
WIRE -1128 584 -1128 520
WIRE -984 584 -1128 584
WIRE -888 584 -904 584
WIRE -808 584 -888 584
WIRE -472 600 -472 568
WIRE -472 600 -488 600
WIRE -376 600 -472 600
WIRE -168 600 -296 600
WIRE 1128 632 1128 584
WIRE 1272 632 1272 600
WIRE 1272 632 1128 632
WIRE -1128 648 -1128 584
WIRE -104 680 -104 648
WIRE 40 680 40 632
WIRE 40 680 -104 680
WIRE -1496 696 -1496 600
WIRE -1352 696 -1496 696
WIRE -1192 696 -1272 696
WIRE -888 760 -888 584
WIRE -1496 792 -1496 696
WIRE 1272 792 1272 632
WIRE -1736 840 -1880 840
WIRE -1560 840 -1656 840
WIRE -104 840 -104 680
WIRE -488 952 -488 600
WIRE -488 952 -504 952
WIRE 1800 952 1800 -632
WIRE 1800 952 -488 952
WIRE -1880 984 -1880 840
WIRE -1496 984 -1496 888
WIRE -1256 984 -1496 984
WIRE -1128 984 -1128 744
WIRE -1128 984 -1256 984
WIRE -888 984 -888 840
WIRE -888 984 -1128 984
WIRE -1256 1048 -1256 984
WIRE -1880 1144 -1880 1064
FLAG 568 -1080 0
FLAG -104 840 0
FLAG 1272 792 0
FLAG 360 -88 A
FLAG 792 -88 B
FLAG -760 104 0
FLAG -760 24 V+
FLAG -1256 1048 0
FLAG -1304 136 0
FLAG -1880 1144 0
FLAG -1080 -200 0
FLAG -1128 -1112 0
FLAG -1704 -104 0
FLAG -776 600 0
FLAG -776 536 V+
FLAG -632 -648 0
FLAG -632 -712 V+
SYMBOL voltage 568 -936 R180
SYMATTR InstName V1
SYMATTR Value 9
SYMBOL npn2 -168 -648 R0
SYMATTR InstName Q1
SYMBOL npn2 -168 552 R0
SYMATTR InstName Q2
SYMBOL res 424 -72 R270
SYMATTR InstName R1
SYMATTR Value 10
SYMBOL npn2 1336 504 M0
SYMATTR InstName Q3
SYMBOL npn2 1320 -680 M0
SYMATTR InstName Q4
SYMBOL res -264 -616 R90
SYMATTR InstName R2
SYMATTR Value 1k
SYMBOL res 1576 536 R90
SYMATTR InstName R3
SYMATTR Value 1k
SYMBOL res 1560 -648 R90
SYMATTR InstName R4
SYMATTR Value 1k
SYMBOL res -280 584 R90
SYMATTR InstName R5
SYMATTR Value 1k
SYMBOL voltage -760 8 R0
SYMATTR InstName V2
SYMATTR Value 9
SYMBOL npn -1560 792 R0
SYMATTR InstName Q5
SYMBOL npn -1192 648 R0
SYMATTR InstName Q6
SYMBOL res -1640 824 R90
SYMATTR InstName R6
SYMATTR Value 1k
SYMBOL res -1256 680 R90
SYMATTR InstName R7
SYMATTR Value 1k
SYMBOL res -888 568 R90
SYMATTR InstName R8
SYMATTR Value 2k
SYMBOL res -872 856 R180
SYMATTR InstName R9
SYMATTR Value 6k
SYMBOL res -1512 504 R0
SYMATTR InstName R10
SYMATTR Value 10k
SYMBOL res -1144 424 R0
SYMATTR InstName R11
SYMATTR Value 1k
SYMBOL voltage -1304 232 R180
SYMATTR InstName V3
SYMATTR Value 9
SYMBOL voltage -1880 968 R0
SYMATTR InstName V4
SYMATTR Value PULSE(0 3.3 0 1u 1us 100u 200u 50)
SYMBOL npn -1384 -456 R0
SYMATTR InstName Q7
SYMBOL npn -1016 -600 R0
SYMATTR InstName Q8
SYMBOL res -1464 -424 R90
SYMATTR InstName R12
SYMATTR Value 1k
SYMBOL res -1080 -568 R90
SYMATTR InstName R13
SYMATTR Value 1k
SYMBOL res -712 -680 R90
SYMATTR InstName R14
SYMATTR Value 2k
SYMBOL res -696 -392 R180
SYMATTR InstName R15
SYMATTR Value 6k
SYMBOL res -1336 -744 R0
SYMATTR InstName R16
SYMATTR Value 10k
SYMBOL res -968 -824 R0
SYMATTR InstName R17
SYMATTR Value 1k
SYMBOL voltage -1128 -1016 R180
SYMATTR InstName V5
SYMATTR Value 9
SYMBOL voltage -1704 -280 R0
SYMATTR InstName V6
SYMATTR Value PULSE(0 3.3 10m 1us 1us 100u 200u 50)
SYMBOL diode 56 632 R180
SYMATTR InstName D1
SYMBOL diode 1144 584 R180
SYMATTR InstName D2
SYMBOL diode -8 -568 R180
SYMATTR InstName D3
SYMBOL diode 1128 -600 R180
SYMATTR InstName D4
SYMBOL OpAmps\\opamp2 -632 -744 R0
SYMATTR InstName U2
SYMATTR Value TL064
SYMBOL OpAmps\\opamp2 -776 504 R0
SYMATTR InstName U1
SYMATTR Value TL064