fix generator sync and complete randomized TB

This commit is contained in:
Zer0Nu11
2026-06-09 15:28:24 +03:00
parent 1a3b811e75
commit ccd9964ada
2 changed files with 46 additions and 22 deletions

View File

@ -55,11 +55,12 @@ module generator
if (cnt_pulse_num != pulse_num_reg) begin
// wait for synchronization with sampler
if (!synced) begin
done <= 1;
if (request) begin
if (request & done) begin
synced <= 1;
done <= 0;
end
else
done <= 1;
end
else begin
if (cnt_pulse_period != pulse_period_reg) begin