SlideShare a Scribd company logo
1 of 143
UNIT II ARITHMETIC
FIXED POIN NUMBER
REPRESENTATION
• Digital Computers use Binary number system to
represent all types of information inside the
computers. Alphanumeric characters are
represented using binary bits (i.e., 0 and 1). Digital
representations are easier to design, storage is easy,
accuracy and precision are greater.
• There are various types of number representation
techniques for digital number representation, for
example: Binary number system, octal number
system, decimal number system, and hexadecimal
number system etc. But Binary number system is
most relevant and popular for representing numbers
in digital computer system.
Storing Real Number
These are structures as following below −
• There are two major approaches to store real
numbers (i.e., numbers with fractional
component) in modern computing.
• These are (i) Fixed Point Notation and (ii)
Floating Point Notation.
• In fixed point notation, there are a fixed
number of digits after the decimal point,
whereas floating point number allows for a
varying number of digits after the decimal
point
Fixed-Point Representation −
• This representation has fixed number of bits
for integer part and for fractional part.
• For example, if given fixed-point
representation is IIII.FFFF, then you can store
minimum value is 0000.0001 and maximum
value is 9999.9999. There are three parts of a
fixed-point number representation: the sign
field, integer field, and fractional field.
We can represent these numbers using:
Signed representation: range from -(2(k-1)-1) to (2(k-1)-
1), for k bits.
1’s complement representation: range from -(2(k-1)-1)
to (2(k-1)-1), for k bits.
2’s complementation representation: range from -(2(k-
1)) to (2(k-1)-1), for k bits.
2’s complementation representation is preferred in computer
system because of unambiguous property and easier for
arithmetic operations.
Example −Assume number is using 32-bit format which reserve
1 bit for the sign, 15 bits for the integer part and 16 bits for the
fractional part.
Then, -43.625 is represented as following:
Where, 0 is used to represent + and 1 is used to represent.
000000000101011 is 15 bit binary value for decimal 43 and
1010000000000000 is 16 bit binary value for fractional 0.625.
• The advantage of using a fixed-point representation is performance and
disadvantage is relatively limited range of values that they can represent.
So, it is usually inadequate for numerical analysis as it does not allow
enough numbers and accuracy. A number whose representation exceeds
32 bits would have to be stored inexactly.
These are above smallest positive number and largest positive
number which can be store in 32-bit representation as given above
format. Therefore, the smallest positive number is 2-16 ≈ 0.000015
approximate and the largest positive number is (215-1)+(1-2-16)=215(1-
2-16) =32768, and gap between these numbers is 2-16.
Floating-Point Representation −
– This representation does not reserve a specific number of bits for the
integer part or the fractional part. Instead it reserves a certain number
of bits for the number (called the mantissa or significand) and a certain
number of bits to say where within that number the decimal place sits
(called the exponent).
– The floating number representation of a number has two part: the first
part represents a signed fixed point number called mantissa. The
second part of designates the position of the decimal (or binary) point
and is called the exponent. The fixed point mantissa may be fraction or
an integer. Floating -point is always interpreted to represent a number
in the following form: Mxre.
• Only the mantissa m and the exponent e are
physically represented in the register
(including their sign).
• A floating-point binary number is represented
in a similar manner except that is uses base 2
for the exponent. A floating-point number is
said to be normalized if the most significant
digit of the mantissa is 1.
• signed integers and exponent are represented
by either sign representation, or one’s
complement representation, or two’s
complement representation.
Simple Adders
Figures 10.1/10.2 Binary half-adder (HA) and full-adder (FA).
x y c s
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Inputs Outputs
HA
x y
c
s
x y c c s
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
Inputs Outputs
cout cin
out
in x y
s
FA
Digit-set interpretation:
{0, 1} + {0, 1}
= {0, 2} + {0, 1}
Digit-set interpretation:
{0, 1} + {0, 1} + {0, 1}
= {0, 2} + {0, 1}
Full-Adder Implementations
Figure10.3 Full adder implemented with two half-adders, by means of
two 4-input multiplexers, and as two-level gate network.
(a) FA built of two HAs
(c) Two-level AND-OR FA
(b) CMOS mux-based FA
1
0
3
2
HA
HA
1
0
3
2
0
1
x
y
x
y
x
y
s
s
s
cout
cout
cout
cin
cin
cin
Ripple-Carry Adder: Slow But Simple
Figure 10.4 Ripple-carry binary adder with 32-bit inputs and output.
x
s
y
c
c
x
s
y
c
x
s
y
c
cout cin
0 0
0
c0
1 1
1
1
2
31
31
31
31
FA FA FA
32
. . .
Critical path
CSE431 Chapter 3.54 Irwin, PSU, 2008
Unsigned Multiplications
 Multiplications is a complex operation than addition and
subtraction.
 It can be performed in hardware and software
 Multiplication process involves generation of partial
products, one for each digit in multiplier.
 These partial product are summed in to final product.
 Before summing operation each successive partial
product is shifted one position to the left relative to the
preceding partial product
 The product of two n digit numbers can be
accommodated in 2n digits, so the product of the two 4
bit numbers fits in to 8bits
CSE431 Chapter 3.55 Irwin, PSU, 2008
Multiply
 Binary multiplication is just a bunch of right shifts and
adds
multiplicand
multiplier
partial
product
array
double precision product
n
2n
n
can be formed in parallel
and added in parallel for
faster multiplication
CSE431 Chapter 3.56 Irwin, PSU, 2008
CSE431 Chapter 3.57 Irwin, PSU, 2008
CSE431 Chapter 3.58 Irwin, PSU, 2008
CSE431 Chapter 3.59 Irwin, PSU, 2008
CSE431 Chapter 3.60 Irwin, PSU, 2008
CSE431 Chapter 3.61 Irwin, PSU, 2008
CSE431 Chapter 3.62 Irwin, PSU, 2008
CSE431 Chapter 3.63 Irwin, PSU, 2008
CSE431 Chapter 3.64 Irwin, PSU, 2008
CSE431 Chapter 3.65 Irwin, PSU, 2008
CSE431 Chapter 3.66 Irwin, PSU, 2008
CSE431 Chapter 3.67 Irwin, PSU, 2008
CSE431 Chapter 3.68 Irwin, PSU, 2008
CSE431 Chapter 3.69 Irwin, PSU, 2008
CSE431 Chapter 3.70 Irwin, PSU, 2008
CSE431 Chapter 3.71 Irwin, PSU, 2008
CSE431 Chapter 3.72 Irwin, PSU, 2008
CSE431 Chapter 3.73 Irwin, PSU, 2008
CSE431 Chapter 3.74 Irwin, PSU, 2008
CSE431 Chapter 3.75 Irwin, PSU, 2008
CSE431 Chapter 3.76 Irwin, PSU, 2008
CSE431 Chapter 3.77 Irwin, PSU, 2008
CSE431 Chapter 3.78 Irwin, PSU, 2008
CSE431 Chapter 3.79 Irwin, PSU, 2008
CSE431 Chapter 3.80 Irwin, PSU, 2008
CSE431 Chapter 3.81 Irwin, PSU, 2008
CSE431 Chapter 3.82 Irwin, PSU, 2008
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic
Unit 2 Arithmetic

More Related Content

What's hot

Computer organization prashant odhavani- 160920107003
Computer organization   prashant odhavani- 160920107003Computer organization   prashant odhavani- 160920107003
Computer organization prashant odhavani- 160920107003Prashant odhavani
 
Register transfer and micro operation
Register transfer and micro operationRegister transfer and micro operation
Register transfer and micro operationKamal Acharya
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operationNikhil Pandit
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference InstructionsRabin BK
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtlMazin Alwaaly
 
310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organizationsrinoni
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architectureSubesh Kumar Yadav
 
Chapter 02 instructions language of the computer
Chapter 02   instructions language of the computerChapter 02   instructions language of the computer
Chapter 02 instructions language of the computerBảo Hoang
 
Data manipulation instructions
Data manipulation instructionsData manipulation instructions
Data manipulation instructionsMahesh Kumar Attri
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructionsihsanjamil
 

What's hot (18)

Computer Arithmetic
Computer ArithmeticComputer Arithmetic
Computer Arithmetic
 
Computer organization prashant odhavani- 160920107003
Computer organization   prashant odhavani- 160920107003Computer organization   prashant odhavani- 160920107003
Computer organization prashant odhavani- 160920107003
 
Unit 3 The processor
Unit 3 The processorUnit 3 The processor
Unit 3 The processor
 
Co ppt
Co pptCo ppt
Co ppt
 
Register transfer and micro operation
Register transfer and micro operationRegister transfer and micro operation
Register transfer and micro operation
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference Instructions
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtl
 
310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
 
Chapter 02 instructions language of the computer
Chapter 02   instructions language of the computerChapter 02   instructions language of the computer
Chapter 02 instructions language of the computer
 
Micro program example
Micro program exampleMicro program example
Micro program example
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Data manipulation instructions
Data manipulation instructionsData manipulation instructions
Data manipulation instructions
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Cs6303 unit2
Cs6303 unit2 Cs6303 unit2
Cs6303 unit2
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
addressing modes
addressing modesaddressing modes
addressing modes
 

Similar to Unit 2 Arithmetic

Data Reprersentation
Data Reprersentation  Data Reprersentation
Data Reprersentation Kamal Acharya
 
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...inventionjournals
 
Computer Oraganizaation.pptx
Computer Oraganizaation.pptxComputer Oraganizaation.pptx
Computer Oraganizaation.pptxbmangesh
 
computer arithmetic’s (fixed and floating point)
computer arithmetic’s (fixed and floating point)computer arithmetic’s (fixed and floating point)
computer arithmetic’s (fixed and floating point)DipakMahurkar1
 
Floating Point Representation premium.pptx
Floating Point Representation premium.pptxFloating Point Representation premium.pptx
Floating Point Representation premium.pptxshomikishpa
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdfmiftah88
 
Neumerical Methods.pptx
Neumerical Methods.pptxNeumerical Methods.pptx
Neumerical Methods.pptxPayelDalal
 
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdfCS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdfAsst.prof M.Gokilavani
 
Data representation
Data representationData representation
Data representationManish Kumar
 
Manoch1raw 160512091436
Manoch1raw 160512091436Manoch1raw 160512091436
Manoch1raw 160512091436marangburu42
 
Representation of Integers
Representation of IntegersRepresentation of Integers
Representation of IntegersSusantha Herath
 
Representation of numbers.pptx
Representation of numbers.pptxRepresentation of numbers.pptx
Representation of numbers.pptxssuserb7effa
 
index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...mayurjagdale4
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001aarunachalamr16
 
Write the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfWrite the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfsales223546
 
Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...mayurjagdale4
 
Computer arithmetic operations.pptx
Computer arithmetic operations.pptxComputer arithmetic operations.pptx
Computer arithmetic operations.pptxssusera6fdd5
 
Unsigned and Signed fixed point Addition and subtraction
Unsigned and Signed  fixed point Addition and subtractionUnsigned and Signed  fixed point Addition and subtraction
Unsigned and Signed fixed point Addition and subtractionciyamala kushbu
 

Similar to Unit 2 Arithmetic (20)

Data Reprersentation
Data Reprersentation  Data Reprersentation
Data Reprersentation
 
datareprersentation 1.pptx
datareprersentation 1.pptxdatareprersentation 1.pptx
datareprersentation 1.pptx
 
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
 
Computer Oraganizaation.pptx
Computer Oraganizaation.pptxComputer Oraganizaation.pptx
Computer Oraganizaation.pptx
 
computer arithmetic’s (fixed and floating point)
computer arithmetic’s (fixed and floating point)computer arithmetic’s (fixed and floating point)
computer arithmetic’s (fixed and floating point)
 
Floating Point Representation premium.pptx
Floating Point Representation premium.pptxFloating Point Representation premium.pptx
Floating Point Representation premium.pptx
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdf
 
Neumerical Methods.pptx
Neumerical Methods.pptxNeumerical Methods.pptx
Neumerical Methods.pptx
 
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdfCS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
CS304PC:Computer Organization and Architecture Unit- III PDF notes .pdf
 
Data representation
Data representationData representation
Data representation
 
Manoch1raw 160512091436
Manoch1raw 160512091436Manoch1raw 160512091436
Manoch1raw 160512091436
 
Representation of Integers
Representation of IntegersRepresentation of Integers
Representation of Integers
 
Representation of numbers.pptx
Representation of numbers.pptxRepresentation of numbers.pptx
Representation of numbers.pptx
 
index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
 
Chapter 9.pdf
Chapter 9.pdfChapter 9.pdf
Chapter 9.pdf
 
Write the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdfWrite the code in C, here is the template providedThe input used .pdf
Write the code in C, here is the template providedThe input used .pdf
 
Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...
 
Computer arithmetic operations.pptx
Computer arithmetic operations.pptxComputer arithmetic operations.pptx
Computer arithmetic operations.pptx
 
Unsigned and Signed fixed point Addition and subtraction
Unsigned and Signed  fixed point Addition and subtractionUnsigned and Signed  fixed point Addition and subtraction
Unsigned and Signed fixed point Addition and subtraction
 

More from Balaji Vignesh

Unit-1_Introduction to Management and Organization.pdf
Unit-1_Introduction to Management and Organization.pdfUnit-1_Introduction to Management and Organization.pdf
Unit-1_Introduction to Management and Organization.pdfBalaji Vignesh
 
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureUnit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureBalaji Vignesh
 
Unit IV Memory and I/O Organization
Unit IV Memory and I/O OrganizationUnit IV Memory and I/O Organization
Unit IV Memory and I/O OrganizationBalaji Vignesh
 
Unit 1 Computer organization and Instructions
Unit 1 Computer organization and InstructionsUnit 1 Computer organization and Instructions
Unit 1 Computer organization and InstructionsBalaji Vignesh
 
Launch Vehicles and Propulsion_Satellite Communication
Launch Vehicles and Propulsion_Satellite CommunicationLaunch Vehicles and Propulsion_Satellite Communication
Launch Vehicles and Propulsion_Satellite CommunicationBalaji Vignesh
 

More from Balaji Vignesh (6)

Unit-1_Introduction to Management and Organization.pdf
Unit-1_Introduction to Management and Organization.pdfUnit-1_Introduction to Management and Organization.pdf
Unit-1_Introduction to Management and Organization.pdf
 
Transformer_Notes
Transformer_NotesTransformer_Notes
Transformer_Notes
 
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureUnit 5 Advanced Computer Architecture
Unit 5 Advanced Computer Architecture
 
Unit IV Memory and I/O Organization
Unit IV Memory and I/O OrganizationUnit IV Memory and I/O Organization
Unit IV Memory and I/O Organization
 
Unit 1 Computer organization and Instructions
Unit 1 Computer organization and InstructionsUnit 1 Computer organization and Instructions
Unit 1 Computer organization and Instructions
 
Launch Vehicles and Propulsion_Satellite Communication
Launch Vehicles and Propulsion_Satellite CommunicationLaunch Vehicles and Propulsion_Satellite Communication
Launch Vehicles and Propulsion_Satellite Communication
 

Recently uploaded

power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 

Recently uploaded (20)

power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 

Unit 2 Arithmetic

  • 2. FIXED POIN NUMBER REPRESENTATION • Digital Computers use Binary number system to represent all types of information inside the computers. Alphanumeric characters are represented using binary bits (i.e., 0 and 1). Digital representations are easier to design, storage is easy, accuracy and precision are greater. • There are various types of number representation techniques for digital number representation, for example: Binary number system, octal number system, decimal number system, and hexadecimal number system etc. But Binary number system is most relevant and popular for representing numbers in digital computer system.
  • 3. Storing Real Number These are structures as following below −
  • 4. • There are two major approaches to store real numbers (i.e., numbers with fractional component) in modern computing. • These are (i) Fixed Point Notation and (ii) Floating Point Notation. • In fixed point notation, there are a fixed number of digits after the decimal point, whereas floating point number allows for a varying number of digits after the decimal point
  • 5. Fixed-Point Representation − • This representation has fixed number of bits for integer part and for fractional part. • For example, if given fixed-point representation is IIII.FFFF, then you can store minimum value is 0000.0001 and maximum value is 9999.9999. There are three parts of a fixed-point number representation: the sign field, integer field, and fractional field.
  • 6. We can represent these numbers using: Signed representation: range from -(2(k-1)-1) to (2(k-1)- 1), for k bits. 1’s complement representation: range from -(2(k-1)-1) to (2(k-1)-1), for k bits. 2’s complementation representation: range from -(2(k- 1)) to (2(k-1)-1), for k bits.
  • 7. 2’s complementation representation is preferred in computer system because of unambiguous property and easier for arithmetic operations. Example −Assume number is using 32-bit format which reserve 1 bit for the sign, 15 bits for the integer part and 16 bits for the fractional part. Then, -43.625 is represented as following: Where, 0 is used to represent + and 1 is used to represent. 000000000101011 is 15 bit binary value for decimal 43 and 1010000000000000 is 16 bit binary value for fractional 0.625.
  • 8. • The advantage of using a fixed-point representation is performance and disadvantage is relatively limited range of values that they can represent. So, it is usually inadequate for numerical analysis as it does not allow enough numbers and accuracy. A number whose representation exceeds 32 bits would have to be stored inexactly. These are above smallest positive number and largest positive number which can be store in 32-bit representation as given above format. Therefore, the smallest positive number is 2-16 ≈ 0.000015 approximate and the largest positive number is (215-1)+(1-2-16)=215(1- 2-16) =32768, and gap between these numbers is 2-16.
  • 9. Floating-Point Representation − – This representation does not reserve a specific number of bits for the integer part or the fractional part. Instead it reserves a certain number of bits for the number (called the mantissa or significand) and a certain number of bits to say where within that number the decimal place sits (called the exponent). – The floating number representation of a number has two part: the first part represents a signed fixed point number called mantissa. The second part of designates the position of the decimal (or binary) point and is called the exponent. The fixed point mantissa may be fraction or an integer. Floating -point is always interpreted to represent a number in the following form: Mxre.
  • 10. • Only the mantissa m and the exponent e are physically represented in the register (including their sign). • A floating-point binary number is represented in a similar manner except that is uses base 2 for the exponent. A floating-point number is said to be normalized if the most significant digit of the mantissa is 1. • signed integers and exponent are represented by either sign representation, or one’s complement representation, or two’s complement representation.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. Simple Adders Figures 10.1/10.2 Binary half-adder (HA) and full-adder (FA). x y c s 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0 Inputs Outputs HA x y c s x y c c s 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 Inputs Outputs cout cin out in x y s FA Digit-set interpretation: {0, 1} + {0, 1} = {0, 2} + {0, 1} Digit-set interpretation: {0, 1} + {0, 1} + {0, 1} = {0, 2} + {0, 1}
  • 17. Full-Adder Implementations Figure10.3 Full adder implemented with two half-adders, by means of two 4-input multiplexers, and as two-level gate network. (a) FA built of two HAs (c) Two-level AND-OR FA (b) CMOS mux-based FA 1 0 3 2 HA HA 1 0 3 2 0 1 x y x y x y s s s cout cout cout cin cin cin
  • 18. Ripple-Carry Adder: Slow But Simple Figure 10.4 Ripple-carry binary adder with 32-bit inputs and output. x s y c c x s y c x s y c cout cin 0 0 0 c0 1 1 1 1 2 31 31 31 31 FA FA FA 32 . . . Critical path
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54. CSE431 Chapter 3.54 Irwin, PSU, 2008 Unsigned Multiplications  Multiplications is a complex operation than addition and subtraction.  It can be performed in hardware and software  Multiplication process involves generation of partial products, one for each digit in multiplier.  These partial product are summed in to final product.  Before summing operation each successive partial product is shifted one position to the left relative to the preceding partial product  The product of two n digit numbers can be accommodated in 2n digits, so the product of the two 4 bit numbers fits in to 8bits
  • 55. CSE431 Chapter 3.55 Irwin, PSU, 2008 Multiply  Binary multiplication is just a bunch of right shifts and adds multiplicand multiplier partial product array double precision product n 2n n can be formed in parallel and added in parallel for faster multiplication
  • 56. CSE431 Chapter 3.56 Irwin, PSU, 2008
  • 57. CSE431 Chapter 3.57 Irwin, PSU, 2008
  • 58. CSE431 Chapter 3.58 Irwin, PSU, 2008
  • 59. CSE431 Chapter 3.59 Irwin, PSU, 2008
  • 60. CSE431 Chapter 3.60 Irwin, PSU, 2008
  • 61. CSE431 Chapter 3.61 Irwin, PSU, 2008
  • 62. CSE431 Chapter 3.62 Irwin, PSU, 2008
  • 63. CSE431 Chapter 3.63 Irwin, PSU, 2008
  • 64. CSE431 Chapter 3.64 Irwin, PSU, 2008
  • 65. CSE431 Chapter 3.65 Irwin, PSU, 2008
  • 66. CSE431 Chapter 3.66 Irwin, PSU, 2008
  • 67. CSE431 Chapter 3.67 Irwin, PSU, 2008
  • 68. CSE431 Chapter 3.68 Irwin, PSU, 2008
  • 69. CSE431 Chapter 3.69 Irwin, PSU, 2008
  • 70. CSE431 Chapter 3.70 Irwin, PSU, 2008
  • 71. CSE431 Chapter 3.71 Irwin, PSU, 2008
  • 72. CSE431 Chapter 3.72 Irwin, PSU, 2008
  • 73. CSE431 Chapter 3.73 Irwin, PSU, 2008
  • 74. CSE431 Chapter 3.74 Irwin, PSU, 2008
  • 75. CSE431 Chapter 3.75 Irwin, PSU, 2008
  • 76. CSE431 Chapter 3.76 Irwin, PSU, 2008
  • 77. CSE431 Chapter 3.77 Irwin, PSU, 2008
  • 78. CSE431 Chapter 3.78 Irwin, PSU, 2008
  • 79. CSE431 Chapter 3.79 Irwin, PSU, 2008
  • 80. CSE431 Chapter 3.80 Irwin, PSU, 2008
  • 81. CSE431 Chapter 3.81 Irwin, PSU, 2008
  • 82. CSE431 Chapter 3.82 Irwin, PSU, 2008