Skip to content

Repository files navigation

Single Precision Floating Point Binary addition/subtraction Process:

  • Step #1: Extract sign bits SignA and SignB
  • Step #2: Extract mantissa bits MantA and MantB
  • Step #3:
    • Extract exponent ExpA and ExpB
    • Find the absolute difference ExpDiff = |ExpA - ExpB|
    • Select Exponent of greater number
  • Step #4: Shift mantissa of number with smaller exponent towards right
  • Step #5: Do add/sub operation on mantissa considering the hidden bit
  • Step #6: Normalizing the output
    • Operation = add
      • carryOut = 1 then
        • result = result >> 1
          • exponent = exponent + 1;
    • Operation = sub
      • check for leading zeros
        • left shift result till first 1 is obtained
          • exponent = exponent - number of leading zeros

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages