Skip to content
Snippets Groups Projects
Commit 583cfe5d authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Corrected v_index and out_channel for flipped complex data when wb_factor>1 and nof_chan > 0

parent cecb7e78
No related branches found
No related tags found
No related merge requests found
...@@ -427,10 +427,11 @@ PACKAGE BODY tb_fft_pkg IS ...@@ -427,10 +427,11 @@ PACKAGE BODY tb_fft_pkg IS
end if; end if;
else else
-- Complex input data -- Complex input data
v_blk_index := out_val_cnt / nof_points / nof_channels; -- each block has nof_channels*nof_points v_blk_index := out_val_cnt / nof_points / nof_channels; -- each block has nof_channels*nof_points
out_channel <= out_val_cnt mod nof_channels; -- the nof_channels are interleaved per sample out_channel <= (out_val_cnt / wb_factor) mod nof_channels; -- the nof_channels are interleaved per wb_factor number of samples
v_index := (out_val_cnt / nof_channels) mod nof_points; -- index within a block independent of nof_channels v_index := ((out_val_cnt / wb_factor / nof_channels) * wb_factor +
(out_val_cnt MOD wb_factor)) mod nof_points; -- index within a block independent of nof_channels
v_bin := fft_index_to_bin_frequency(wb_factor, nof_points, v_index, use_reorder, use_fft_shift, use_separate); v_bin := fft_index_to_bin_frequency(wb_factor, nof_points, v_index, use_reorder, use_fft_shift, use_separate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment