Multiplier constructor

Multiplier(
  1. Logic a,
  2. Logic b, {
  3. required bool signed,
  4. String name = 'unnamed_module',
})

Take input a and input b and return the product of the multiplication result.

Implementation

Multiplier(Logic a, Logic b, {required this.signed, super.name}) {
  this.a = addInput('a', a, width: a.width);
  this.b = addInput('b', b, width: b.width);
}