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][Import] Remove support for printf-encoded verif. #7030

Conversation

dtzSiFive
Copy link
Contributor

Retain logic to recognize (but not parse or diagnose) printf's of the various "flavors" previously supported so that we can reject designs that rely on this removed support (emit error).

Similar to #7010, but retains logic for recognizing these printf's so we can reject designs with their use instead of silently handling them "incorrectly".

Good parts of this inspired by suggestion on that PR: #7010 (comment) .

This still breaks usage with even recent Chisel, but compared to 7010 informs the user they've used something that doesn't work anymore.

Retain logic to recognize (but not parse or diagnose) printf's
of the various "flavors" previously supported so that we can reject
designs that rely on this removed support (emit error).
@dtzSiFive
Copy link
Contributor Author

This breaks compatibility with FIRRTL generated by not-latest Chisel, although this version will detect this and produce an error. Generally we've mostly kept backwards compatibility with both old FIRRTL and old Chisel-emitted constructs (annotations, etc), and anyway so should only land this if we're ready to change that 👍.

(thoughts/input welcome, LMK 👍)

Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

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

LGTM!

Per reviewer feedback, thanks!
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.

This is a nice approach! 🥳

@dtzSiFive dtzSiFive merged commit 5e2ad89 into llvm:main May 17, 2024
4 checks passed
@dtzSiFive dtzSiFive deleted the feature/drop-printf-encoded-verif-but-keep-superficial-parsing branch May 17, 2024 18:21
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

3 participants