fix: refactoring
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user