PriorityEncoder

chisel3.util.PriorityEncoder

Returns the bit position of the least-significant high bit of the input bitvector.

Attributes

Note

Multiple bits may be high in the input.

If no bits are high, the result is undefined.

Example
PriorityEncoder("b0110".U) // results in 1.U
Source
OneHot.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(in: Seq[Bool]): UInt

Attributes

Source
OneHot.scala
def apply(in: Bits): UInt

Attributes

Source
OneHot.scala