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

Fix load memory from file to work with binary #1583

Conversation

Quarky93
Copy link
Contributor

@Quarky93 Quarky93 commented Sep 9, 2020

Passed in hexOrBinary parameter to ChiselLoadMemoryAnnotation

Test included

Fixes #1582

API Impact

No change in API

Backend Code Generation Impact

Allows $readmemb to be generated when the user specifies MemoryLoadFileType.Binary.

Desired Merge Strategy

Squash

Release Notes

Fixed bug in loadMemoryFromFile that caused the hexOrBinary parameter to be ignored.

@Quarky93 Quarky93 requested a review from a team as a code owner September 9, 2020 16:02
@Quarky93 Quarky93 requested review from chick and removed request for a team September 9, 2020 16:02
@CLAassistant
Copy link

CLAassistant commented Sep 9, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@jackkoenig jackkoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@jackkoenig jackkoenig added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Sep 9, 2020
@jackkoenig jackkoenig modified the milestones: 3.3.x, 3.2.x Sep 9, 2020
@mergify mergify bot merged commit 88265ee into chipsalliance:master Sep 9, 2020
mergify bot pushed a commit that referenced this pull request Sep 9, 2020
* fix loadMemoryFromFile to work with binary

Passed in hexOrBinary parameter to ChiselLoadMemoryAnnotation

* Added test for binary format support in loadMemoryFromFile

* Added test for binary format support in loadMemoryFromFile

(cherry picked from commit 88265ee)
mergify bot pushed a commit that referenced this pull request Sep 9, 2020
* fix loadMemoryFromFile to work with binary

Passed in hexOrBinary parameter to ChiselLoadMemoryAnnotation

* Added test for binary format support in loadMemoryFromFile

* Added test for binary format support in loadMemoryFromFile

(cherry picked from commit 88265ee)
@mergify mergify bot added the Backported This PR has been backported label Sep 9, 2020
mergify bot added a commit that referenced this pull request Sep 9, 2020
* fix loadMemoryFromFile to work with binary

Passed in hexOrBinary parameter to ChiselLoadMemoryAnnotation

* Added test for binary format support in loadMemoryFromFile

* Added test for binary format support in loadMemoryFromFile

(cherry picked from commit 88265ee)

Co-authored-by: HappyQuark <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported This PR has been backported Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

loadMemoryFromFile always results in $readmemh even if the user specifies the Binary option
3 participants