Generates a PWM wave on pwm_out output using a 50 MHz input clock and a switch signal.