Compressor2 constructor

Compressor2(
  1. Logic compressBits
)

Construct a 2-input compressor (half-adder)

Implementation

Compressor2(super.compressBits) {
  sum <= compressBits.xor();
  carry <= compressBits.and();
}