Skip to content

[enhancement] receive predicates based on receive data #3167

@grebe

Description

@grebe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dslxDSLX (domain specific language) implementation / front-endenhancementNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions