1. Arithmetic Operations - Addition and subtraction of signed numbers.pptx

2,280 views 29 slides May 18, 2023
Slide 1
Slide 1 of 29
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29

About This Presentation

addition


Slide Content

20CS307 - COMPUTER ARCHITECTURE UNIT – II ARITHMETIC OPERATIONS Arithmetic Operations - Addition and subtraction of signed numbers

Fixed Point Number Representation The Fixed Point / Integer Numbers are represented in to two forms they are Signed Integer and Unsigned Integer. Signed Integer Number Represents Negative Numbers MSB 1 Unsigned Integer Number Represents Positive Numbers MSB

The left most bit (sign bit) in the binary number represents sign of the number. MSB is 1 the number represents negative number. MSB is 0 the number represents positive number.

One’s Complement Representation In the 1’s complement representation, negative numbers are obtained by complementing each bit of the corresponding positive number.

WHAT IS FULL ADDER The full adder accepts two inputs bits and an input carry and generates a sum output and an output carry . The full-adder circuit adds three one-bit binary numbers (Cin, A ,B) and outputs two one-bit binary numbers, a sum (S) and a carry (Cout). The full- adder is usually a component in a cascade of adders, which add 8, 16, 32, etc. binary numbers .

C I R C U I T D I A G R A M F O R F U L L ADDER • A B S SUM C CARRY C IN

T R U T H T A B L E F O R F U L L A D D E R Three input A,B,C carry Two output C 0ut ,Sum

F U L L A D D E R The full adder is usually drawn in a shorthand notation: A FULL ADDER C CARR B S SU C IN Y M

Arithmetic Operations Arithmetic Instructions in digital Computers manipulate data to produce results necessary for the solutions of computational problems. These instructions perform arithmetic calculations and are responsible for the bulk of activity involved in processing data in a computer The four basic arithmetic operations are addition, subtraction, multiplication and division. From these four basic operations, it is possible to formulate other arithmetic functions and solve problems by means of numerical analysis methods. An arithmetic processor is the part of a processor unit that executes arithmetic operations. An arithmetic instruction may specify binary or decimal data, and in each case the data may be in fixed-point or floating point form. Negative number may be in signed magnitude or signed compliment representation. Fixed point numbers may represents integers or fractions.

Basic Operation

Subtraction of two Signed Binary Numbers

Example

Example

2’s Complement

Ternary Conversion
Tags