Skip to content

Commit

Permalink
Merge branch 'main' into 42compress
Browse files Browse the repository at this point in the history
  • Loading branch information
ganewto committed Dec 7, 2024
2 parents d562567 + 2e70ca9 commit 3dd5a04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions lib/src/arithmetic/multiplier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,13 @@ class CompressionTreeMultiplier extends Multiplier {
selectSignedMultiplier: selectSignedMultiplier,
signedMultiplier: signedMultiplier,
);

final compressor = ColumnCompressor(
clk: clk,
reset: reset,
enable: enable,
pp,
use42Compressors: use42Compressors)
..compress();

final adder = ParallelPrefixAdder(
compressor.extractRow(0), compressor.extractRow(1),
ppGen: ppTree);
Expand Down
4 changes: 1 addition & 3 deletions test/arithmetic/multiplier_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,7 @@ void main() {
c.put(bC);

final multiplier = CompressionTreeMultiplyAccumulate(a, b, c, radix,
signedMultiplicand: signed,
signedMultiplier: signed,
signedAddend: true);
signedMultiplicand: signed, signedMultiplier: signed);
final accumulate = multiplier.accumulate;
expect(accumulate.value.toBigInt(), equals(golden));
}
Expand Down

0 comments on commit 3dd5a04

Please sign in to comment.