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

Assertions (and their exclusive inputs) should be guarded by `ifdefs #1942

Open
grebe opened this issue Feb 20, 2025 · 1 comment
Open

Assertions (and their exclusive inputs) should be guarded by `ifdefs #1942

grebe opened this issue Feb 20, 2025 · 1 comment
Labels
codegen Related to emitting (System)Verilog.

Comments

@grebe
Copy link
Collaborator

grebe commented Feb 20, 2025

Our assertions should be guarded by `ifdef guards. This allows users to easily disable assertions without a recompile and also prevents assertions from being visible to synthesis- I believe yosys in particular can leave in stuff that causes problems for openroad if assertions aren't stripped.

Ideally, we'd also guard all the wires/regs that only feed assertions (or other wires/regs that only feed assertions) in those same guards to avoid "value not read" issues.

@grebe grebe added the codegen Related to emitting (System)Verilog. label Feb 20, 2025
@grebe
Copy link
Collaborator Author

grebe commented Feb 20, 2025

Related: #1048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codegen Related to emitting (System)Verilog.
Projects
None yet
Development

No branches or pull requests

1 participant