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

Support after on connections composed of multiple single ports #541

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

cmnrd
Copy link
Collaborator

@cmnrd cmnrd commented Sep 27, 2021

Currently, if we connect multiple individual ports (not multiports) like so o1, o2 -> i1, i2, then after delays do not work as expected. If only single ports are involved, the connection is still treated as a single port connection. This PR modifies the isWide method to also return true, if multiple ports are listed on either side. This small change is sufficient to get after delays working as expected on such connections. I also added a C and a C++ test.

Copy link
Collaborator

@edwardalee edwardalee left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for fixing this.

@edwardalee edwardalee merged commit d0509c6 into master Sep 27, 2021
@edwardalee edwardalee deleted the after-multiple-ports branch September 27, 2021 15:26
@Soroosh129
Copy link
Contributor

Soroosh129 commented Sep 27, 2021

I guess the Python target was overlooked?

Going forward, how should we handle branches with new tests? I'd be more than happy to add the Python-equivalent test in any given branch if the author pings me.

@cmnrd
Copy link
Collaborator Author

cmnrd commented Sep 27, 2021

That is a good question. I wasn't even aware that Python supports multiports, and I wouldn't have known to ping you. So I guess a good first step would be the feature matrix that we discussed a while ago.

Maybe we should just be a bit slower with merging and give everyone the opportunity to have a look. I think the code review is the perfect place to comment on missing tests.

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.

3 participants