course CFO bug fix

This commit is contained in:
mmehari 2020-08-29 11:38:06 +02:00
parent 702b0c084f
commit 77e201cfa8

View File

@ -352,10 +352,10 @@ always @(posedge clock) begin
end else begin
if (next_phase_correction < -PI) begin
phase_correction <= next_phase_correction + DOUBLE_PI;
phase_correction <= next_phase_correction + DOUBLE_PI + phase_offset;
next_phase_correction <= next_phase_correction + DOUBLE_PI + phase_offset;
end else begin
phase_correction <= next_phase_correction;
phase_correction <= next_phase_correction + phase_offset;
next_phase_correction <= next_phase_correction + phase_offset;
end
end
end