dev/design #8

Merged
baulin.fa merged 42 commits from dev/design into master 2026-05-15 16:43:19 +03:00
13 changed files with 1892 additions and 124 deletions
Showing only changes of commit 9b72dfb8d9 - Show all commits

View File

@ -83,7 +83,7 @@ module sampler
end
if (enable) begin
if (!out_of_range_reg) begin
if (cnt_smp_num != smp_num_reg-1) begin
if (cnt_smp_num != smp_num_reg) begin
buffer <= data_converted;
buffer_ready <= 1;
cnt_smp_num <= cnt_smp_num +1;
@ -122,7 +122,7 @@ module sampler
end
if (enable) begin
if (!out_of_range_reg) begin
if (cnt_smp_num != smp_num_reg-1) begin
if (cnt_smp_num != smp_num_reg) begin
cnt_smp_num <= cnt_smp_num +1;
buffer <= {buffer[DATA_WIDTH*(PACK_FACTOR-1)-1:0], data_converted};
if (cnt == PACK_FACTOR-1) begin