ofLogicValue method

FxvType ofLogicValue(
  1. LogicValue val
)

Construct a FixedPointValue from a LogicValue

Implementation

FxvType ofLogicValue(LogicValue val) => populate(
      integer: val.getRange(
          fractionWidth, integerWidth + fractionWidth + (signed ? 1 : 0)),
      fraction: val.getRange(0, fractionWidth),
    );