From 183eaf40068acf309cabb0b2a72751c78cb8324c Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Wed, 6 Sep 2023 10:48:33 +0200
Subject: [PATCH] Use c_sync_timeout_xst for XST ring.

---
 applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd b/applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd
index 6eb6479310..f77bab6fcf 100644
--- a/applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd
+++ b/applications/lofar2/libraries/sdp/src/vhdl/sdp_station.vhd
@@ -435,6 +435,7 @@ architecture str of sdp_station is
   constant c_validate_channel          : boolean := true;
   constant c_validate_channel_mode     : string  := "=";
   constant c_sync_timeout              : natural := sel_a_b(g_sim, g_sim_sync_timeout, c_sdp_N_clk_sync_timeout);
+  constant c_sync_timeout_xst          : natural := sel_a_b(g_sim, g_sim_sync_timeout, c_sdp_N_clk_sync_timeout_xst);
 
   -- Use same Tx FIFO size for all lanes in the ring to ease the code, no need to optimize Tx FIFO RAM usage per lane.
   -- The tr_10GbE uses dp_fifo_fill_eop, so rely on releasing packets (beamlets, crosslets) at eop instead
@@ -1224,7 +1225,7 @@ begin
         g_bsn_at_sync_check_channel => c_bsn_at_sync_check_channel,
         g_validate_channel          => c_validate_channel,
         g_validate_channel_mode     => c_validate_channel_mode,
-        g_sync_timeout              => c_sync_timeout
+        g_sync_timeout              => c_sync_timeout_xst
       )
       port map (
         mm_rst => mm_rst,
-- 
GitLab