-
Notifications
You must be signed in to change notification settings - Fork 61
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
SR10441909: xsim: writememh() works in combination with sformat() and readmemh() does not #766
Comments
Using the fixed filename as in the comment makes it work, but does not work if we use LBAs different from 0, or course. |
As there is no Xilinx SR yet, I changed the Label. I found a circumvention from another Xilinx user: |
Another hint in stackoverflow was without specifying the format for the filename variable: |
I tried |
Regarding the previous suggestion: How should
work? (What should the |
@fhaverkamp Adding a line
I made sure that the line
actually is working ok. |
The following version works with xsim. Joerg K. is trying out if that still works with ncsim.
|
Circumvention can be the following change: |
Frank opened Xilinx SR10441909. |
I have the folloging code in hardware/sim/nvme_lite/nvme_top_i.sv:
and the following code I use to read the data back:
The readmemh() works nicely for ncsim but fails badly for xsim. I tried different variants with fname, declared it static or not, changed from fname to rfname and wfname, all no success. It does not find the file.
The error looks like this:
It complains about the non existing file. But I think the tool lies, the file is there I checked it. But it has trouble to use the rfname string to identify the file correctly.
The text was updated successfully, but these errors were encountered: