nrCRCEncode
Calculate and append cyclic redundancy check (CRC)
Description
applies a logical difference (XOR) mask on the appended CRC bits with the integral value ofblkcrc
= nrCRCEncode(blk
,poly
,mask
)mask
. The appended CRC bits inblkcrc
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
xorm0
), (p1
xorm1
),…, (pL-1
xormL-1
), whereL
is the number of parity bits, andp0
andm0
are the MSBs in the binary representation of CRC andmask
, respectively. If the mask value is greater than 2L
- 1, theL
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.