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