A method of generating a test data pattern for testing a CRC algorithm,
the CRC algorithm configured to generate CRC values based on a generator
polynomial, the method including identifying a desired pattern of
intermediate CRC values. The method includes generating a test data
pattern based on the desired pattern of intermediate CRC values and the
generator polynomial, wherein the test data pattern is configured to
cause the CRC algorithm to generate the desired pattern of intermediate
CRC values.