-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
feat: add loadHex function for SparseMemory #1015
base: dev
Are you sure you want to change the base?
Conversation
lib/src/main/scala/spinal/lib/bus/amba4/axi/sim/AxiMemorySim.scala
Outdated
Show resolved
Hide resolved
lib/src/main/scala/spinal/lib/bus/amba4/axi/sim/AxiMemorySim.scala
Outdated
Show resolved
Hide resolved
…cala Co-authored-by: Côme <42908717+numero-744@users.noreply.github.com>
Co-authored-by: Côme <42908717+numero-744@users.noreply.github.com>
I also update the readHexFile function in HexTools. for example. In hex file, there is a line:
this line means that the offset will change to |
Makes sense. Is this ready to merge now? |
Is that possible to add some test for this? It would be good in two points.
|
add Axi4SparseMemory.loadHex test
I have add some test for loadHex |
Closes #1014
Context, Motivation & Description
the
SparseMemory
inlib/src/main/scala/spinal/lib/bus/amba4/axi/sim/AxiMemorySim.scala
has a functionloadbin()
so that in the simulation, we can init the memory through bin file. It may be more convenient that offer a functionloadHex()
, so that we can directly init the memory by hex fileImpact on code generation
Has no impact on code generation, this function impact the simulation of AxiMemorySim
However, I am not sure the implement of
loadHex()
is right, would you please review this code, I have test this function on a hex file.Checklist
/** */
?