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

[MooreToCore] Out-of-bounds moore.extract lowered incorrectly #8163

Open
maerhart opened this issue Jan 31, 2025 · 1 comment
Open

[MooreToCore] Out-of-bounds moore.extract lowered incorrectly #8163

maerhart opened this issue Jan 31, 2025 · 1 comment
Labels

Comments

@maerhart
Copy link
Member

In Verilog it's legal to access arrays/bitvectors out-of-bounds which will yield X or 0. Thus a lowBit attribute not within the range is allowed by moore.extract. This is currently lowered 1-1 to comb.extract which does verify that the lowBit attribute is within range. Therefore, MooreToCore needs to check if the attribute is out of bounds and lower it to a constant in that case.

@maerhart maerhart added the Moore label Jan 31, 2025
@Rupantar-Borphukan
Copy link

Rupantar-Borphukan commented Jan 31, 2025

Can you assign me this issue please !

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