Crc32 ===== 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. Detail configuration: --------------------- Crc32 ^^^^^ ================= ================ ================== =================== ================ ============= Initial value Reverse input Reverse output Polynomial size Coefficients Xor value ----------------- ---------------- ------------------ ------------------- ---------------- ------------- 0XFFFFFFFF byte byte 32 bits 0X4C11DB7 0XFFFFFFFF ================= ================ ================== =================== ================ ============= Crc32/itu ^^^^^^^^^ ================= ================ ================== =================== ================ ============= Initial value Reverse input Reverse output Polynomial size Coefficients Xor value ----------------- ---------------- ------------------ ------------------- ---------------- ------------- 0XFFFFFFFF no no 32 bits 0X4C11DB7 0 ================= ================ ================== =================== ================ ============= Test result: ------------ If the output result is same as the result calculated by software according to the theory, then print \"pass\", or print \"fail\". IO connection: -------------- None