Skip to content

SystemVerilog: unbased unsized literals #1022

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
Mar 17, 2025
Merged

Conversation

kroening
Copy link
Member

This adds the SystemVerilog unbased unsized literals.

@kroening kroening force-pushed the unbased-unsized-literals branch from ff58637 to eec8f38 Compare March 16, 2025 21:15
@kroening kroening marked this pull request as ready for review March 16, 2025 21:21
@kroening kroening force-pushed the unbased-unsized-literals branch from eec8f38 to bf99484 Compare March 16, 2025 21:34
Comment on lines 136 to 143
if(rest == "'0")
{
return from_integer(0, unsignedbv_typet{1});
}
else if(rest == "'1")
{
return from_integer(0, unsignedbv_typet{1});
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be if(rest == "'0" || rest == "'1") to make clear there is no copy&paste mistake here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is a copy/paste error; extended the test.

This adds the SystemVerilog unbased unsized literals.
@kroening kroening force-pushed the unbased-unsized-literals branch from bf99484 to 187ba98 Compare March 17, 2025 16:12
@kroening kroening merged commit 224fb25 into main Mar 17, 2025
9 checks passed
@kroening kroening deleted the unbased-unsized-literals branch March 17, 2025 17:00
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