nrCRCEncode
Calculate and append cyclic redundancy check (CRC)
Description
applies a logical difference (XOR) mask on the appended CRC bits with the integral value of
blkcrc = nrCRCEncode(blk,poly,mask)mask. The appended CRC bits in blkcrc are
XOR-masked with the most significant bit (MSB) first to the least significant bit (LSB)
last. The masked CRC is of the form (p0
xor m0),
(p1 xor
m1),…,
(pL-1 xor
mL-1), where
L is the number of parity bits, and
p0 and
m0 are the MSBs in the binary
representation of CRC and mask, respectively. If the mask value is
greater than 2L - 1, the
L LSBs are considered for the mask.
Examples
Input Arguments
Output Arguments
References
[1] 3GPP TS 38.212. “NR; Multiplexing and channel coding.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.