Altera_Forum
Honored Contributor
16 years agoCRC Compiler - IP Packet checksum
Hi
I am trying to parse IP Ethernet packet in FPGA and planning to use CRC compiler to generate checksum for IP packet header and ethernet packet. If I use option CRC code as CRC-32 works fine with Ethernet packet checksum - Ethernet packet checksum is 32 bits I am not able to understand how to calculating 16 bit checksum for IP header. What to use CRC-16-ANSI or CRC-16-CCITT. I tried every option but looks like it is calculating some thing other then expected. It would be great if some one can enlighten me with whats the difference between ANSI and CCITT and what options do I need to use for generating checksum for IP header. Thanks