fix: refactoring

This commit is contained in:
babintsev.lv
2026-06-16 20:26:45 +03:00
parent c0714f271e
commit fd9280737d
2 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ module generator
dac_out <= ZERO_LEVEL;
cnt_pulse_period++;
end
else if (cnt_pulse_period == pulse_period_reg) begin
else begin
cnt_pulse_num++;
cnt_pulse_period <= 0;
synced <= 0;
@ -77,7 +77,7 @@ module generator
end
end
end
else if (cnt_pulse_num == pulse_num_reg) begin
else begin
cnt_pulse_num <= 0;
enable <= 0;
end