Chisel
the one hot encoding of the input UInt
val myOH = UIntToOH(UInt(5), 8) -> 0x20 val myOH2 = UIntToOH(UInt(0), 8) -> 0x01
the one hot encoding of the input UInt