u/horus_z121in r/FPGA • Recommends
Calculating CRC32 on hardware with Verilog
Hi guys,
I'm trying to calculate CRC32 to transmit UDP packets on the local network.I watched the example of CRC16-XMODEM from Ben Eater, [video and it actually works very well on my code and on the calculation tool https://www.lddgo.net/en/encrypt/crc
However, with CRC32, I received the wrong result!
The bellow is my idea, I translated the string "Hello!" from ASC-II to binary, then I received 48 bits of data. After that, I appended 32 bits 32'hFF\_FF\_FF\_FF to this data then shifted them through a 32 bits register with XOR operations at the positions of the polynomial: x32+x26+x23+x22+x16+x12+x11+x10+x8+x7+x5+x4+x2+x+1
or 04C11DB7 in hex.…