8000 Fix +: and -: unpacked array slicing when array has nonzero low index. (#5345) by jamesrbailey · Pull Request #5387 · verilator/verilator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix +: and -: unpacked array slicing when array has nonzero low index. (#5345) #5387

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, 2024

Conversation

jamesrbailey
Copy link
Contributor

Resolves #5345

Subtracts low index of unpacked array from msb & lsb calculations during plus/minus slice replacement. This is necessary when the low index is not zero, and I think was simply missed previously as this may not be a common coding style.

I have updated the existing t_unpacked_slice test so that it defines the source array parameters to have a negative low indices. I believe this should expand test coverage to this particular issue without sacrificing existing coverage. I'm open to this deserving its own test though.

I have done very few pull requests on github so please let me know if I've done something incorrectly here.

@jamesrbailey
Copy link
Contributor Author

I have just updated my github profile to match my name exactly with what I added to the CONTRIBUTOR file, but I'm not sure how to retrigger the contributor check. I suppose a maintainer may need to do this? My .gitconfig was already correct.

@wsnyder
Copy link
Member
wsnyder commented Aug 19, 2024

As it runs on your repo I don't think I can retrigger the test.

It should retest if you give github a new commit, or just modify the last one with a new date e.g.

git ci --amend "....prev-message"
git push --force

@wsnyder wsnyder merged commit 99a43b7 into verilator:master Aug 20, 2024
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indexed vector part-select behaves incorrectly on arrays that have nonzero starting index range
2 participants
0