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.
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;
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.
v.nof_crosslets:=TO_UINT(nof_crosslets);-- register nof_crosslets to make sure it does not change during packet output.