FloatingPoint constructor

FloatingPoint({
  1. required int exponentWidth,
  2. required int mantissaWidth,
  3. bool explicitJBit = false,
  4. bool subNormalAsZero = false,
  5. String? name,
})

FloatingPoint constructor for a variable size binary floating point number.

Implementation

FloatingPoint(
    {required int exponentWidth,
    required int mantissaWidth,
    bool explicitJBit = false,
    bool subNormalAsZero = false,
    String? name})
    : this._(
          Logic(name: 'sign', naming: Naming.mergeable),
          Logic(
              width: exponentWidth,
              name: 'exponent',
              naming: Naming.mergeable),
          Logic(
              width: mantissaWidth,
              name: 'mantissa',
              naming: Naming.mergeable),
          explicitJBit,
          subNormalAsZero,
          name: name);