oneHotToBinary method

LogicValue oneHotToBinary()

Evaluates the default OneHotToBinary codec in ROHD simulation.

The input should have exactly one set bit. Invalid and unknown inputs follow the selected codec's behavior, which depends on input width. For unknown inputs, the case codec can differ in generated RTL.

Implementation

LogicValue oneHotToBinary() => OneHotToBinary(Const(this)).binary.value;