Merge remote-tracking branch 'origin/fix_numIter' into integration_2025_w11 (!3296)
fix(nrLDPC_decoder): fix numIter increment 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. Post-Scriptum: After a first review, we decided to make the counter more standard from a C code perspective. The counter now counts from 0 to numMaxIter minus 1. If it reaches numMaxIter, it means that decoding was unsuccessful.
Showing
Please register or sign in to comment