Skip to content
GitLab
Explore
Sign in
Register
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
85100936
Commit
85100936
authored
9 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Added generic for bypassing the prefilter.
parent
da7ba450
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/dsp/wpfb/src/vhdl/wpfb_unit.vhd
+174
-166
174 additions, 166 deletions
libraries/dsp/wpfb/src/vhdl/wpfb_unit.vhd
with
174 additions
and
166 deletions
libraries/dsp/wpfb/src/vhdl/wpfb_unit.vhd
+
174
−
166
View file @
85100936
...
@@ -63,6 +63,7 @@ use work.wpfb_pkg.all;
...
@@ -63,6 +63,7 @@ use work.wpfb_pkg.all;
entity
wpfb_unit
is
entity
wpfb_unit
is
generic
(
generic
(
g_wpfb
:
t_wpfb
:
=
c_wpfb
;
g_wpfb
:
t_wpfb
:
=
c_wpfb
;
g_use_prefilter
:
boolean
:
=
TRUE
;
g_stats_ena
:
boolean
:
=
TRUE
;
-- Enables the statistics unit
g_stats_ena
:
boolean
:
=
TRUE
;
-- Enables the statistics unit
g_use_bg
:
boolean
:
=
FALSE
;
g_use_bg
:
boolean
:
=
FALSE
;
g_file_index_arr
:
t_nat_natural_arr
:
=
array_init
(
0
,
128
,
1
);
g_file_index_arr
:
t_nat_natural_arr
:
=
array_init
(
0
,
128
,
1
);
...
@@ -88,7 +89,7 @@ end entity wpfb_unit;
...
@@ -88,7 +89,7 @@ end entity wpfb_unit;
architecture
str
of
wpfb_unit
is
architecture
str
of
wpfb_unit
is
constant
c_nof_stats
:
natural
:
=
g_wpfb
.
nof_points
/
g_wpfb
.
wb_factor
;
constant
c_nof_stats
:
natural
:
=
2
**
g_wpfb
.
nof_chan
*
g_wpfb
.
nof_points
/
g_wpfb
.
wb_factor
;
constant
c_fil_ppf
:
t_fil_ppf
:
=
(
g_wpfb
.
wb_factor
,
constant
c_fil_ppf
:
t_fil_ppf
:
=
(
g_wpfb
.
wb_factor
,
g_wpfb
.
nof_chan
,
g_wpfb
.
nof_chan
,
...
@@ -235,6 +236,7 @@ begin
...
@@ -235,6 +236,7 @@ begin
---------------------------------------------------------------
---------------------------------------------------------------
-- THE POLY PHASE FILTER
-- THE POLY PHASE FILTER
---------------------------------------------------------------
---------------------------------------------------------------
gen_prefilter
:
IF
g_use_prefilter
=
TRUE
generate
u_filter
:
entity
filter_lib
.
fil_ppf_wide
u_filter
:
entity
filter_lib
.
fil_ppf_wide
generic
map
(
generic
map
(
g_fil_ppf
=>
c_fil_ppf
,
g_fil_ppf
=>
c_fil_ppf
,
...
@@ -254,9 +256,15 @@ begin
...
@@ -254,9 +256,15 @@ begin
out_dat_arr
=>
fil_out_arr
,
out_dat_arr
=>
fil_out_arr
,
out_val
=>
fil_out_val
out_val
=>
fil_out_val
);
);
end
generate
;
fft_in_val
<=
fil_out_val
;
-- Bypass filter
gen_no_prefilter
:
if
g_use_prefilter
=
FALSE
generate
fil_out_arr
<=
fil_in_arr
;
fil_out_val
<=
r
.
in_sosi_arr
(
0
)
.
valid
;
end
generate
;
fft_in_val
<=
fil_out_val
;
---------------------------------------------------------------
---------------------------------------------------------------
-- THE WIDEBAND FFT
-- THE WIDEBAND FFT
...
...
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