binaryToOneHot method

LogicValue binaryToOneHot()

Evaluates BinaryToOneHot for this binary index.

The output has 2^width bits and follows the codec's four-state behavior.

Implementation

LogicValue binaryToOneHot() => BinaryToOneHot(Const(this)).encoded.value;