UIntToOH

chisel3.util.UIntToOH
object UIntToOH

Returns the one hot encoding of the input UInt.

Attributes

Example
UIntToOH(2.U) // results in "b0100".U
Source
OneHot.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
UIntToOH.type

Members list

Value members

Concrete methods

def apply(in: UInt): UInt

Attributes

Source
OneHot.scala
def apply(in: UInt, width: Int): UInt

Attributes

Source
OneHot.scala