Fix PopCountAtLeast, un-breaking BTB
This commit is contained in:
parent
5392219d86
commit
4fd03ffdf1
@ -44,7 +44,7 @@ package object util {
|
||||
|
||||
object PopCountAtLeast {
|
||||
private def two(x: UInt): (Bool, Bool) = x.getWidth match {
|
||||
case 1 => (Bool(true), Bool(false))
|
||||
case 1 => (x.toBool, Bool(false))
|
||||
case n =>
|
||||
val half = x.getWidth / 2
|
||||
val (leftOne, leftTwo) = two(x(half - 1, 0))
|
||||
|
Loading…
Reference in New Issue
Block a user