Unsigned Binary Division
Unsigned Binary Division is more complex than multiplication to implement however, like Unsigned Binary Multiplication it can be done using two approaches:
Paper approach
The paper method consists of a dividend, divisor and partial remainders. It is done by first setting quotient to 0 then you align leftmost digits in dividend and divisor. If that portion of the dividend above the divisor is greater than or equal to the divisor then subtract divisor from that portion of the dividend and concatentate 1 to the right hand end of the quotient.Else concatentate 0 to the right hand end of the quotient and shift the divisor one place right. These steps are done Until dividend is less than the divisor quotient is correct, dividend is remainder.
Example 1
Divisor = 1011(11 decimal) and Dividend = 10010011 (147 decimal)
00001101 Quotient1011 10010011
1011
001110 Partial remainder
1011
001111 Partial remainder
1011
100 Remainder
Answer(decimal) = 13 remainder 4
Example 2
Divisor = 100(4 decimal) and Dividend = 11111 (31 decimal)
0111 Quotient100 11111
100
0111 Partial remainder
100
00111 Partial remainder
100
00011 Remainder
Answer(decimal) = 7 remainder 3
Hardware Approach
For the hardware approach we le Q (n-bit) be the dividend and M (n-bit) be the divisor. We assume that Q < M thus we find the quotient and remainder of Q.2n divided by M.
OperationInstead of shifting to the right as in Unsigned Binary Multiplication we shift the quotient to the left and the subtraction operation is used instead of adding.
Example 1
M = 11 and Q = 1000
1011 1000
11
10
Think you understand? Take the Quiz!