ASIC/FPGA  Design and Verification Out Source Services 
                            FCS SystemC code for calculating CRC for ETHERNET.  
                            
                              - The following calculates the CRC (FCS) for ETHERNET.
 
                              - 
			      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
			      
 
                              - Currently no fancy packet reading from file. Just edit the c-source code. The program knows to calculate the packet length.
 
                              - 
			      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
  };
			      
 
			      - The following wave show that the result is valid one cycle after the negation of the data enable.
 
			      - The code is in the download area. Look for the file sysCcrc_eth.tar.gz.
  
                             
                           Contact me now at: |