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

Add func_wpfb_map_real_input_wpfb_parameters_to_complex_input().

parent 45d9ce3b
No related branches found
No related tags found
1 merge request!289Rename c_sdp_W_fsub_wg into c_sdp_W_local_oscillator. Use...
......@@ -71,11 +71,13 @@ package wpfb_pkg is
end record;
-----------------------------------------------------------------------------
-- Map WPFB parameters to FIL parameter and to FFT parameters
-- Map WPFB parameters
-----------------------------------------------------------------------------
function func_wpfb_map_wpfb_parameters_to_fil_ppf(g_wpfb : t_wpfb) return t_fil_ppf;
function func_wpfb_map_wpfb_parameters_to_fft(g_wpfb : t_wpfb) return t_fft;
function func_wpfb_map_real_input_wpfb_parameters_to_complex_input(g_wpfb : t_wpfb) return t_wpfb;
-----------------------------------------------------------------------------
-- LOFAR2 subband filter
-----------------------------------------------------------------------------
......@@ -286,6 +288,16 @@ package body wpfb_pkg is
return c_fft;
end func_wpfb_map_wpfb_parameters_to_fft;
function func_wpfb_map_real_input_wpfb_parameters_to_complex_input(g_wpfb : t_wpfb) return t_wpfb is
variable v_wpfb : t_wpfb := g_wpfb;
begin
v_wpfb.nof_wb_streams := c_nof_complex * v_wpfb.nof_wb_streams;
v_wpfb.use_separate := false;
return v_wpfb;
end func_wpfb_map_real_input_wpfb_parameters_to_complex_input;
function func_wpfb_subband_scale_w(wpfb : t_wpfb) return natural is
begin
return wpfb.fft_out_dat_w + wpfb.fft_out_gain_w - (wpfb.fil_in_dat_w + wpfb.fil_backoff_w);
......
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