upd:
fast fix of sampler OTR. fix debug.xdc Major add of full automated testing for TB.
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user