2

After reading a lot I came to know that there is no SINGLE method of calculating CRC. I need method/algorithm/VHDL code for calculating CRC specifically for Serial ATA (SATA)

  • You are right. There is not a single algorithm. Why don't you choose one and implement it? (You certainly don't expect us to do it for you?) – Aki Suihkonen Mar 17 '13 at 08:35
  • 1
    @AkiSuihkonen: SATA mandates a specific algorithm. OP can't choose their own and expect it to interoperate with existing hardware. – NPE Mar 17 '13 at 08:36
  • It still sounds like "type it for me in google" kind of non-question. Not productive. – Aki Suihkonen Mar 17 '13 at 08:38

2 Answers2

4

SATA uses IEEE 802.3 CRC. Here are some relevant resources:

NPE
  • 486,780
  • 108
  • 951
  • 1,012
3

Here is a complete description of that CRC, including the bit ordering and pre and post processing.

Mark Adler
  • 101,978
  • 13
  • 118
  • 158