8000 [Seq][HW] Add a macro to enable register initializers by nandor · Pull Request #5222 · llvm/circt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Seq][HW] Add a macro to enable register initializers #5222

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

Merged
merged 1 commit into from
May 19, 2023

Conversation

nandor
Copy link
Contributor
@nandor nandor commented May 17, 2023

ENABLE_INITIAL_REG_ is used to permit fine-grained control over register initializers. It is always defined if SYNTHESIS is not defined, but it can also be externally overridden.

@nandor nandor requested review from seldridge, darthscsi and uenoku May 17, 2023 19:26
`ENABLE_INITIAL_REG_` is used to permit fine-grained control over register initializers.
It is always defined if `SYNTHESIS` is not defined, but it can also be externally overridden.
@nandor nandor force-pushed the dev/nandor/init-macro branch from 138f0db to 4a8db97 Compare May 18, 2023 13:37
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

I like the more fine-grained ability to choose what you want. I'd argue this actually cleans up the emitted Verilog by guarding blocks with defines that describe what they are doing as opposed to SYNTHESIS which is an omnibus option.

We should roll this out for all SYNTHESIS-related options and then make these macros defined in the FIRRTL ABI. I'm going to see if @carlosedp can update #5203 to use this style.

@nandor nandor merged commit 28e76f8 into main May 19, 2023
@nandor nandor deleted the dev/nandor/init-macro branch May 19, 2023 15:45
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
0