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 40e707c99407258a0630c845088ce8b4cdf86f64..e190d901f21e8bb499875a41aeb1e2399061735d 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