axi_pwm_gen: Offset mecanism fix

When leaving the offset equal to zero for a pwm
channel. That pwm channel was not waiting for all
channels to get in sync after a load config.

Signed-off-by: AndreiGrozav <andrei.grozav@analog.com>
main
AndreiGrozav 2023-11-23 19:32:09 +02:00 committed by Alin-Tudor Sferle
parent 119d4e43a3
commit e7dd5ce394
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ module axi_pwm_gen #(
if (pwm_gen_resetn == 1'b0) begin
sync[i] <= 1'b1;
end else begin
sync[i] <= (offset_cnt == pwm_offset_s[i]) ? 1'b0 : 1'b1;
sync[i] <= (offset_cnt == pwm_offset_s[i]) ? offset_alignment : 1'b1;
end
end
end else begin