chore: 2 starts incident

This commit is contained in:
otroubi
2026-05-15 14:53:00 +03:00
parent d8d89b3566
commit 966704a4de

View File

@ -44,7 +44,7 @@ module generator
cnt_period <= '0;
sample_req <= 0;
end else begin
if (start) begin
if (start & !enable) begin
enable <= 1'b1;
cnt_pulse_num <= '0;
cnt_period <= '0;
@ -57,6 +57,7 @@ module generator
pulse_height_reg <= pulse_height;
end
if (enable) begin
if (!sample_req && (cnt_period == 0)) begin
pulse_height_out_reg <= ZERO_LEVEL;
if (sample_done) begin