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

[FIRRTL][InferResets] Generalize FART to support sync reset #7476

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

jackkoenig
Copy link
Contributor

The FullAsyncResetAnnotation is deprecated and replaced by FullResetAnnotation which includes a resetType argument that must be 'sync' or 'async'. IgnoreFullAsyncResetAnnotation is deprecated and replaced by ExcludeFromFullResetAnnotation. The new annotations are in package circt.

The behavior of FullResetAnnotation with resetType = 'async' is identical to that of the old FullAsyncResetAnnotation. The behavior of FullResetAnnotation with resetType = 'sync' is very similar, except the type of the reset wired through will be UInt<1>, and any registers with an existing reset at all (both sync or async) will be left unchanged (resetType = 'async' will add async resets to registers with existing sync resets).

@jackkoenig jackkoenig force-pushed the dev/jackkoenig/fart-to-frt branch from 6ec0d21 to 75619d0 Compare August 8, 2024 22:20
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

LGTM!

The new annotations and deprecation of the old ones looks good. The changes to the existing InferResets pass also look solid. Thanks for adding all the additional tests to ensure this works!

lib/Dialect/FIRRTL/Transforms/InferResets.cpp Outdated Show resolved Hide resolved
docs/Dialects/FIRRTL/FIRRTLAnnotations.md Show resolved Hide resolved
The FullAsyncResetAnnotation is deprecated and replaced by
FullResetAnnotation which includes a resetType argument that must be
'sync' or 'async'.  IgnoreFullAsyncResetAnnotation is deprecated and
replaced by ExcludeFromFullResetAnnotation. The new annotations are in
package circt.

The behavior of FullResetAnnotation with resetType = 'async' is
identical to that of the old FullAsyncResetAnnotation. The behavior of
FullResetAnnotation with resetType = 'sync' is very similar, except the
type of the reset wired through will be UInt<1>, and any registers with
an existing reset at all (both sync or async) will be left unchanged
(resetType = 'async' will add async resets to registers with existing
sync resets).
@jackkoenig jackkoenig force-pushed the dev/jackkoenig/fart-to-frt branch from 75619d0 to bc805bb Compare August 9, 2024 04:03
@jackkoenig jackkoenig merged commit fa95071 into main Aug 9, 2024
4 checks passed
@jackkoenig jackkoenig deleted the dev/jackkoenig/fart-to-frt branch August 9, 2024 04:39
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