1 / 18

Example CRC Calculation

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

clyde
Download Presentation

Example CRC Calculation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2.  Note the effect of the XOR gate on bits 0 and 5

  3. Results: CRC for ‘Hi’ = 00101001 = 29h CRC for ‘jK’ = 11101101 = EDh

More Related