-
Notifications
You must be signed in to change notification settings - Fork 588
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
Make inline memory initialization the default #2260
base: main
Are you sure you want to change the base?
Conversation
This seems contains a breaking change? There should be a deprecation flow. |
Good point. How would you suggest we approach this? |
* [[https://github.com/freechipsproject/chisel3/wiki/Chisel-Memories#loading-memories-in-simulation "Loading Memories | ||
* in Simulation"]] | ||
*/ | ||
object loadMemoryFromFile { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see any LoadMemoryTransform
here?
Is the file name correct?
I guess loadMemoryFromFile
is just a rename from loadMemoryFromFileInline
?
This introduce a API breaking change, and seems didn't do anything else?
Seems currently this PR is a draft PR @carlosedp? Sorry I merged master into this(I thought it's done) |
@sequencer : I told @carlosedp to make a PR in order to get the discussion started. Essentially what this PR does is to make a new public API |
While we are talking about this, I just remembered one of the missing features which are needed before we can make "inline" memory loading the default:
|
Ah yes, you mean the problem pointed-out by #1289 right? |
I see, I didn't object keeping deprecation flow for |
Ping... news about this? |
Fixes #1293
Contributor Checklist
docs/src
?Type of Improvement
API Impact
This PR changes the default memory initialization based on files by using the inline
readmem[bh]
statements instead of the previous SV Bind module and also moves the API tochisel3.util
.The bind module initialization is available on
chisel3.util.experimental
asloadMemoryFromFileBind
.Backend Code Generation Impact
No changes on backend, just API to generate initialization.
Desired Merge Strategy
Release Notes
This PR changes the default memory initialization based on external files by using the inline
readmem[bh]
statements instead of the previous SV Bind module and also moves the API tochisel3.util
.Reviewer Checklist (only modified by reviewer)
3.3.x
, [small] API extension:3.4.x
, API modification or big change:3.5.0
)?Please Merge
?