MultiplyAccumulate constructor

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

Take input a and input b, compute their product, add input c to produce the accumulate result.

Implementation

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