From 995b6a0e0423084649066f3f74fe4cf6550d8542 Mon Sep 17 00:00:00 2001
From: Reinier van der Walle <walle@astron.nl>
Date: Fri, 17 Sep 2021 14:48:47 +0200
Subject: [PATCH] set reset value of interval counter to 1 instead of 0 as it
 is a total counter and not an index counter

---
 .../lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd b/applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd
index 7e465cae37..40e707c994 100644
--- a/applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd
+++ b/applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd
@@ -134,10 +134,10 @@ ARCHITECTURE str OF sdp_statistics_offload IS
     nof_cycles_dly       : NATURAL;
     payload_err          : STD_LOGIC;
     interval_cnt         : NATURAL;
-    integration_interval : NATURAL;
+    integration_interval : NATURAL; 
   END RECORD;
 
-  CONSTANT c_reg_rst : t_reg := (0, 0, '0', (OTHERS => '0'), (OTHERS => '0'), 0, '0', 0, 0);
+  CONSTANT c_reg_rst : t_reg := (0, 0, '0', (OTHERS => '0'), (OTHERS => '0'), 0, '0', 0, 1); -- integration interval should start at 1 as it is a total count and not an index count.
 
   SIGNAL r     : t_reg;
   SIGNAL nxt_r : t_reg;
-- 
GitLab