0% found this document useful (0 votes)
3 views15 pages

Unit 1 - Lecture - 3 - Binary Arithmetic Operators

The document covers binary arithmetic operations including addition, subtraction, multiplication, and division, along with the representation of signed binary numbers (SBN). It explains the different forms of SBN, such as sign magnitude, 1's complement, and 2's complement, and how to perform arithmetic operations with them. The lecture aims to provide a foundational understanding of binary arithmetic and SBN for digital systems.

Uploaded by

ajaierahulsg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views15 pages

Unit 1 - Lecture - 3 - Binary Arithmetic Operators

The document covers binary arithmetic operations including addition, subtraction, multiplication, and division, along with the representation of signed binary numbers (SBN). It explains the different forms of SBN, such as sign magnitude, 1's complement, and 2's complement, and how to perform arithmetic operations with them. The lecture aims to provide a foundational understanding of binary arithmetic and SBN for digital systems.

Uploaded by

ajaierahulsg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

ECE101: Digital System Design

Unit I: Lecture 3
Lecture 3: Binary Arithmetic Operations
Dr.R.EZHILARASIE
Assistant Professor
School of Computing
SASTRA Deemed to be University

1
Objectives

• To Perform arithmetic operations on binary numbers

• To Understand the representation of signed binary numbers

• To Perform the arithmetic operations on signed binary numbers

2
Binary Arithmetic
• Basics of Binary Addition, Subtraction, Multiplication and Division
Binary Addition a) 11+10 b) 111 +11

• Four Basic rules for adding binary digits

A B Sum Carry A B C Sum Carry


0 0 0 0 0 0 1 1 0

0 1 1 0 0 1 1 0 1

1 0 1 0 1 0 1 0 1

1 1 0 1 1 1 1 1 1

3
Binary Subtraction
Binary Subtraction
• Four Basic rules for subtracting binary digits a) 11 - 01 b) 101 - 011

A B Sub Borrow
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0

4
Binary Multiplication
• Four Basic rules for multiplying binary digits a) 11 * 10 b) 111 * 11

A B Mul
(A * B)
0 0 0
0 1 0
1 0 0
1 1 1

5
Binary Division
• Similar to decimal division
• Called as the long division procedure a) 110 / 10

6
Signed Binary Numbers (SBN)
• Digital Systems able to handle both Positive and Negative Numbers

• Signed Binary Numbers consists of


– Sign: Positive/ Negative

– Magnitude: Value of the Number

• Signed Numbers represented in three forms:


– Sign magnitude

– 1’ Complement

– 2’s Complement

7
Signed Binary Numbers: Representation
Sign Magnitude
• Negative Number has the same magnitude bits as positive number but the sign bit is 1 rather zero
• Eg: - 20

1’s Complement Form


• Negative Number is the 1’s complement of the corresponding positive Number
• 1’s complement:
– Changing all 1s to 0s and all 0s to 1s
• Ex: - 20

2’s Complement Form


• Negative Number is the 2’s complement of the corresponding positive Number
• 2’s complement:
– Found by adding 1 to the LSB of the 1’s complement
– 2’s complement = (1’s complement ) +1
• Ex: - 20

8
Example
• Express – 12 as an 8-bit number in a) Sign magnitude
b)1’s complement c) 2’s complement

9
Example
• 2’s Complement are mostly used in Computers and microprocessor based systems
• Determine the decimal values of SBN in 2’ s Complement Form
• Eg: a) 01010111 b) 11010111

10
Arithmetic operations with Signed Binary Numbers
• Addition
– Addition of two positive numbers yields a positive number
Ex: 00001000 + 00001010

– Addition of positive number and a smaller negative number yields a positive number
Ex: 10 - 3

11
SBN: Addition
• Addition of positive number and a larger negative number yields a negative number in 2’s
complement form
Ex: 4 – 8

12
SBN: Subtraction
• To subtract 2 SBN, take the 2’s Complement of the subtrahend and add.
Discard any final carry bit.
• Eg: a) 8 – 3

13
Summary
• Binary Arithmetic Operations

• Signed Binary Numbers

• Representation of SBN

• Arithmetic operations on SBN

14
Thank You

15

You might also like