2. Crc32

2.1. Function description:

This demo shows the calculation of 32 bits CRC.

Configure the size of the polynomial is 32 bits for CRC32 calculation.

  • Configure the CRC32.

  • Write data to CRC calculator to start hardware calculation.

  • Calculate the result of the CRC32 by software, then to compare with the hardware.

2.2. Detail configuration:

2.2.1. Crc32

Initial value

Reverse input

Reverse output

Polynomial size

Coefficients

Xor value

0XFFFFFFFF

byte

byte

32 bits

0X4C11DB7

0XFFFFFFFF

2.2.2. Crc32/itu

Initial value

Reverse input

Reverse output

Polynomial size

Coefficients

Xor value

0XFFFFFFFF

no

no

32 bits

0X4C11DB7

0

2.3. Test result:

If the output result is same as the result calculated by software according to the theory, then print "pass", or print "fail".

2.4. IO connection:

None