FixedPoint constructor

FixedPoint({
  1. required int integerWidth,
  2. required int fractionWidth,
  3. bool signed = true,
  4. String? name,
})

Constructs a FixedPoint signal.

Implementation

FixedPoint(
    {required int integerWidth,
    required int fractionWidth,
    bool signed = true,
    String? name})
    : this._(
          Logic(
              width: integerWidth + (signed ? 1 : 0),
              name: 'integer',
              naming: Naming.mergeable),
          Logic(
              width: fractionWidth,
              name: 'fraction',
              naming: Naming.mergeable),
          signed,
          name: name);