Skip to content
Snippets Groups Projects
Commit 32229196 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Corrected integration_interval field value is index + 1.

parent bf8d76ed
No related branches found
No related tags found
2 merge requests!148L2SDP-495,!146Prepared dp_bsn_align_v2.vhd (still empty) and mmp_, tb_ and tb_mmp_ files,...
...@@ -137,7 +137,7 @@ ARCHITECTURE str OF sdp_statistics_offload IS ...@@ -137,7 +137,7 @@ ARCHITECTURE str OF sdp_statistics_offload IS
integration_interval : NATURAL; integration_interval : NATURAL;
END RECORD; 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 r : t_reg;
SIGNAL nxt_r : t_reg; SIGNAL nxt_r : t_reg;
...@@ -207,7 +207,7 @@ BEGIN ...@@ -207,7 +207,7 @@ BEGIN
-- Count number of sop's in a sync interval and get payload errors and keep them till next sync. -- 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 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.interval_cnt := 0;
v.payload_err := '0'; v.payload_err := '0';
ELSE ELSE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment