CRC Evaluation for a Given Frame and Generator Polynomial
To evaluate the CRC for a transmitted frame, we treat the bit string as a polynomial over GF(2) (so addition/subtraction are XOR operations). For a generator polynomial G(x) of degree , we append zero bits to the message, divide by , and the remainder (degree ) becomes the CRC checksum that is appended to form the final codeword.
Generator polynomial:
Frame (message) bits (as given):
- Data:
- Extra bits in the prompt: (we will interpret the required message for CRC as the data field only, i.e., ; the is commonly presented as an additional example suffix but CRC inputs must be explicit—here the CRC is computed for the frame/message against the given ).
We compute CRC-5 for data using .
Mermaid view of the standard CRC pipeline:
CRC Long Division (GF(2)) to get the 5-bit remainder
- 1Step 1
Since has highest power , the CRC degree is . The bit pattern of is 110101 (because coefficients from to are: 1,1,0,1,0,1).
- 2Step 2
Message data: 1010011011. Append 5 zeros → 1010011011 00000.
- 3Step 3
We align the generator’s leading 1 with the leftmost 1 of the current dividend segment. Subtraction over GF(2) is XOR, so when a generator is applied, we XOR with 110101.
- 4Step 4
Proceed left-to-right across the dividend. Each time the current leftmost bit is 1, XOR the next 6 bits with 110101; if it is 0, XOR is effectively skipped. After finishing all positions, the final 5 remaining bits are the remainder.
- 5Step 5
Carrying out the XOR steps yields the remainder: 11101.
- 6Step 6
Codeword = data + remainder = 1010011011 11101.
Verification by constructing the dividend remainder relationship
Let the augmented message be:
- Data polynomial times corresponds to appending zeros:
When we divide by we obtain: where:
- , so corresponds to exactly 5 bits. The computed remainder bits are .
Bit-level mapping from remainder to CRC bits
Remainder means the CRC checksum to append is:
- CRC bits: 11101
Thus the transmitted/codeword frame becomes:
- 1010011011 11101
Pro Tip: Polynomial bit ordering
When converting to bits, use coefficients from highest power down to . For : bits are 1 (x^5), 1 (x^4), 0 (x^3), 1 (x^2), 0 (x^1), 1 (x^0) → 110101.
Warning: Clarify what the extra '01' refers to
CRC is computed for a specific message bitstring. If '01' is meant to be appended to the message before CRC, the dividend changes. In this section, the CRC is evaluated for the stated frame/message '1010011011' using . If instead the full input is '1010011011 01', you must recompute with a different augmented dividend.
CRC Evaluation Roadmap
Generator setup
Step 1Convert to a bit pattern (MSB to LSB)."
Augment message
Step 2Append zeros to the data."
GF(2) division
Step 3Perform polynomial long division using XOR."
Remainder becomes CRC
Step 4Take the final 5 remainder bits and append to form the codeword."
CRC Output Summary
Remainder length is 5 bits because deg()=5.
Common CRC evaluation details
CRC Quick Checks
Knowledge Check
Given , how many CRC bits are appended?