rohd-hcl
rohd-hcl copied to clipboard
Add `extension`s for converting to/from one-hot/binary
Motivation
Since both OneHotToBinary
and BinaryToOneHot
have one input and one output, it would be nice to access them with an API on top of Logic
and LogicValue
to convert easily.
Desired solution
Add oneHotToBinary
and binaryToOneHot
as extension
s on Logic
and LogicValue
.
Alternatives considered
No response
Additional details
No response