Utils#

calculate_tb_size(modulation_order, ...[, ...])

Calculates the transport block (TB) size for given system parameters.

generate_prng_seq(length, c_init)

Implements pseudo-random sequence generator as defined in Sec.

decode_mcs_index(mcs_index[, table_index, ...])

Returns the modulation order and target coderate for a given MCS index.

calculate_num_coded_bits(modulation_order, ...)

Computes the coded-bit budget used as the TBS intermediate in TS 38.214 Sec.

calculate_codeword_bits(modulation_order, ...)

Computes the uncapped rate-matching codeword bit budget \(G\).

TransportBlockNR(*args[, precision, device])

Computes the number and size (measured in number of bits) of code blocks within a 5G-NR compliant transport block, given the modulation order, coderate and the total number of coded bits of a transport block.

CodedAWGNChannelNR([num_bits_per_symbol, ...])

Simulates a 5G-NR compliant single-link coded AWGN channel.

MCSDecoderNR(*args[, precision, device])

Maps a Modulation and Coding Scheme (MCS) index to the corresponding modulation order, i.e., number of bits per symbol, and coderate for 5G-NR networks.