Skip to content

async2sync: inherit src attributes on new_q and new_d wires#5730

Open
abhinavputhran wants to merge 2 commits intoYosysHQ:mainfrom
abhinavputhran:fix/async2sync-src-attrs
Open

async2sync: inherit src attributes on new_q and new_d wires#5730
abhinavputhran wants to merge 2 commits intoYosysHQ:mainfrom
abhinavputhran:fix/async2sync-src-attrs

Conversation

@abhinavputhran
Copy link

Fixes #5674

async2sync created wires new_q and new_d without src attributes, making them hard to trace in debug output. Fixed by inheriting the src attribute from the original flop cell on all newly created wires across all four conversion paths.

Added a test in tests/sat/async2sync.ys verifying the generated wires carry the correct src attribute.

@abhinavputhran
Copy link
Author

Added more comprehensive tests and confirmed they fail without fix

Copy link
Collaborator

@widlarizer widlarizer left a comment

Choose a reason for hiding this comment

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

I forgot to link the original discussion to the issue. In the original discussion, I mentioned I'll have to fix this in a more sustainable way, but this is a valid interim solution

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.

async2sync doesn't copy src attributes consistently

2 participants