FloatingPoint constructor

FloatingPoint({
  1. required int exponentWidth,
  2. required int mantissaWidth,
})

FloatingPoint Constructor for a variable size binary floating point number

Implementation

FloatingPoint({required int exponentWidth, required int mantissaWidth})
    : this._(
          Logic(name: 'sign'),
          Logic(width: exponentWidth, name: 'exponent'),
          Logic(width: mantissaWidth, name: 'mantissa'));