fix(nrLDPC_coding): timers in DL encoding, fix(ldpctest): Confusion in sizes
Main improvements:
-
fix(ldpctest): Confusion in sizes
IMPORTANT: This fix makes thatldpctestnow works with BG2 andK' != K!
(Worth double checking with more cases than I did check with though)
The variableblock_lengthhad an ambiguous role and was used as bothKandKprime.
This was leading to arrays with wrong sizes and functions with wrong arguments.
Now there is not anymore block_length butKandKprime.
Kprimecan be set with the command line argument-l.
There was also some problems with array allocation for segments with length not divisible by 8.
A proper sizing with((size_in_bits + 7) & ~7) / 8was used.
A proper masking of the last byte containing payload bits was also added to keep filler bits to 0 after random initialization. -
fix(nrLDPC_coding): timers in DL encoding
While timers were available for rate matching and interleaving in the new interface,
these timers were not merged to rate matching and interleaving timers innr_dlsch_coding.