How to design the PWM circuitry

How to design the PWM circuitry