Compressor2 constructor
- Logic compressBits
Construct a 2-input compressor (half-adder)
Implementation
Compressor2(super.compressBits) {
sum <= compressBits.xor();
carry <= compressBits.and();
}
Construct a 2-input compressor (half-adder)
Compressor2(super.compressBits) {
sum <= compressBits.xor();
carry <= compressBits.and();
}