llvm / llvm/circt

[ESI] Lower ports with arrays of channels

Open
#5,143 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ESI
Dominant language
C++
Stars
2.2k
Forks
524
Avg merge
3d 2h
Merged PRs (30d)
46

Description

When designing an arbiter (something which accepts N channels and muxes them into one), it'd be ideal to support lowering the following:

```
hw.module @Arb (%inputs: !hw.array<4 x !esi.channel>) -> ()
```

to something like:

```
hw.module @Arb (%inputs: !hw.array<4 x i32>, %inputs_valids: !hw.array<4 x i1>) -> (%inputs_readys: !hw.array<4 x i1>)
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides no file paths, tests, or entry points to begin from. Start by locating the existing ESI channel lowering and determine how array-typed channels are currently handled. Done means lowering the shown array-of-channel module signature into value, valid, and ready arrays with the stated types.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.