From 23367badbae2cfc3dcbc534069e766a2ec5516fe Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Fri, 25 Mar 2022 16:39:18 +0100
Subject: [PATCH] Try reproduce XST offload subband index error in sim, using
 settings from HW.

---
 .../libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd b/applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd
index d3e8ea79f5..bfacace8b2 100644
--- a/applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd
+++ b/applications/lofar2/libraries/sdp/tb/vhdl/tb_sdp_statistics_offload.vhd
@@ -57,14 +57,14 @@ ENTITY tb_sdp_statistics_offload IS
     g_statistics_type          : STRING := "XST";
     g_offload_time             : NATURAL := 50;
     g_reverse_word_order       : BOOLEAN := TRUE;  -- when TRUE then stream LSB word after MSB word.
-    g_gn_index                 : NATURAL := 0;  -- global node (GN) index, must be in range(O_rn, O_rn + N_rn), use > 0 to see effect of g_offload_time
+    g_gn_index                 : NATURAL := 4;  -- global node (GN) index, must be in range(O_rn, O_rn + N_rn), use > 0 to see effect of g_offload_time
     -- BST
     g_beamset_id               : NATURAL := 0;  -- < c_sdp_N_beamsets
     -- XST
     g_O_rn                     : NATURAL := 0;  -- GN index of first ring node (RN)
     g_N_rn                     : NATURAL := 8;  -- <= c_sdp_N_rn_max = 16, number of nodes in ring
     g_P_sq                     : NATURAL := 9;  -- <= c_sdp_P_sq, nof available correlator cells
-    g_nof_crosslets            : NATURAL := 7;  -- <= c_sdp_N_crosslets_max
+    g_nof_crosslets            : NATURAL := 1;  -- <= c_sdp_N_crosslets_max
     g_crosslets_direction      : NATURAL := 1   -- > 0 for crosslet transport in positive direction (incrementing RN), else 0 for negative direction
   );
 END tb_sdp_statistics_offload;
-- 
GitLab