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 fe11feeeb7a37c7fecd7761e744e89e0556dc073..27d6bd5abe8a732639e051651f391361e822fdeb 100644 --- a/applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd +++ b/applications/lofar2/libraries/sdp/src/vhdl/sdp_statistics_offload.vhd @@ -247,7 +247,7 @@ BEGIN IF g_statistics_type = "XST" AND TO_UINT(nof_crosslets) = 1 THEN v.block_count := c_sdp_N_crosslets_max; -- Instead of setting v.block_count to 0 we need to set it to N_crosslets_max = 7 to prevent another block to stream out. END IF; - v.crosslet_count := 0; + v.crosslet_count := 1; v.nof_crosslets := TO_UINT(nof_crosslets); -- register nof_crosslets to make sure it does not change during packet output. ELSIF done = '1' THEN -- Use done to start next packets @@ -265,7 +265,7 @@ BEGIN v.crosslet_count := r.crosslet_count + 1; ELSE v.crosslet_count := 0; - v.block_count := r.block_count + 1 + c_sdp_N_crosslets_max - r.nof_crosslets; -- skip block indices for unused XST blocks. + v.block_count := r.block_count + 1 + c_sdp_N_crosslets_max - r.nof_crosslets; -- skip block indices for unused XST blocks. END IF; END IF;