|
Message
From: Guy Hutchison<ghutchis@g...>
Date: Wed Sep 13 19:40:47 CEST 2006
Subject: [oc] Ethernet crc32 VHDL anyone?
I have used this code in the past to generate CRCs in software: uint32_t crc32 (uint8_t const *p, uint16_t len) { uint32_t crc = ~0;
int i; while (len--) { crc ^= *p++; for (i = 0; i < 8; i++) crc = (crc >> 1) ^ ((crc & 1) ? 0xEDB88320 : 0); } return crc; }
- Guy
On 9/13/06, attachment.htm
|
 |