CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Arithmetic

Floating Point Loss of Precision Analysis

MediumLogic CircuitAnalyze

Floating point units in modern processors must constantly align mantissas before addition, a process that inherently risks permanent data loss when magnitudes differ significantly.

The scenario involves two IEEE 754 single-precision (32-bit) floating-point numbers, A and B. Number A has a biased exponent of 127 and a normalized mantissa fraction of all zeros. Number B has a biased exponent of 102 and a normalized mantissa fraction starting with 1101 followed by zeros. The ALU must compute the sum Y = A + B.

Determine the alignment shift required for B and evaluate the exact bit-level impact on the final mantissa of Y.

Constraints

  • Assume standard IEEE 754 single-precision format: 1 sign bit, 8 exponent bits, 23 fraction bits.
  • Assume the ALU uses a strict round-to-zero (truncation) policy for this operation without guard, round, or sticky bits.
  • The implicit leading 1 in normalized numbers must be accounted for during shifting.

Topics

alufloating-pointieee-754precision

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

Sign in to solveSee what Pro unlocks

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Related problems

  • Half Adder Using Only XOR and ANDEasy
  • Floating Point Exception FlagsMedium
  • 1-Bit ALU SliceMedium
  • 4-bit Carry Lookahead BlockHard
  • BCD Adder Correction BlockMedium
  • IEEE 754 Mantissa Alignment ShifterHard
  • Four-Bit Bus AdderEasy
  • Debugging Twos Complement OverflowMedium

Browse all problems · Learning tracks