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

Add string literals and evaluate constant operations #161

Closed
fabianschuiki opened this issue May 11, 2020 · 0 comments
Closed

Add string literals and evaluate constant operations #161

fabianschuiki opened this issue May 11, 2020 · 0 comments
Labels
A-consts Area: Constant evaluation. C-enhancement Category: Adding or improving on features. E-easy Call for Participation: Easy issue, good first issue. L-vlog Language: Verilog and SystemVerilog.
Milestone

Comments

@fabianschuiki
Copy link
Owner

Add strings to src/svlog/value.rs and implement constant evaluation for the basic equality checks on strings.

@fabianschuiki fabianschuiki added E-easy Call for Participation: Easy issue, good first issue. L-vlog Language: Verilog and SystemVerilog. C-enhancement Category: Adding or improving on features. A-consts Area: Constant evaluation. labels May 11, 2020
@fabianschuiki fabianschuiki changed the title Add string literals and evaluate constants operations Add string literals and evaluate constant operations May 21, 2020
@fabianschuiki fabianschuiki added this to the v0.11 milestone Jun 16, 2020
fabianschuiki added a commit that referenced this issue Sep 4, 2020
According to the SV manual, string literals are not of `string` type,
but rather behave like a packed array of bits that is `8*length` wide.
The array holds the ASCII characters of the string, with the first
character in the string appearing at the MSB end (such that assigning to
a variable that is too narrow would truncate the beginning of the
string).

Contributes towards #161.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-consts Area: Constant evaluation. C-enhancement Category: Adding or improving on features. E-easy Call for Participation: Easy issue, good first issue. L-vlog Language: Verilog and SystemVerilog.
Projects
None yet
Development

No branches or pull requests

1 participant