Professional Documents
Culture Documents
INDUS UNIVERSITY
Binary operations
Digital Logic Design
WEEK 6
•0 + 1 = 1
•1 + 0 = 1
•1 + 1 =10
Let us take any two binary numbers and add them.
Add : 10001 + 11101 = 101110
Binary Addition
🠜 It is a key for binary subtraction, multiplication, division.
•0 – 1 = 1 (with a borrow of 1)
•1 – 0 = 1
•1 – 1 = 0
00001000 Minuend(+8)
+ 00000011 2’sement of subtrahend(-3)
1 00000101 Difference (+5)
Binary Subtraction
Examples
1.11001010
2 - 100110102 =?
2.10011100
2 - 011110012 = ?
3.11001011
2 - 100000112 = ?
4.11100001
2 - 100111012 = ?
5.10000001
2 - 011001102 = ?
6.10010011
2 - 100001112 =?
Examples solution
1.11001010
2 - 100110102 = 00110000
2.10011100
2
2 - 011110012 = 001000112
3.11001011
2 - 100000112 = 010010002
4.11100001
2 - 100111012 = 010001002
5.10000001
2 - 011001102 = 000110112
6.10010011
2 - 100001112 = 000011002
Binary Multiplication
•0 × 1 = 0
•1 × 0 = 0
•1 × 1 = 1
010100011
x 11000101
Binary Division
• 1 ÷ 0 =0
• 0 ÷ 1 = Meaningless
• 0 ÷ 0= Meaningless