Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
583cfe5d
Commit
583cfe5d
authored
8 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Corrected v_index and out_channel for flipped complex data when wb_factor>1 and nof_chan > 0
parent
cecb7e78
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/dsp/fft/tb/vhdl/tb_fft_pkg.vhd
+4
-3
4 additions, 3 deletions
libraries/dsp/fft/tb/vhdl/tb_fft_pkg.vhd
with
4 additions
and
3 deletions
libraries/dsp/fft/tb/vhdl/tb_fft_pkg.vhd
+
4
−
3
View file @
583cfe5d
...
@@ -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
sample
s
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment