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

Update annotation handling to fix partial field reset behavior #6912

Merged
merged 5 commits into from Apr 17, 2024

Conversation

adkian-sifive
Copy link
Contributor

If you have an initial value for a Register that includes DontCare for some of the fields, those fields will be excluded from the Full Async Reset Transform. While InferResets and SFCCompat separately do the right thing, InferResets runs before SFCCompat and removes the FART annotation.

This PR adds additional handling for the FART annotation by letting InferResets pass through annotation

@adkian-sifive adkian-sifive marked this pull request as ready for review April 17, 2024 01:04
@adkian-sifive adkian-sifive force-pushed the adkian-sifive/fart-anno-handling branch from 99f51b1 to 4f91df3 Compare April 17, 2024 01:25
Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

LGTM

A few ideas throughout.

@jackkoenig: Can you review the test case and see if there are any test cases that you have in mind that could be added?

test/firtool/async-reset-anno.fir Outdated Show resolved Hide resolved
lib/Dialect/FIRRTL/Transforms/SFCCompat.cpp Outdated Show resolved Hide resolved
@adkian-sifive adkian-sifive force-pushed the adkian-sifive/fart-anno-handling branch from 10f6948 to fa8267f Compare April 17, 2024 02:30
@adkian-sifive adkian-sifive merged commit 9ecd40e into main Apr 17, 2024
4 checks passed
@adkian-sifive adkian-sifive deleted the adkian-sifive/fart-anno-handling branch April 17, 2024 18:02
cepheus69 pushed a commit to cepheus69/circt that referenced this pull request Apr 22, 2024
…6912)

Update annotation handling in InferResets and SFCCompat
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.

None yet

2 participants