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

Bug fix: shuffled array assignments incorrectly collapsed in generated SV #504

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

mkorbel1
Copy link
Contributor

@mkorbel1 mkorbel1 commented Aug 7, 2024

Description & Motivation

The checks for collapsing array assignments in generated SystemVerilog had checked that all elements from one array are assigned to all elements of another array. However, it did not check that the order on the driver matched the order on the receiver. This means if you did all elements from one array to all elements of another array, but shuffled the order, the assignments would be incorrectly collapsed and the generated SV would be incorrect.

This PR introduces a fix for this bug and adds a test which failed prior to the fix, but now passes.

Related Issue(s)

N/A

Testing

Added new test

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

No

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

No

@mkorbel1 mkorbel1 merged commit 9910774 into intel:main Aug 7, 2024
3 checks passed
@mkorbel1 mkorbel1 deleted the arr_shuff_nocollapse branch August 7, 2024 16:16
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.

1 participant