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
parent
119d4e43a3
commit
e7dd5ce394
|
@ -333,7 +333,7 @@ module axi_pwm_gen #(
|
||||||
if (pwm_gen_resetn == 1'b0) begin
|
if (pwm_gen_resetn == 1'b0) begin
|
||||||
sync[i] <= 1'b1;
|
sync[i] <= 1'b1;
|
||||||
end else begin
|
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
|
end
|
||||||
end else begin
|
end else begin
|
||||||
|
|
Loading…
Reference in New Issue