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

[Router] Fix conflicted packet_rule entries #1087

Merged
merged 6 commits into from
Feb 10, 2025
Merged

Conversation

Yu-Zhewen
Copy link
Contributor

@Yu-Zhewen Yu-Zhewen commented Feb 6, 2025

Each packet_rules operation can contain up to four individual packet_rule entries. These entries must be unique and sorted in the IR, as the first matching entry takes priority.

@@ -210,8 +210,10 @@
// CHECK: aie.rule(24, 0, %[[VAL_69]])
// CHECK: }
// CHECK: aie.packet_rules(EAST : 0) {
// CHECK: aie.rule(24, 8, %[[VAL_70]])
// CHECK: aie.rule(24, 8, %[[VAL_71]])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good example to show the issue. Previously, both rules here share the exact same condition, which is incorrect and causes data to go through the wrong arbiter.

@Yu-Zhewen Yu-Zhewen force-pushed the zhewen_packet_rules branch from a84e747 to 29e67c7 Compare February 7, 2025 09:47
@Yu-Zhewen Yu-Zhewen requested a review from jtuyls February 7, 2025 11:04
Copy link
Collaborator

@jtuyls jtuyls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, could add a description to the PR which explains the changes needed with an example for future reference?

Copy link
Collaborator

@jtuyls jtuyls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Yu-Zhewen Yu-Zhewen enabled auto-merge (squash) February 10, 2025 19:42
@Yu-Zhewen Yu-Zhewen merged commit 5e7f01f into main Feb 10, 2025
7 checks passed
@Yu-Zhewen Yu-Zhewen deleted the zhewen_packet_rules branch February 10, 2025 20:47
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.

2 participants