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

Uses of a bit vector prevents generation of negative values. #2359

Open
MikeOpenHWGroup opened this issue Feb 2, 2024 · 1 comment
Open
Assignees
Labels

Comments

@MikeOpenHWGroup
Copy link
Member

MikeOpenHWGroup commented Feb 2, 2024

In core-v-verif pull-request #2357 we discussed the need for negative values of a generated gpr value. The purpose of this issue is to ensure we don't forget about that discussion.

@MikeOpenHWGroup MikeOpenHWGroup changed the title I do not understand the comment. reg_val is a bit vector which is unsigned. Uses of a bit vector prevents generation of negative values. Feb 2, 2024
@XavierAubert
Copy link

As discussed with @pascalgouedo this morning, if we get that correctly, in this specific case, this only limits to locations set higher than 32'h8000_0000, instead of around 32'h8000_0000 as you ask, and thus, in the end, it doesn't quite impact the required behaviour, which is preventing stores to corrupt program data.

Tell us if we missed something else on that topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants