Hi, I'm a student, I want calculate the CRC of a standard bitstream (Spartan II) Xilinx in C. I read xilinx's document( specially xapp176) and i'm applied the CRC algorithm at stream of 36 bit:
address register 4bit data stream 32 bit.
Example i apply the CRC algorithm at:
Write the CMD Register: RCRC
address=4 data stream=0x00000007
Write the FLR Register: D
address=11 data stream=0x0000000d
Write the COR Register: Configuration options
address=9 data stream=0xXXXXXXXX
Write the MASK Register: CTL MASK
address=6 data stream=0x00000000
Write the CMD Register: SWITCH
address=4 data stream=0x00000009
Write the FAR Register: Frame address
address=0 data stream=0x00000000
Write the CMD Register: WCFG
address=4 data stream=0x00000001
cycle of 22544 time Write the FDRI Register: DATA
address=2 data stream=0xXXXXXXXX
Write the FAR Register: Frame address
address=0 data stream=0x02000000
cycle of 910 time
Write the FDRI Register: DATA
address=2 data stream=0xXXXXXXXX
Write the FAR Register: Frame address
address=0 data stream=0x02020000
cycle of 896 time
Write the FDRI Register: DATA
address=2 data stream=0xXXXXXXXX
Now there is a write to CRC, I calculate a CRC value but is different of ISE value. I continue with other comand,i calculate the second CRR,so this is different.
I make some error?
Any idea to risolve my problems?
Thanks.
Francesco