Skip to content

Translate array updates to Bluespec. Refs #19. #22

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 4 commits into from
Sep 9, 2024

Conversation

RyanGlScott
Copy link
Collaborator

This adds the necessary code to translate Copilot expressions that update an element of an array to Bluespec, via Bluespec's update function (for function array updates). This leverages the same logic for initializing vectors one element at a time using update, so this also factors out the code that is shared in common.

Fixes #19.

In a follow-up commit, we will update the code in `copilot-bluespec` to support
`UpdateArray`, which was added in `copilot-core-4.0`.
This adds the necessary code to translate Copilot expressions that update an
element of an array to Bluespec, via Bluespec's `update` function (for function
array updates). This leverages the same logic for initializing vectors one
element at a time using `update`, so this commit factors out the code that is
shared in common.
Doing so requires generalizing the test suite infrastructure a bit, as we need
to be able to display and read array values in order to test `UpdateArray`.
@RyanGlScott RyanGlScott merged commit 8ab3271 into master Sep 9, 2024
3 checks passed
@RyanGlScott RyanGlScott deleted the T19-array-updates branch September 9, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support array updates
1 participant