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

[SV] Add sv.reserve_names op to disallow names #7024

Merged
merged 2 commits into from
May 14, 2024
Merged

Conversation

teqdruid
Copy link
Contributor

Introduce an op to specific a list of names which Export Verilog should never use anywhere. Applies to module names, port names, reg/wire/logic names, etc.

Introduce an op to specific a list of names which Export Verilog should
never use anywhere. Applies to module names, port names, reg/wire/logic
names, etc.
@teqdruid teqdruid added the Verilog/SystemVerilog Involving a Verilog dialect label May 11, 2024
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.

It makes sense to me to define it as an op. Alternatively we could implement it as a lowering option to disallow specific names but it would be more flexible to import names from op.

lib/Conversion/ExportVerilog/ExportVerilogInternals.h Outdated Show resolved Hide resolved
include/circt/Dialect/SV/SVStatements.td Outdated Show resolved Hide resolved
@teqdruid
Copy link
Contributor Author

@uenoku at the last ODM we agreed it should be an op which lives at the top level.

@teqdruid teqdruid requested a review from uenoku May 13, 2024 19:30
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

@teqdruid teqdruid merged commit f1a822e into main May 14, 2024
4 checks passed
@teqdruid teqdruid deleted the teqdruid/sv-reserve-name branch May 14, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Verilog/SystemVerilog Involving a Verilog dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants