From 3222919654c8a48456b2e4e514ffa35b95ecda0a Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Mon, 20 Sep 2021 17:42:41 +0200 Subject: [PATCH] Corrected integration_interval field value is index + 1. --- .../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 40e707c994..e190d901f2 100644 --- a/applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd +++ b/applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd @@ -137,7 +137,7 @@ ARCHITECTURE str OF sdp_statistics_offload IS integration_interval : NATURAL; END RECORD; - 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. + CONSTANT c_reg_rst : t_reg := (0, 0, '0', (OTHERS => '0'), (OTHERS => '0'), 0, '0', 0, 0); SIGNAL r : t_reg; SIGNAL nxt_r : t_reg; @@ -207,7 +207,7 @@ BEGIN -- Count number of sop's in a sync interval and get payload errors and keep them till next sync. IF in_sosi.sync = '1' THEN - v.integration_interval := r.interval_cnt; + v.integration_interval := r.interval_cnt + 1; -- count = index + 1 v.interval_cnt := 0; v.payload_err := '0'; ELSE -- GitLab