BitCompressor constructor

BitCompressor(
  1. Logic compressBits
)

Construct a column compressor

Implementation

BitCompressor(Logic compressBits) {
  this.compressBits = addInput(
    'compressBits',
    compressBits,
    width: compressBits.width,
  );
  addOutput('sum');
  addOutput('carry');
}