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
384b8a8a
Commit
384b8a8a
authored
8 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Pass on g_fft.use_fft_shift and verify it for pipelined FFT.
parent
634f0e99
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/dsp/fft/src/vhdl/fft_r2_pipe.vhd
+1
-0
1 addition, 0 deletions
libraries/dsp/fft/src/vhdl/fft_r2_pipe.vhd
libraries/dsp/fft/tb/vhdl/tb_tb_fft_r2_pipe.vhd
+15
-11
15 additions, 11 deletions
libraries/dsp/fft/tb/vhdl/tb_tb_fft_r2_pipe.vhd
with
16 additions
and
11 deletions
libraries/dsp/fft/src/vhdl/fft_r2_pipe.vhd
+
1
−
0
View file @
384b8a8a
...
...
@@ -139,6 +139,7 @@ begin
u_reorder_sep
:
entity
work
.
fft_reorder_sepa_pipe
generic
map
(
g_bit_flip
=>
g_fft
.
use_reorder
,
g_fft_shift
=>
g_fft
.
use_fft_shift
,
g_separate
=>
g_fft
.
use_separate
,
g_nof_points
=>
g_fft
.
nof_points
,
g_nof_chan
=>
g_fft
.
nof_chan
...
...
This diff is collapsed.
Click to expand it.
libraries/dsp/fft/tb/vhdl/tb_tb_fft_r2_pipe.vhd
+
15
−
11
View file @
384b8a8a
...
...
@@ -41,12 +41,14 @@ ARCHITECTURE tb OF tb_tb_fft_r2_pipe IS
CONSTANT
c_pipeline
:
t_fft_pipeline
:
=
(
1
,
1
,
3
,
1
,
1
,
0
,
0
,
1
);
CONSTANT
c_fft_two_real
:
t_fft
:
=
(
true
,
false
,
true
,
0
,
1
,
0
,
128
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_two_real_more_channels
:
t_fft
:
=
(
true
,
false
,
true
,
1
,
1
,
0
,
128
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex
:
t_fft
:
=
(
true
,
false
,
false
,
0
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex_more_channels
:
t_fft
:
=
(
true
,
false
,
false
,
1
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex_flipped
:
t_fft
:
=
(
false
,
false
,
false
,
0
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex_flipped_more_channels
:
t_fft
:
=
(
false
,
false
,
false
,
1
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_two_real
:
t_fft
:
=
(
true
,
false
,
true
,
0
,
1
,
0
,
128
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_two_real_more_channels
:
t_fft
:
=
(
true
,
false
,
true
,
1
,
1
,
0
,
128
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex
:
t_fft
:
=
(
true
,
false
,
false
,
0
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex_more_channels
:
t_fft
:
=
(
true
,
false
,
false
,
1
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex_fft_shift
:
t_fft
:
=
(
true
,
true
,
false
,
0
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex_fft_shift_more_channels
:
t_fft
:
=
(
true
,
true
,
false
,
1
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex_flipped
:
t_fft
:
=
(
false
,
false
,
false
,
0
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_fft_complex_flipped_more_channels
:
t_fft
:
=
(
false
,
false
,
false
,
1
,
1
,
0
,
64
,
8
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
);
CONSTANT
c_diff_margin
:
natural
:
=
2
;
...
...
@@ -122,9 +124,11 @@ BEGIN
u_rnd_two_real_channels
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_two_real_more_channels
,
c_diff_margin
,
c_noise
,
1280
,
c_dc_agwn
,
1280
,
c_unused
,
0
,
1280
,
TRUE
);
-- Complex input data
u_act_complex_chirp
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
12800
,
FALSE
);
u_act_complex_channels
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex_more_channels
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
1280
,
FALSE
);
u_act_flipped_complex
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex_flipped
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
1280
,
FALSE
);
u_act_flipped_complex_channels
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex_flipped_more_channels
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
1280
,
FALSE
);
u_rnd_complex_noise
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_noise_complex
,
640
,
640
,
TRUE
);
u_act_complex_chirp
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
12800
,
FALSE
);
u_act_complex_channels
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex_more_channels
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
1280
,
FALSE
);
u_act_complex_fft_shift_chirp
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex_fft_shift
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
12800
,
FALSE
);
u_act_complex_fft_shift_channels
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex_fft_shift_more_channels
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
1280
,
FALSE
);
u_act_complex_flipped
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex_flipped
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
1280
,
FALSE
);
u_act_complex_flipped_channels
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex_flipped_more_channels
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_phasor_chirp
,
12800
,
1280
,
FALSE
);
u_rnd_complex_noise
:
ENTITY
work
.
tb_fft_r2_pipe
GENERIC
MAP
(
c_pipeline
,
c_fft_complex
,
c_diff_margin
,
c_unused
,
0
,
c_unused
,
0
,
c_noise_complex
,
640
,
640
,
TRUE
);
END
tb
;
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