TrivialCompoundAdder constructor

TrivialCompoundAdder(
  1. Logic a,
  2. Logic b, {
  3. String name = 'trivial_compound_adder',
})

Constructs a CompoundAdder.

Implementation

TrivialCompoundAdder(super.a, super.b,
    {super.name = 'trivial_compound_adder'}) {
  sum <= a.zeroExtend(a.width + 1) + b.zeroExtend(b.width + 1);
  sum1 <= sum + 1;
}