From 64f68a28f80aaa4c420854721157d805823d11bf Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Thu, 12 May 2022 08:13:27 +0200
Subject: [PATCH] Enable BST offload. Select last g_beamlet, to check that it
 is covered.

---
 .../tb_tb_lofar2_unb2c_sdp_station_bf.vhd                       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_tb_lofar2_unb2c_sdp_station_bf.vhd b/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_tb_lofar2_unb2c_sdp_station_bf.vhd
index 3c601579d3..09fb02fc46 100644
--- a/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_tb_lofar2_unb2c_sdp_station_bf.vhd
+++ b/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_tb_lofar2_unb2c_sdp_station_bf.vhd
@@ -48,7 +48,7 @@ BEGIN
     g_sp_remnant_ampl    => 0.1,           -- WG normalized amplitude for remnant sp
     g_sp_remnant_phase   => 15.0,          -- WG phase in degrees for remnant sp
     g_subband            => 102,           -- select g_subband at index 102 = 102/1024 * 200MHz = 19.921875 MHz
-    g_beamlet            => 10,            -- map g_subband to g_beamlet index in beamset in range(c_sdp_S_sub_bf = 488)
+    g_beamlet            => c_sdp_S_sub_bf-1,  -- map g_subband to g_beamlet index in beamset in range(c_sdp_S_sub_bf = 488)
     g_beamlet_scale      => 1.0 / 2.0**9,  -- g_beamlet output scale factor
     g_bf_x_gain          => 0.7,           -- g_beamlet X BF weight normalized gain for g_sp
     g_bf_y_gain          => 0.6,           -- g_beamlet Y BF weight normalized gain for g_sp
-- 
GitLab