Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DMA] Add combine_token op #130

Merged
merged 1 commit into from
Sep 1, 2024
Merged

[DMA] Add combine_token op #130

merged 1 commit into from
Sep 1, 2024

Conversation

zero9178
Copy link
Member

@zero9178 zero9178 commented Sep 1, 2024

Being able to dynamically combine tokens to await a runtime-dependent number of DMA transfers is a requirement for implementing legalization of DMA transfers in the dma dialect.

This PR therefore adds the combined_tokens op which combines multiple tokens into one. The lowering for Snitch leverages the monotonicity guarantee of IDs to combine them. Note that this only works with a single channel DMA right now.

As this subsumes the multi-token capabilities of wait_for_transfers, it has been renamed to just wait_for_transfer and only accepts a single token input now.

Being able to dynamically combine tokens to await a runtime-dependent number of DMA transfers is a requirement for implementing legalization of DMA transfers in the `dma` dialect.

This PR therefore adds the `combined_tokens` op which combines multiple tokens into one.
The lowering for Snitch leverages the monotonicity guarantee of IDs to combine them. Note that this only works with a single channel DMA right now.

As this subsumes the multi-token capabilities of `wait_for_transfers`, it has been renamed to just `wait_for_transfer` and only accepts a single token input now.
@zero9178 zero9178 merged commit ec8499a into main Sep 1, 2024
1 check passed
@zero9178 zero9178 deleted the combine-token-op branch September 1, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant