Incrementer+1 statereg C1 outputlogic outputbuffer C1 R R EN1 EN1 en_pi clk_i rst_ni pwm_width_i pwm_o current_state next_state buf_next