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 > Usb > Message List > Message Post

    Message

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

    From: Bo <bo_ye@y...>
    Date: Fri, 22 Feb 2002 10:35:05 -0800 (PST)
    Subject: Re: [usb] crc algorithm
    Top

    All right, here you go ...
    You can change the INPUT_LENGTH
    to any number you like. The datain is pure random 
    input to simulate the real wold application, 
    you should always get the same CRC result, 
    which is 5'b01100 for USB 5-bit CRC.
    You can also check the other different CRC using
    this testbench, just replace the poly part, not
    my name :)
    
    Have fun, and let me know if you have question.
    
    
    regards
    bo
    
    
    --- RE Tambunan <kebloo@m...> wrote:
    > Hello Bo...
    > 
    > On 21 Feb 2002 at 17:55, Bo wrote:
    > 
    > > Hi Tambuna,
    > > 	Thanks for your example.
    > Your welcome...
    > 
    > > 	It calculates one byte at a time
    > > instead of one bit. That can be used for
    > > hardward acceleration. Actually, there are
    > > several ways to do it, depends on how you
    > > compare your result to check weather the CRC check
    > > sum is correct or not.
    > You're right :-)... that's the purpose of
    > discussion...
    > 
    > > 	Did you try your code with different
    > > input (using random input), and come out the
    > > same result?
    > I've checked it only with examples from the
    > whitepaper
    > because it will give me reference results. Do you
    > have
    > any specific examples?..
    > 
    > > 	If you like I can write a small verilog
    > > code for you.
    > Yes... I'd like that ... besides... it will benefit
    > the other,
    > doesn't it ?...
    > 
    > > 
    > > regards
    > > bo
    > > 
    > Best regard,
    > 
    > 
    > 
    > RE Tambunan
    > 
    
    
    

    tb.v

    ReferenceAuthor
    Re: [usb] crc algorithmRE Tambunan

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