* SPICE netlist
V1 V1 0 PULSE(0 4.9 1m 1n 1n 1m 2m)
V2 V2 0 PULSE(0 4.95 2m 1n 1n 2m 4m)
V3 V3 0 PULSE(0 5 4m 1n 1n 4m 8m)
M1 V1 G1 OUT OUT AO6407
Q1 G1 P001 N001 0 BC857B
R1 V1 P001 10k
R2 G1 0 10k
D1 V2 N001 BAT54
D2 V3 N001 BAT54
Rload OUT 0 100
M2 V2 G2 OUT OUT AO6407
Q2 N002 P002 V3 0 BC857B
R3 V2 P002 10k
R4 G2 0 10k
D3 N002 G2 BAT54
D4 V1 G2 BAT54
M3 V3 G3 OUT OUT AO6407
R5 G3 0 10k
D5 V1 G3 BAT54
D6 V2 G3 BAT54
.tran 8m

* LTspice schematic (.asc)
Version 4
SHEET 1 1104 1248
WIRE 88 -608 -88 -608
WIRE 312 -608 88 -608
WIRE 488 -608 408 -608
WIRE 504 -608 488 -608
WIRE 552 -608 504 -608
WIRE 392 -512 392 -560
WIRE 40 -464 -24 -464
WIRE 392 -464 392 -512
WIRE 392 -464 136 -464
WIRE 392 -448 392 -464
WIRE 552 -448 552 -608
WIRE -72 -368 -88 -368
WIRE 40 -368 40 -464
WIRE 40 -368 -8 -368
WIRE 392 -304 392 -368
WIRE 552 -304 552 -368
WIRE -88 -128 -120 -128
WIRE 40 -128 -88 -128
WIRE 312 -128 40 -128
WIRE 488 -128 488 -608
WIRE 488 -128 408 -128
WIRE 392 -48 392 -80
WIRE -88 16 -120 16
WIRE -8 16 -88 16
WIRE 136 16 88 16
WIRE 248 16 200 16
WIRE 392 16 392 -48
WIRE 392 16 248 16
WIRE 392 32 392 16
WIRE -88 112 -120 112
WIRE 136 112 -88 112
WIRE 248 112 248 16
WIRE 248 112 200 112
WIRE 392 176 392 112
WIRE -104 320 -120 320
WIRE 312 320 -104 320
WIRE 488 320 488 -128
WIRE 488 320 408 320
WIRE 392 400 392 368
WIRE -104 432 -120 432
WIRE 152 432 -104 432
WIRE 264 432 216 432
WIRE 392 432 392 400
WIRE 392 432 264 432
WIRE 392 480 392 432
WIRE 152 528 -88 528
WIRE 264 528 264 432
WIRE 264 528 216 528
WIRE 392 624 392 560
FLAG -552 -464 0
FLAG -552 64 0
FLAG -552 496 0
FLAG 392 -304 0
FLAG 552 -304 0
FLAG 504 -608 OUT
FLAG -552 -544 V1
FLAG -88 -608 V1
FLAG 392 176 0
FLAG -88 112 V1
FLAG 392 624 0
FLAG -104 320 V3
FLAG -88 16 V3
FLAG -88 -368 V3
FLAG -88 -464 V2
FLAG -88 -128 V2
FLAG -88 528 V2
FLAG -104 432 V1
FLAG -552 -16 V2
FLAG -552 416 V3
FLAG 392 -512 G1
FLAG 392 -48 G2
FLAG 392 400 G3
SYMBOL voltage -552 -560 R0
SYMATTR InstName V1
SYMATTR Value PULSE(0 4.9 1m 1n 1n 1m 2m)
SYMBOL voltage -552 -32 R0
SYMATTR InstName V2
SYMATTR Value PULSE(0 4.95 2m 1n 1n 2m 4m)
SYMBOL voltage -552 400 R0
SYMATTR InstName V3
SYMATTR Value PULSE(0 5 4m 1n 1n 4m 8m)
SYMBOL pmos 312 -560 R270
SYMATTR InstName M1
SYMATTR Value AO6407
SYMBOL pnp 136 -528 R90
SYMATTR InstName Q1
SYMATTR Value BC857B
SYMBOL res 72 -624 R0
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL res 376 -464 R0
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL schottky -88 -448 R270
SYMATTR InstName D1
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL schottky -72 -352 R270
SYMATTR InstName D2
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 536 -464 R0
SYMATTR InstName Rload
SYMATTR Value 100
SYMBOL pmos 312 -80 R270
SYMATTR InstName M2
SYMATTR Value AO6407
SYMBOL pnp 88 -48 R90
SYMATTR InstName Q2
SYMATTR Value BC857B
SYMBOL res 24 -144 R0
SYMATTR InstName R3
SYMATTR Value 10k
SYMBOL res 376 16 R0
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL schottky 136 32 R270
SYMATTR InstName D3
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL schottky 136 128 R270
SYMATTR InstName D4
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL pmos 312 368 R270
SYMATTR InstName M3
SYMATTR Value AO6407
SYMBOL res 376 464 R0
SYMATTR InstName R5
SYMATTR Value 10k
SYMBOL schottky 152 448 R270
SYMATTR InstName D5
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL schottky 152 544 R270
SYMATTR InstName D6
SYMATTR Value BAT54
SYMATTR Description Diode
SYMATTR Type diode