• Romain Beurdouche's avatar
    fix(nrLDPC_decoder): fix numIter increment · b6bedf12
    Romain Beurdouche authored
    The logs of `./nr_ulsim -n100 -m19 -s12 -S12 -z2 -L4` were showing that sometimes the decoding of one segment was failing while the CRC check succeeded.
    This was happening because the iteration counter `numIter` was not properly managed so that when the last iteration was successful to decode the segment
    still `numIter` at the exit was equal to `numMaxIter` plus 1 so that decoding was considered to have failed.
    In other words the last iteration if it occured was always wasted.
    
    This commit offers to solve this problem by simply moving the iteration counter increment at the end of the iteration loop
    while remaining careful at fixing the tests relying on this counter.
    b6bedf12
nrLDPC_decoder.c 30.8 KB