• Robert Schmidt's avatar
    L1 DLSCH: don't preallocate memory, improve log · 3fcfef90
    Robert Schmidt authored
    The L1 receives a pointer to the L1 payload to use for PDSCH generation.
    This would overwrite an existing pre-allocated pointer. Remove this
    preallocation. Instead, allocate it in the simulator (the only place
    that actively uses this buffer allocation; in nr-softmodem, it's lost by
    assigning a pointer). Allocate with an extra byte, because the payload
    (in bits) might not be a multiple of 8 bits/1 byte, so the CRC is in the
    last 3 bytes.
    
    Also, improve the log with frame/slot information if the PDSCH payload
    pointer is NULL.
    3fcfef90
nr_dlsch_coding.c 12.1 KB