google / google/xls

[enhancement] receive predicates based on receive data

Open
#3,167 0 comments 0 reactions 0 assignees View on GitHub
dslx enhancement
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

### What's hard to do? (limit 100 words)

There are some cases where you want to perform a receive based on some element of the received data, for example AXI thread id. You can work around this with extra state to hold values you aren't ready to deal with, but that adds area and performs a receive you might not want to do for other reasons.

Codegen'ing these could be annoying because it increases the possibility of cycles.

### Current best alternative workaround (limit 100 words)

Extra state.

### Your view of the "best case XLS enhancement" (limit 100 words)

Perhaps a form of receive that accepts a lambda `T -> bool`

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.