FloatingPointValue constructor

FloatingPointValue({
  1. required LogicValue sign,
  2. required LogicValue exponent,
  3. required LogicValue mantissa,
  4. bool explicitjBit = false,
  5. bool subNormalAsZero = false,
})

Constructor for a FloatingPointValue with the provided sign, exponent, and mantissa.

Implementation

factory FloatingPointValue(
        {required LogicValue sign,
        required LogicValue exponent,
        required LogicValue mantissa,
        bool explicitjBit = false,
        bool subNormalAsZero = false}) =>
    populator(
            exponentWidth: exponent.width,
            mantissaWidth: mantissa.width,
            explicitJBit: explicitjBit,
            subNormalAsZero: subNormalAsZero)
        .populate(sign: sign, exponent: exponent, mantissa: mantissa);