Waveform generation with opamp
You need to create a new pulse from the original pulse. The new pulse should start from zero and rise to a positive voltage when t = t0 + 2. At t= t0 + 6, the pulse should complete and return to zero.

This allows you to use an integrator between the start of the new pulse and t = t0 + 4. At t = t0 + 4 the integration process should be suspended (or halted) until the pulse ends at t = t0 + 6. Thereafter, integration is restored and the output ramps down: -



That's how I'd do it - good luck.