fix PriorityEncoderOH bug
This commit is contained in:
parent
2ec76390e3
commit
be4fa936dd
@ -78,7 +78,7 @@ object PriorityEncoder
|
|||||||
|
|
||||||
object PriorityEncoderOH
|
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] = {
|
def apply(in: Seq[Bits]): Seq[Bool] = {
|
||||||
var none_hot = Bool(true)
|
var none_hot = Bool(true)
|
||||||
val out = collection.mutable.ArrayBuffer[Bool]()
|
val out = collection.mutable.ArrayBuffer[Bool]()
|
||||||
|
Loading…
Reference in New Issue
Block a user