CompressTerm constructor
- CompressTermType type,
- Logic logic,
- List<
CompressTerm> inputs, - int row,
- int col,
CompressTerm constructor
Implementation
CompressTerm(this.type, this.logic, this.inputs, this.row, this.col) {
delay = 0.0;
final deltaDelay = switch (type) {
CompressTermType.carry => carryDelay,
CompressTermType.sum => sumDelay,
CompressTermType.pp => 0.0
};
for (final i in inputs) {
if (i.delay + deltaDelay > delay) {
delay = i.delay + deltaDelay;
}
}
}