Module crc_test

Source
Expand description

Test that CRC is working properly.

To test, add the following line to the imix boot sequence:

    test::crc_test::run_crc();

You should see the following output:

    CRC32: 0xcbf43926
    CRC32C: 0xe3069283
    CRC16CITT: 0x89f6

These results are for computing the CRC over the string “123456789” (not including the quotes). The result values were taken from https://reveng.sourceforge.io/crc-catalogue/17plus.htm

Functions§

run_crc
static_init_crc 🔒