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

IEEE 754 Mantissa Alignment Shifter

HardLogic CircuitBuild

Floating-point addition requires operands to have identical exponent weights before their significands can be combined. The mantissa alignment shifter performs this critical step in a floating-point unit by right-shifting the smaller number's mantissa by the absolute difference of the exponents.

The circuit receives a 23-bit fractional mantissa mant_in and an 8-bit unsigned exponent difference exp_diff. It must first restore the IEEE 754 hidden 1 bit by prepending it to mant_in, creating a 24-bit significand. This 24-bit value is then logically right-shifted by exp_diff positions to produce the 24-bit mant_out. If exp_diff is 24 or greater, all active bits are shifted out and mant_out must be exactly 0.

Constraints

  • Use only combinational logic.
  • Do not use sequential elements or clocks.
  • The output mant_out must be exactly 24 bits wide.

Topics

CombinationalALUFloating PointShifter

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
  • ALU Flag Evaluation Branch LogicHard
  • 4-bit Carry Lookahead BlockHard
  • BCD Adder Correction BlockMedium
  • 1-Bit ALU SliceMedium
  • Four-Bit Bus AdderEasy
  • Debugging Twos Complement OverflowMedium

Browse all problems · Learning tracks