FloatingPointValue constructor
- required LogicValue sign,
- required LogicValue exponent,
- required LogicValue mantissa,
- bool explicitjBit = false,
- 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);