Add `selectIndex` directly to `LogicArray` (and `Logic`?) to enable one-liner accesses in generated SV.
Open
enhancement
help wanted
- Dominant language
- Dart
- Stars
- 489
- Forks
- 88
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 10
Description
### Motivation
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).
### Alternatives considered
_No response_
### Additional details
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.