Fix PopCountAtLeast, un-breaking BTB
This commit is contained in:
		@@ -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))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user