intel / intel/rohd

Add `selectIndex` directly to `LogicArray` (and `Logic`?) to enable one-liner accesses in generated SV.

Open
#484 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.