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] Add verifier of single MarkDUTAnnotation #7633

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

seldridge
Copy link
Member

Add a CircuitOp verifier that guarantees that there is zero or one modules annotated with a MarkDUTAnnotation. This is important as many passes assume that this is the case. Moving this check into a verifier means that logic checking this behavior in each pass can be removed. I am slightly concerned of the performance cost of doing this as examining the annotations is non-trivial and this will cause that examination to now happen more often.

Add a CircuitOp verifier that guarantees that there is zero or one modules
annotated with a `MarkDUTAnnotation`.  This is important as many passes
assume that this is the case.  Moving this check into a verifier means
that logic checking this behavior in each pass can be removed.  I am
slightly concerned of the performance cost of doing this as examining the
annotations is non-trivial and this will cause that examination to now
happen more often.

Signed-off-by: Schuyler Eldridge <[email protected]>
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!

@seldridge seldridge merged commit 3ffc39c into main Sep 26, 2024
4 checks passed
@seldridge seldridge deleted the dev/seldridge/verify-single-dut-annotation branch September 26, 2024 06:08
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.

2 participants