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.
ENDIF;
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.
ELSIFdone='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.