ofLogicValue method

FpvType ofLogicValue(
  1. LogicValue val
)

Construct a FloatingPointValue from a LogicValue

Implementation

FpvType ofLogicValue(LogicValue val) => populate(
      sign: val[-1],
      exponent: val.getRange(mantissaWidth, mantissaWidth + exponentWidth),
      mantissa: val.getRange(0, mantissaWidth),
    );