Email: bknpk@hotmail.com Phone: +972-54-7649119
V

 

ASIC/FPGA Design and Verification Out Source Services

FCS SystemC code for calculating CRC for ETHERNET.

  1. The following calculates the CRC (FCS) for ETHERNET.
  2. The package includes the following systemC parts:.
    main to run and record VCD waves
    test bench to connect all modules
    generator to drive stimuli to the DUT
    DUT to calculate CRC


  3. Currently no fancy packet reading from file. Just edit the c-source code. The program knows to calculate the packet length.
  4. look for this code in example:
    unsigned int example_packet[] = {
      0x00, 0x10, 0xA4, 0x7B, 0xEA, 0x80, 0x00, 0x12, 0x34, 0x56, 0x78, 0x90,
      0x08, 0x00, 0x45, 0x00, 0x00, 0x2E, 0xB3, 0xFE, 0x00, 0x00, 0x80, 0x11,
      0x05, 0x40, 0xC0, 0xA8, 0x00, 0x2C, 0xC0, 0xA8, 0x00, 0x04, 0x04, 0x00,
      0x04, 0x00, 0x00, 0x1A, 0x2D, 0xE8, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05,
      0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11
      //0xE6, 0xC5, 0x3D, 0xB2
    };
  5. The following wave show that the result is valid one cycle after the negation of the data enable.
  6. The code is in the download area. Look for the file sysCcrc_eth.tar.gz.

Contact me now at:

  ...


I would be happy to offer my services. Call ASAP !


Home

My First sysremC program

FCS c code for calculating CRC for ETHERNET


my first example with systemc verification



E1 CRC-4 PCM30C

Download Area






Search This Site


Feedback This Site




new pages on this site