Skip to content
Snippets Groups Projects
Commit 85100936 authored by Pepping's avatar Pepping
Browse files

Added generic for bypassing the prefilter.

parent da7ba450
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment