simple pwm controller in vhdl