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

IEEE 754 Exponent Subtractor

MediumLogic CircuitBuild

Floating-point adders must align the mantissas of incoming operands before performing arithmetic. This alignment requires determining the absolute difference between the two biased exponents and identifying which operand requires the shift.

The circuit accepts two 8-bit unsigned exponents, expA and expB. It outputs an 8-bit absolute difference diff and a 1-bit flag a_greater.

| Condition | diff | a_greater | |-----------|--------|-------------| | expA > expB | expA - expB | 1 | | expA <= expB | expB - expA | 0 |

Constraints

  • Implement using combinational logic only.
  • Do not use sequential elements or clocks.

Topics

ArithmeticALUFloating Point

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