3
Most read
11
Most read
13
Most read
FLOATING POINT ADDITION
Mr. C.KARTHIKEYAN,
ASSISTANT PROFESSOR,
ECE , RMKCET
FLOATING POINT ADDITION
ALGORITHM
Step 0: Convert the numbers in Normalized
Binary
Step 1: Compare the exponents and match it with
the larger exponent
Step 2: Add the significant bits
Step 3: Normalize the sum
Step 4: Round the significant bits if there is no
overflow
EXAMPLE 1
Perform addition of the numbers 0.5ten
and 0.4375ten in binary using the
floating point addition algorithm
Step 0: Convert to Normalized Binary
Binary Representation
0.5 x 2 = 1.0 1
0.75 x 2 = 1.50 1
0.50 x 2 = 1.00 1
0.875 x 2 = 1.75 1
0.4375 x 2 = 0.875 0
Binary Representation
0.510 = 0.12
0.437510 = 0.01112
1.000 x 2-1
1.110 x 2-2
EXAMPLE 1
Perform addition of the numbers 0.5ten
and 0.4375ten in binary using the
floating point addition algorithm
Step 1: Exponent Comparison
1.000 x 2-1
1.110 x 2-2
1.000 x 2-1
1.110 x 2-2
1.000 x 2-1
0.111 x 2-1
EXAMPLE 1
Perform addition of the numbers 0.5ten
and 0.4375ten in binary using the
floating point addition algorithm
Step 2: Addition 1.000 x 2-1
0.111 x 2-1
1.000
0.111 (+)
1.111
1.111 x 2-1
EXAMPLE 1
Perform addition of the numbers 0.5ten
and 0.4375ten in binary using the
floating point addition algorithm
Step 3: Normalization
1.111 x 2-1
1.111 x 2-1
(-1)S x 1.F x 2E
EXAMPLE 1
Perform addition of the numbers 0.5ten
and 0.4375ten in binary using the
floating point addition algorithm
Step 4: Rounding
1.111 x 2-1
G R S Rounding Action
0 0 0 Truncate
0 0 1 Truncate
0 1 0 Truncate
0 1 1 Truncate
1 0 0 Round to Even
1 0 1 Round Up
1 1 0 Round Up
1 1 1 Round Up
EXAMPLE 1
Perform addition of the numbers 0.5ten
and 0.4375ten in binary using the
floating point addition algorithm
Final Answer
1.111 x 2-1 = 0.1111
0.937510
EXAMPLE 2
Perform addition of the numbers 10.01101 x 21
and 0.00101101 x 22 in binary using the
floating point addition algorithm
Step 0: Convert to Normalized Binary
10.01101 x 21 0.00101101 x 22
1.001101 x 22 1.01101 x 2-1
EXAMPLE 2
Perform addition of the numbers 10.01101 x 21
and 0.00101101 x 22 in binary using the
floating point addition algorithm
1.001101 x 22
1.01101 x 2-1
Step 1: Exponent Comparison
0.00101101 x 22
EXAMPLE 2
Perform addition of the numbers 10.01101 x 21
and 0.00101101 x 22 in binary using the
floating point addition algorithm
1.001101 x 22
0.00101101 x 22
Step 2: Addition
1.001101
0.00101101 (+)
1.01100001 1.01100001 x 22
EXAMPLE 2
Perform addition of the numbers 10.01101 x 21
and 0.00101101 x 22 in binary using the
floating point addition algorithm
Step 3: Normalization
1.01100001 x 22
EXAMPLE 2
Perform addition of the numbers 10.01101 x 21
and 0.00101101 x 22 in binary using the
floating point addition algorithm
Step 4: Rounding
1.01100001 x 22
G R S Rounding Action
0 0 0 Truncate
0 0 1 Truncate
0 1 0 Truncate
0 1 1 Truncate
1 0 0 Round to Even
1 0 1 Round Up
1 1 0 Round Up
1 1 1 Round Up
1.01100001 x 22
GUARD
BIT(G)
ROUND
BIT(R)
STICKY BITS
(S)
1.011 x 22

More Related Content

PPTX
Restoring and Non-Restoring division algo for CSE
PPT
Branch prediction
PPTX
Floating point arithmetic operations (1)
PDF
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
PPTX
Convolution codes and turbo codes
PPTX
Cyclic code non systematic
PPTX
Instruction Set Architecture
PPT
Multiplexers & Demultiplexers
Restoring and Non-Restoring division algo for CSE
Branch prediction
Floating point arithmetic operations (1)
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
Convolution codes and turbo codes
Cyclic code non systematic
Instruction Set Architecture
Multiplexers & Demultiplexers

What's hot (20)

PPTX
Ripple Carry Adder
PPTX
TMS320C6X Architecture
PPT
Pipeline hazard
PPTX
Modified booth's algorithm Part 2
PPTX
06 floating point
PPT
Combinational circuits
PDF
Module 1 8086
PDF
Arm instruction set
PPT
Arithmetic circuits
PPTX
Superscalar & superpipeline processor
PDF
Binary multipliers
PPT
K Map Simplification
PPT
Programming 8051 Timers
PPTX
Floating point representation
PPT
Addition and subtraction with signed magnitude data (mano
PPTX
Computer architecture instruction formats
PPTX
Carry look ahead adder
PPT
Advanced micro -processor
PPT
Unit 3-pipelining & vector processing
PPT
8051 ch9-950217
Ripple Carry Adder
TMS320C6X Architecture
Pipeline hazard
Modified booth's algorithm Part 2
06 floating point
Combinational circuits
Module 1 8086
Arm instruction set
Arithmetic circuits
Superscalar & superpipeline processor
Binary multipliers
K Map Simplification
Programming 8051 Timers
Floating point representation
Addition and subtraction with signed magnitude data (mano
Computer architecture instruction formats
Carry look ahead adder
Advanced micro -processor
Unit 3-pipelining & vector processing
8051 ch9-950217
Ad

Similar to Floating Point Addition.pptx (20)

PPTX
Floating Point Multiplication.pptx
PPT
Binary Arithmetic
PPTX
binary arithmetic conversion.pptx
PPTX
Binary Arithmetic
PDF
IN 1300 LEC_D02(B15) Basic electronic 2.pdf
PPTX
csc221_lecture_03_datarepresentation_02.pptx
DOCX
Lesson plan on data representation
PPTX
1s and 2s complement
PPTX
ARITHMETIC FOR COMPUTERS
PPT
lec03_binary_arithmetic lecture solution
PPTX
Binary-Arithmeticcccccccccccccccccc.pptx
PPT
Integer Representation
PPT
Dec to bin.20
PPTX
Binary number system
PDF
DLC Unit 1 (1).pdf nothing to say about you
PPTX
Number system
PDF
Binaty Arithmetic and Binary coding schemes
PDF
1sand2scomplement.pdf
PPTX
CA Unit ii
PDF
Digital and Logic Design Chapter 1 binary_systems
Floating Point Multiplication.pptx
Binary Arithmetic
binary arithmetic conversion.pptx
Binary Arithmetic
IN 1300 LEC_D02(B15) Basic electronic 2.pdf
csc221_lecture_03_datarepresentation_02.pptx
Lesson plan on data representation
1s and 2s complement
ARITHMETIC FOR COMPUTERS
lec03_binary_arithmetic lecture solution
Binary-Arithmeticcccccccccccccccccc.pptx
Integer Representation
Dec to bin.20
Binary number system
DLC Unit 1 (1).pdf nothing to say about you
Number system
Binaty Arithmetic and Binary coding schemes
1sand2scomplement.pdf
CA Unit ii
Digital and Logic Design Chapter 1 binary_systems
Ad

More from KarthikeyanC53 (20)

PPTX
3. Virtual Memory.pptx
PPTX
2. Cache Mapping.pptx
PPTX
1. Introduction to Memory.pptx
PPTX
6. ILP.pptx
PPTX
5. Exception.pptx
PPTX
4. Pipeline Hazards.pptx
PPTX
3. Implementation of Pipelining in Datapath.pptx
PPTX
2. Datapath Design with Control Unit.pptx
PPTX
1. Introduction to Datapath Design.pptx
PPTX
Floating Point Represenataion.pptx
PPTX
Refined Version of Division.pptx
PPTX
Version 1 Division.pptx
PPTX
BOOTH’s ALGORITHM Part 1.pptx
PPTX
2. Addition and Subtraction.pptx
PPTX
1. Introduction to Arithmetic.pptx
PPTX
6.Performance.pptx
PPTX
5. Addressing Modes.pptx
PPTX
4.Instruction Formats.pptx
PPTX
3. Instruction Set.pptx
PPTX
2. Eight Great Ideas.pptx
3. Virtual Memory.pptx
2. Cache Mapping.pptx
1. Introduction to Memory.pptx
6. ILP.pptx
5. Exception.pptx
4. Pipeline Hazards.pptx
3. Implementation of Pipelining in Datapath.pptx
2. Datapath Design with Control Unit.pptx
1. Introduction to Datapath Design.pptx
Floating Point Represenataion.pptx
Refined Version of Division.pptx
Version 1 Division.pptx
BOOTH’s ALGORITHM Part 1.pptx
2. Addition and Subtraction.pptx
1. Introduction to Arithmetic.pptx
6.Performance.pptx
5. Addressing Modes.pptx
4.Instruction Formats.pptx
3. Instruction Set.pptx
2. Eight Great Ideas.pptx

Recently uploaded (20)

PDF
CELDAS DE COMBUSTIBLE TIPO MEMBRANA DE INTERCAMBIO PROTÓNICO.pdf
PPTX
MAD Unit - 3 User Interface and Data Management (Diploma IT)
DOCX
An investigation of the use of recycled crumb rubber as a partial replacement...
PDF
LS-6-Digital-Literacy (1) K12 CURRICULUM .pdf
PDF
MLpara ingenieira CIVIL, meca Y AMBIENTAL
PPTX
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
PDF
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
PPTX
chapter 1.pptx dotnet technology introduction
PDF
IAE-V2500 Engine for Airbus Family 319/320
PPTX
WN UNIT-II CH4_MKaruna_BapatlaEngineeringCollege.pptx
PDF
Lesson 3 .pdf
DOCX
ENVIRONMENTAL PROTECTION AND MANAGEMENT (18CVL756)
PPT
UNIT-I Machine Learning Essentials for 2nd years
PDF
Artificial Intelligence_ Basics .Artificial Intelligence_ Basics .
PDF
[jvmmeetup] next-gen integration with apache camel and quarkus.pdf
PPTX
DATA STRCUTURE LABORATORY -BCSL305(PRG1)
PDF
IAE-V2500 Engine Airbus Family A319/320
PPTX
CS6006 - CLOUD COMPUTING - Module - 1.pptx
PDF
Software defined netwoks is useful to learn NFV and virtual Lans
PDF
Project_Mgmt_Institute_-Marc Marc Marc .pdf
CELDAS DE COMBUSTIBLE TIPO MEMBRANA DE INTERCAMBIO PROTÓNICO.pdf
MAD Unit - 3 User Interface and Data Management (Diploma IT)
An investigation of the use of recycled crumb rubber as a partial replacement...
LS-6-Digital-Literacy (1) K12 CURRICULUM .pdf
MLpara ingenieira CIVIL, meca Y AMBIENTAL
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
chapter 1.pptx dotnet technology introduction
IAE-V2500 Engine for Airbus Family 319/320
WN UNIT-II CH4_MKaruna_BapatlaEngineeringCollege.pptx
Lesson 3 .pdf
ENVIRONMENTAL PROTECTION AND MANAGEMENT (18CVL756)
UNIT-I Machine Learning Essentials for 2nd years
Artificial Intelligence_ Basics .Artificial Intelligence_ Basics .
[jvmmeetup] next-gen integration with apache camel and quarkus.pdf
DATA STRCUTURE LABORATORY -BCSL305(PRG1)
IAE-V2500 Engine Airbus Family A319/320
CS6006 - CLOUD COMPUTING - Module - 1.pptx
Software defined netwoks is useful to learn NFV and virtual Lans
Project_Mgmt_Institute_-Marc Marc Marc .pdf

Floating Point Addition.pptx

  • 1. FLOATING POINT ADDITION Mr. C.KARTHIKEYAN, ASSISTANT PROFESSOR, ECE , RMKCET
  • 2. FLOATING POINT ADDITION ALGORITHM Step 0: Convert the numbers in Normalized Binary Step 1: Compare the exponents and match it with the larger exponent Step 2: Add the significant bits Step 3: Normalize the sum Step 4: Round the significant bits if there is no overflow
  • 3. EXAMPLE 1 Perform addition of the numbers 0.5ten and 0.4375ten in binary using the floating point addition algorithm Step 0: Convert to Normalized Binary Binary Representation 0.5 x 2 = 1.0 1 0.75 x 2 = 1.50 1 0.50 x 2 = 1.00 1 0.875 x 2 = 1.75 1 0.4375 x 2 = 0.875 0 Binary Representation 0.510 = 0.12 0.437510 = 0.01112 1.000 x 2-1 1.110 x 2-2
  • 4. EXAMPLE 1 Perform addition of the numbers 0.5ten and 0.4375ten in binary using the floating point addition algorithm Step 1: Exponent Comparison 1.000 x 2-1 1.110 x 2-2 1.000 x 2-1 1.110 x 2-2 1.000 x 2-1 0.111 x 2-1
  • 5. EXAMPLE 1 Perform addition of the numbers 0.5ten and 0.4375ten in binary using the floating point addition algorithm Step 2: Addition 1.000 x 2-1 0.111 x 2-1 1.000 0.111 (+) 1.111 1.111 x 2-1
  • 6. EXAMPLE 1 Perform addition of the numbers 0.5ten and 0.4375ten in binary using the floating point addition algorithm Step 3: Normalization 1.111 x 2-1 1.111 x 2-1 (-1)S x 1.F x 2E
  • 7. EXAMPLE 1 Perform addition of the numbers 0.5ten and 0.4375ten in binary using the floating point addition algorithm Step 4: Rounding 1.111 x 2-1 G R S Rounding Action 0 0 0 Truncate 0 0 1 Truncate 0 1 0 Truncate 0 1 1 Truncate 1 0 0 Round to Even 1 0 1 Round Up 1 1 0 Round Up 1 1 1 Round Up
  • 8. EXAMPLE 1 Perform addition of the numbers 0.5ten and 0.4375ten in binary using the floating point addition algorithm Final Answer 1.111 x 2-1 = 0.1111 0.937510
  • 9. EXAMPLE 2 Perform addition of the numbers 10.01101 x 21 and 0.00101101 x 22 in binary using the floating point addition algorithm Step 0: Convert to Normalized Binary 10.01101 x 21 0.00101101 x 22 1.001101 x 22 1.01101 x 2-1
  • 10. EXAMPLE 2 Perform addition of the numbers 10.01101 x 21 and 0.00101101 x 22 in binary using the floating point addition algorithm 1.001101 x 22 1.01101 x 2-1 Step 1: Exponent Comparison 0.00101101 x 22
  • 11. EXAMPLE 2 Perform addition of the numbers 10.01101 x 21 and 0.00101101 x 22 in binary using the floating point addition algorithm 1.001101 x 22 0.00101101 x 22 Step 2: Addition 1.001101 0.00101101 (+) 1.01100001 1.01100001 x 22
  • 12. EXAMPLE 2 Perform addition of the numbers 10.01101 x 21 and 0.00101101 x 22 in binary using the floating point addition algorithm Step 3: Normalization 1.01100001 x 22
  • 13. EXAMPLE 2 Perform addition of the numbers 10.01101 x 21 and 0.00101101 x 22 in binary using the floating point addition algorithm Step 4: Rounding 1.01100001 x 22 G R S Rounding Action 0 0 0 Truncate 0 0 1 Truncate 0 1 0 Truncate 0 1 1 Truncate 1 0 0 Round to Even 1 0 1 Round Up 1 1 0 Round Up 1 1 1 Round Up 1.01100001 x 22 GUARD BIT(G) ROUND BIT(R) STICKY BITS (S) 1.011 x 22