1
0

fix PriorityEncoderOH bug

This commit is contained in:
Andrew Waterman 2012-07-30 18:28:54 -07:00
parent 2ec76390e3
commit be4fa936dd

View File

@ -78,7 +78,7 @@ object PriorityEncoder
object PriorityEncoderOH
{
def apply(in: Bits): Bits = Vec(apply((0 until in.getWidth).map(in(_)))){Bits()}.toBits
def apply(in: Bits): Bits = Vec(apply((0 until in.getWidth).map(in(_)))){Bool()}.toBits
def apply(in: Seq[Bits]): Seq[Bool] = {
var none_hot = Bool(true)
val out = collection.mutable.ArrayBuffer[Bool]()