The current implementations of selectIndex and selectFrom generate a big Case, which is functionally correct but leads to bigger SV generated outputs. It would be nice to have a way to more easily access the APIs and also generate nicer SV.
Desired solution
Add selectIndex to LogicArray and maybe Logic as well, with a custom SV module that generates a one-liner (or inlineable).
Motivation
The current implementations of
selectIndex
andselectFrom
generate a bigCase
, which is functionally correct but leads to bigger SV generated outputs. It would be nice to have a way to more easily access the APIs and also generate nicer SV.Desired solution
Add
selectIndex
toLogicArray
and maybeLogic
as well, with a custom SV module that generates a one-liner (or inlineable).Alternatives considered
No response
Additional details
No response