Block Category: Fixed Point
Inputs:
• enable: Must be 1 in order for the block to read newVal and apply it to existing CRC value.
• reset: If it goes to 1, the internal CRC value is 0.
• newVal: New value to be applied to the internal CRC value.
Description: The crc16 block performs a cyclic redundancy check (CRC) on the data and compares the resulting checksum with the appended checksum. The CRC block lets you select the CRC method and whether the results is available via an output connector pin.
CRC Output Pin: Adds an output connector pin that yields the CRC results.
CRC Type: Indicates the CRC method. These method are described here. When you select a CRC type, the Initial CRC Value, Output XOR Value, Polynomial, and Shift Dir parameters are updated accordingly with default values. If you activate Use Custom Params, you can override these default values with user-specified values.
Initial CRC Value (hex): Indicates the initial 16-bit CRC value.
Output XOR Value: Indicates an XOR value that the algorithm applies at the end of the operation.
Polynomial: Indicates polynomial word.
Shift Dir: Shifts eight bits to the left or right.
Unit: Each unit maintains an internal CRC buffer. If you need multiple concurrent CRC streams, make sure each one has a unique unit number.