OHToUInt
chisel3.util.OHToUInt
object OHToUInt
Returns the bit position of the sole high bit of the input bitvector.
Inverse operation of UIntToOH.
Attributes
- Note
-
assumes exactly one high bit, results undefined otherwise
- Example
-
OHToUInt("b0100".U) // results in 2.U - Source
- OneHot.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
OHToUInt.type
Members list
In this article