ofBigInt static method
Converts BigInt
value
to a valid LogicValue with width
number of bits.
width
must be greater than or equal to 0.
Implementation
static LogicValue ofBigInt(BigInt value, int width) => width > INT_BITS
? _bigLogicValueOrFilled(value, BigInt.zero, width)
: _smallLogicValueOrFilled(value.toIntUnsigned(width), 0, width);