You are on page 1of 30

Digital Logic Design

INDUS UNIVERSITY
Binary operations
Digital Logic Design

WEEK 6

BINARY OPERATION ADDITION


SUBTRATION MULTIPLICATION
DIVISION
Binary Arithmetic

🠜 Binary arithmetic is important part of all the digital


computers and many other digital system.
🠜 The arithmetic of binary numbers means the operation
of binary addition, binary subtra ction, binary
multiplic ation and binary division.
🠜 Binary arithmetic operation starts from the least
significant bit i.e. from the rightmost side. We will
discuss the different operations one by one in the
following artic le.
Binary Addition

The result obtained after adding two binary numbers is


the binary number itself. Binary addition is the simplest
method to add any of the binary numbers. It can be
calculated easily if we know the following rules.
Rules
•0 + 0 = 0

•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.

🠜 There are four rules of binary addition.

🠜 In fourth c ase, a binary addition is c reating a sum of (1 +1 =


10) i.e. 0 is written in the given column and a carry of 1 over
to the next c olumn.
Example −Addition
Examples
Binary Subtraction

The result obtained after subtracting two binary


numbers is the binary number itself. Binary subtraction
is also the simplest method to subtract any of the
binary numbers. It can be calculated easily if we know
the following rules.
Rules
•0 – 0 = 0

•0 – 1 = 1 (with a borrow of 1)

•1 – 0 = 1

•1 – 1 = 0

Let us take any two binary numbers and subtract them.


Binary Subtraction

🠜 Subtraction and Borrow, these two words will be used


very frequently for the binary subtraction. There are
four rules of binary subtra ction.
Binary Subtraction
🠜 00001000 – 00000011
🠜 8-3=8+(-3)=5

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

The binary multiplications are calculated similarly as the


other arithmetic's numerals are calculated. Let us take
any two binary numbers and multiply them. It can be
calculated easily if we know the following rules.
Rules
•0 × 0 = 0

•0 × 1 = 0

•1 × 0 = 0

•1 × 1 = 1

Example: 1101 * 1010 = 10000010


Binary Multiplica tion

🠜 Binary multiplication is similar to decimal multiplication.


It is simpler than dec imal multiplic ation bec ause only
0s and 1s are involved. There are four rules of binary
multiplication.
Example −Multiplic ation
Class task

1. The result obtained on binary multiplication of 1010 * 1100


Class task

010100011
x 11000101
Binary Division

The method of binary division is similar to the 10


decimal system other than the base 2 system. It can be
calculated easily if we know the following rules.
• 1 ÷ 1=1

• 1 ÷ 0 =0

• 0 ÷ 1 = Meaningless

• 0 ÷ 0= Meaningless

Let us understand binary division with an example.


Binary Division

🠜 Binary division is similar to decimal division. It is called


as the long division procedure.
🠜 Example −Division
RECOMMENDED BOOK:
Digital Fundamentals, Thomas L. Floyd 11th Edition
Thank You
The End

You might also like