+ dat_reg(60 downto 58) <= pwm_en_p(1 to 3); --enable positive
+ dat_reg(57 downto 55) <= pwm_en_n(1 to 3); --shutdown
+ dat_reg(54 downto 49) <= pwm_match(1)(10 downto 5); --6 MSb of PWM1
+ dat_reg(48 downto 42) <= pwm_match(2)(10 downto 4); --7 MSb of PWM2
+ dat_reg(41 downto 36) <= pwm_match(3)(10 downto 5); --6 MSb of PWM3