Modulo 2 Division _ Binary

Source: Internet
Author: User

About a binary number of 1111000 divided by 1101, modulo 2 Division quotient is 1011, the remainder is 111. This result is different from decimal division. So make a note of it. The specific steps are as follows:

#第一步 1111000 1101 0010000----remainder, quotient is 1, as long as the first not 0 quotient is 1 #第二步, each move one bit, when the starting bit is 0 o'clock, divided by 0, and 1 o'clock divided by divisor.    010000 0000 010000----remainder, quotient is 0, as long as the first is 0 business is 0 #第三步 10000 1101 01010-----Remainder, quotient 1, the remainder of you guess, in fact, is the corresponding bit or #第四步 1010 1101 0111------Remainder, quotient is 1, if the number of digits is smaller than the divisor, no longer continue operation #最终余数为111, quotient is 1011

Modulo 2 division can be used on CRC redundancy check. K,h are 2 digits, K to left R, and K divided by H. Modulo 2 In addition to the resulting remainder in the R bit. For example: K=1111,h=1101,r=3, 1111000 after displacement, finally crc=1111111.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.