Engee documentation

CRC

CRC Calculation.

crc

Description

The CRC block calculates the Cyclic Redundancy Check (CRC, Cyclic Redundancy Check) for the input data block and returns a copy of the data block with the CRC parity bits added to it. CRC is an error detection code designed to detect errors in streaming data.

The block also initiates a CRC polynomial, which is defined by a value from the set of (6, 11, 16, 24A, 24B, 24C). The relevant polynomials are given in section 5.1 of TS 38.212.

Ports

Input

# IN_1 — transport unit
vector

Details

Transport block (code word).

Data types

Int8, Int64.

Complex numbers support

No

Output

# CRCEn — output data block with CRC
matrix

Details

Input data block with CRC parity bits added.

Data types

Int64.

Complex numbers support

No

# BGN — LDPC base chart selection
scalar

Details

Selects the LDPC base graph as a constant that can take the value 1 or 2.

Data types

Int64.

Complex numbers support

No

Parameters

PDSCH

# TargetCodeRate — code frequency
Real number

Details

The code frequency as a scalar.

Values must be in the range from 0 to 1024.

Default value

120

Program usage name

targetcoderate

Tunable

No

Evaluatable

Yes

References

  1. 3GPP TS 38.212. "NR; Multiplexing and channel coding." 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.

  2. Glossary: Standard 5G