olo_base_pkg_crc¶
Status Information¶
VHDL Source: olo_base_pkg_crc
Description¶
This package contains utility definitions related to CRC not defined in IEEE packages but used by Open Logic internally or on its interfaces to the user. The package is written mainly for these purposes and does not aim for completeness - nevertheless as a user you are free to use it for your code of course.
Definitions¶
CRC Algorithm Constants¶
All CRC Algorithm Constants are of type CrcSettings_r, as defined in this package.
This package provides constants for all CRC algorithms listed on crccalc.com.
The table below lists some of the available CRC algorithms and their corresponding parameters.
| CRC Constant Name | CRC Standard | polynomial | initialValue | bitOrder | bitflipOutput | xorOutput |
|---|---|---|---|---|---|---|
| Crc8_DvbS2_c | CRC-8/DVB-S2 | 0xD5 | 0x00 | "MSB_FIRST" | false | 0x00 |
| Crc8_Autosar_c | CRC-8/AUTOSAR | 0x2F | 0xFF | "MSB_FIRST" | false | 0xFF |
| Crc8_Bluetooth_c | CRC-8/BLUETOOTH | 0xA7 | 0x00 | "LSB_FIRST" | true | 0x00 |
| Crc16_DectR_c | CRC-16/DECT-R | 0x0589 | 0x0000 | "MSB_FIRST" | false | 0x0001 |
| Crc16_DectX_c | CRC-16/DECT-X | 0x0589 | 0x0000 | "MSB_FIRST" | false | 0x0000 |
| Crc16_Dds110_c | CRC-16/DDS-110 | 0x8005 | 0x800D | "MSB_FIRST" | false | 0x0000 |
| Crc32_IsoHdlc_c | CRC-32/ISO-HDLC | 0x04C11DB7 | 0xFFFFFFFF | "LSB_FIRST" | true | 0xFFFFFFFF |
Functions¶
None