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

Generalize where wire_inliner looks for go and done ports. #2114

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

nathanielnrn
Copy link
Contributor

Now wire_inliner more generally looks for ports marked with @go and @done. This has proved necessary when creating an axi_seq_mem (#1733) that has it's content_en marked with @go to conform to primitive memory signatures.

@nathanielnrn nathanielnrn added the C: calyx-opt Optimization or analysis pass label Jun 6, 2024
@nathanielnrn nathanielnrn requested a review from calebmkim June 6, 2024 17:23
@calebmkim
Copy link
Contributor

This lgtm, but makes me wonder: what would happen if someone tried to define a component with mulitple sets of go-done ports?

Either way though, this is definitely better than what we have currently so I say merge.

@nathanielnrn
Copy link
Contributor Author

This PR will cause a panic. I imagine the behavior we want is to have all go/done signals OR'd together? I'm not sure how'd we best express this in the guard macro.

@nathanielnrn nathanielnrn merged commit 427babc into main Jun 6, 2024
18 checks passed
@nathanielnrn nathanielnrn deleted the general-wire-inliner branch June 6, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: calyx-opt Optimization or analysis pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants