FloatingPoint.inf constructor
Construct a FloatingPoint that represents infinity.
Implementation
factory FloatingPoint.inf(
{required int exponentWidth,
required int mantissaWidth,
Logic? sign,
bool negative = false,
bool explicitJBit = false,
bool subNormalAsZero = false}) {
final signLogic = Logic()..gets(sign ?? Const(negative));
final exponent = Const(1, width: exponentWidth, fill: true);
final mantissa = Const(0, width: mantissaWidth, fill: true);
return FloatingPoint._(
signLogic, exponent, mantissa, explicitJBit, subNormalAsZero);
}