Communications Blockset | ![]() ![]() |
CRC Coding Features of the Blockset
The CRC library contains four blocks that implement the CRC algorithm:
The General CRC Generator block computes a checksum for each input frame, appends it to the message word, and transmits the result. The General CRC Syndrome Detector receives a transmitted word and removes the appended checksum. The block then calculates a new checksum, and compares the received checksum with the new checksum. The block has two outputs. The first is the message word without the received checksum. The second output is a boolean error flag, which is 0 if the received checksum agrees with the new checksum, and a 1 otherwise.
The CRC-N Generator block and CRC-N Syndrome Detector block are special cases of the General CRC Generator block and General CRC Syndrome Detector block, which use a predefined CRC-N polynomial, where N is the number of bits in the checksum.
![]() | Accessing CRC Blocks | CRC Algorithm | ![]() |