comnum.NrHarqProcess#

class comnum.NrHarqProcess(tb)#

The soft buffers of a HARQ process of a transport block: the LLRs of every transmission combined on the bits of the full codewords.

Parameters:

tb (NrTransportBlock) – the transport block.

Raises:

ValueError – if the code cannot be built.

add(tb, llr, qm, layers=1, rv=0)#

Add the LLRs of one transmission (positive for a 0, descrambled).

Parameters:
  • tb (NrTransportBlock) – the transport block.

  • llr (array_like) – the g LLRs.

  • qm (int) – the bits per symbol.

  • layers (int) – the layers.

  • rv (int) – the redundancy version of the transmission.

Raises:

ValueError – for an invalid length.

decode(tb)#

Decode the buffers.

Parameters:

tb (NrTransportBlock) – the transport block.

Returns:

the transport block when its CRCs pass, None otherwise.

Return type:

numpy.ndarray | None

Raises:

ValueError – if the decoder fails.

transmissions#

The transmissions combined so far.

Type:

int