250 likes | 631 Views
Example CRC Calculation. As was previously shown, flipping the same bits in each byte of a message produces a checksum identical to that of the original message The following example demonstrates that a CRC calculation of those same messages produce a vastly different result
E N D
Example CRC Calculation • As was previously shown, flipping the same bits in each byte of a message produces a checksum identical to that of the original message • The following example demonstrates that a CRC calculation of those same messages produce a vastly different result • Original Message bits = ‘Hi’ = 4869h = 0100 1000 0110 1001 • Swapped Message bits = ‘jK’ = 6A4Bh = 0110 1010 0100 1011 *Note: An 8-bit CRC is used in this example for ease of calculation, however 16 and 32-bit CRCs are more useful *Note 2: The XOR gate is located after bit 4 for this example, but this is not always the case. 8-bit CRC hardware diagram
Results: CRC for ‘Hi’ = 00101001 = 29h CRC for ‘jK’ = 11101101 = EDh