From 1d241d54b44a3df29b4c1e7c026fc32a4346c03c Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Fri, 26 Nov 2021 11:02:03 +0100 Subject: [PATCH] Use g_sim_sdp : t_sdp_sim := c_sdp_sim to overrule default SDP HW parameters in simulation. --- .../lofar2/libraries/sdp/src/vhdl/sdp_station.vhd | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd b/applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd index a0d6261300..8ba6b29573 100644 --- a/applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd +++ b/applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd @@ -44,7 +44,8 @@ USE eth_lib.eth_pkg.ALL; ENTITY sdp_station IS GENERIC ( g_technology : NATURAL := c_tech_arria10_e1sg; - g_sim : BOOLEAN := FALSE; --Overridden by TB + g_sim : BOOLEAN := FALSE; -- Overridden by TB + g_sim_sdp : t_sdp_sim := c_sdp_sim; -- Used when g_sim = TRUE, otherwise use HW defaults g_wpfb : t_wpfb := c_sdp_wpfb_subbands; g_bsn_nof_clk_per_sync : NATURAL := c_sdp_N_clk_per_sync; -- Default 200M, overide for short simulation g_scope_selected_subband : NATURAL := 0; @@ -459,6 +460,7 @@ BEGIN u_fsub : ENTITY work.node_sdp_filterbank GENERIC MAP( g_sim => g_sim, + g_sim_sdp => g_sim_sdp, g_wpfb => g_wpfb, g_scope_selected_subband => g_scope_selected_subband ) @@ -508,8 +510,9 @@ BEGIN gen_use_xsub : IF g_use_xsub GENERATE u_xsub : ENTITY work.node_sdp_correlator GENERIC MAP( - g_sim => g_sim, - g_P_sq => g_P_sq + g_sim => g_sim, + g_sim_sdp => g_sim_sdp, + g_P_sq => g_P_sq ) PORT MAP( dp_clk => dp_clk, @@ -554,7 +557,8 @@ BEGIN u_bf : ENTITY work.node_sdp_beamformer GENERIC MAP( g_sim => g_sim, - g_beamset_id => beamset_id, + g_sim_sdp => g_sim_sdp, + g_beamset_id => beamset_id, g_scope_selected_beamlet => g_scope_selected_subband ) PORT MAP( -- GitLab