Skip to content

Commit

Permalink
final adjustment to approximate compressor selection
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemandse committed Aug 31, 2023
1 parent 219a2ec commit eb0dcdb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private[comptree] class CompressorTree(val sig: Signature, context: Context) ext
context.approx match {
case Miscounting(width) if isApproximate(cntr) =>
inSig.zipWithIndex.forall { case (cnt, col) =>
(lsCol + col) <= width && inBits.colCount(lsCol + col) >= cnt }
(lsCol + col) < width && inBits.colCount(lsCol + col) >= cnt }
case _ =>
inSig.zipWithIndex.forall { case (cnt, col) =>
inBits.colCount(lsCol + col) >= cnt }
Expand Down

0 comments on commit eb0dcdb

Please sign in to comment.