PWM shaping and simulink