fast fix of sampler OTR.
fix debug.xdc
Major add of full automated testing for TB.
This commit is contained in:
Zer0Nu11
2026-06-20 03:07:05 +03:00
parent 4fbecd5e30
commit efcd6ef5d0
3 changed files with 244 additions and 37 deletions

View File

@ -83,9 +83,9 @@ module sampler
if (cnt_smp_num != smp_num_reg) begin
cnt_smp_num <= cnt_smp_num +1;
buffer_ready <= 1;
if (!out_of_range_reg) begin
// if (!out_of_range_reg) begin
buffer <= data_converted;
end
// end
end else begin
cnt_smp_num <= '0;
buffer_ready <= 0;
@ -120,16 +120,16 @@ module sampler
if (cnt_smp_num != smp_num_reg) begin
cnt_smp_num <= cnt_smp_num +1;
buffer_ready <= 1;
if (!out_of_range_reg) begin
// if (!out_of_range_reg) begin
buffer <= {buffer[DATA_WIDTH*(PACK_FACTOR-1)-1:0], data_converted};
if (cnt == PACK_FACTOR-1) begin
cnt <= 0;
buffer <= {buffer[DATA_WIDTH*(PACK_FACTOR-1)-1:0], data_converted};
end
else begin
cnt <= cnt + 1;
end
end
else begin
cnt <= cnt + 1;
end
// end
end else begin
cnt_smp_num <= '0;
buffer_ready <= 0;