Modulo 2 long division attempts

  • Thread starter fran1942
  • Start date
  • Tags Tags
    Division
3 replies · 3K views · last reply
fran1942
Messages
80
Reaction score
0
Hello, could someone please confirm if have done the modulo 2 division in order to find the CRC code word for these two correctly.

1) using the CRC polynominal 1011, for the information word 0101 1001
(attached image 1 is my attempt)

2) using the CRC polynominal 1101, for the information word 0100 1101
(attached image 2 is my attempt)

Thank you kindly for any confirmation.
 
Attachments
  • Handwritten CRC calculation for part 1a: I = 01011001, P = 1011, I shifted = 01011001000, modulo 2 long division giving quotient 01000001 remainder 011, and m = 01011001000 + 011 = 01011001011.
    problem1.jpg
    63.9 KB · Views: 476
  • Handwritten long division in modulo 2 on lined paper: I = 0100 1101, P = 1101, I shifted = 0100 1101000, quotient 01111100 with remainder 100, and the codeword M = 0100110100 0 + 100 = 01001101100.
    problem2.jpg
    53.1 KB · Views: 437
fran1942 said:
Hello, could someone please confirm if have done the modulo 2 division in order to find the CRC code word for these two correctly.

1) using the CRC polynominal 1011, for the information word 0101 1001
(attached image 1 is my attempt)

2) using the CRC polynominal 1101, for the information word 0100 1101
(attached image 2 is my attempt)

Thank you kindly for any confirmation.

You can check these by converting to decimal. For the first one, 1011001000 is 712, 1011 is 11. 712/11 is 64 remainder 8. You got 65 remainder 3. I'll give you a hint where you went wrong. 1000-1011 isn't 11. It's negative.
 
hello, thanks kindly for your help.
However, I just can't see what I have done wrong with that final operation on the first question.
I ended up with remainder 11 after I performed the XOR operation on 1000 and 1011.
How could I get another result. I thought the rule with modulo 2 division was to use XOR ?


Thanks for any clarification.
 
fran1942 said:
I thought the rule with modulo 2 division was to use XOR?
It is, and CRC's use the same type of math. Your answers look OK to me.