[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [usb] crc algorithm



Does anybody know what value we should
prefill for this CRC calculating?
For example, ATM 32-bit CRC should prefill
all 1's, but some HDLC, Ethernet stuff need
to prefill all 0's.
What's the reason for doing that?
Is it true Single String Feed Back need to 
prefill 0's?

regards
bo


--- Madhusudhan Rao <[email protected]>
wrote:
> HiTambunan,
>    G(x) = x^16+x^15+x^2+1 for  1000000000000101B.
>    G(x) = x^5+x^2+1 for  00101B.
> X^5 in the above expression will give u information
> as
> you are using 5 bit crc. otherwise we will not have
> any idea that how much crc polynomial length.
> I hope the above explanation is clear to u.
> If u still not clear i will send u an example code
> for
> crc aslo.
> 
> Best regards
> Madhu
> 
> --- [email protected] wrote:
> > Hello,
> > 
> > Sorry for this beginner question, but I wish some
> > one could
> > answer my curiosity...
> > 
> > USB 1.1 specification defines generator polynomial
> > of 5-bit crc 
> > as G(x) = x^5+x^2+1 and binary pattern that
> > represent it as
> > 00101B and 16-bit crc as G(x) = x^16+x^15+x^2+1
> and
> > binary pattern that represent it as
> > 1000000000000101B.
> > My question is why the binary pattern stated like
> > that and
> > not 100101B for 5-bit crc and 11000000000000101B ?
> > Thanks....
> > 
> > 
> > 
> > Best Regard,
> > 
> > 
> > RE Tambunan
> > --
> > To unsubscribe from usb mailing list please visit
> http://www.opencores.org/mailinglists.shtml
> 
> 
> =====
> MadhusudhanaRao.M
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> --
> To unsubscribe from usb mailing list please visit
http://www.opencores.org/mailinglists.shtml


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
--
To unsubscribe from usb mailing list please visit http://www.opencores.org/mailinglists.shtml