LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cores > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Guy Hutchison<ghutchis@g...>
    Date: Wed Sep 13 19:40:47 CEST 2006
    Subject: [oc] Ethernet crc32 VHDL anyone?
    Top
    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

    ReferenceAuthor
    [oc] Ethernet crc32 VHDL anyone?Toto

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.