Skip to content

SystemVerilog: ++/-- for generate for #1238

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
Aug 20, 2025
Merged

Conversation

kroening
Copy link
Member

SystemVerilog generate for allows both pre- and post-increment and -decrement.

@kroening kroening force-pushed the verilog-genvar-prepostincdec branch 3 times, most recently from cc23d27 to 0a44052 Compare August 18, 2025 16:47
@kroening kroening marked this pull request as ready for review August 18, 2025 16:48
@kroening kroening force-pushed the verilog-genvar-prepostincdec branch from 0a44052 to f416817 Compare August 18, 2025 17:39
Comment on lines 295 to 296
throw errort().with_location(for_statement.source_location())
<< "unexpected genvar_iteration item";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be some sort of PRECONDITION or DATA_INVARIANT instead? I don't think a user should be able to trigger this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Replaced by DATA_INVARIANT

SystemVerilog generate for allows both pre- and post-increment and
-decrement.
@kroening kroening force-pushed the verilog-genvar-prepostincdec branch from f416817 to 776c8d9 Compare August 20, 2025 12:14
@kroening kroening merged commit 86b0531 into main Aug 20, 2025
11 checks passed
@kroening kroening deleted the verilog-genvar-prepostincdec branch August 20, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants