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

[circt-bmc] Add simple initial value support to ExternalizeRegisters #7728

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

TaoBi22
Copy link
Contributor

@TaoBi22 TaoBi22 commented Oct 24, 2024

Adds support for initial values (as long as they're defined directly by a hw.constant op inside a seq.initial) to ExternalizeRegisters - I'll add the support for this in circt-bmc as a follow-up to slim down the diff. Initial values are added in an ArrayAttr on the module op - if there's no initial value then it just adds a unit attr

@TaoBi22 TaoBi22 requested a review from maerhart October 24, 2024 17:55
Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

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

Very cool! Thanks for adding that! 🎉

lib/Tools/circt-bmc/ExternalizeRegisters.cpp Outdated Show resolved Hide resolved
lib/Tools/circt-bmc/ExternalizeRegisters.cpp Outdated Show resolved Hide resolved
lib/Tools/circt-bmc/ExternalizeRegisters.cpp Outdated Show resolved Hide resolved
@TaoBi22 TaoBi22 merged commit b173a27 into llvm:main Oct 24, 2024
4 checks passed
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