-
Notifications
You must be signed in to change notification settings - Fork 122
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
Carrying out the LiteDRAM standalone core initialization manually, through wishbone ctrl interface #327
Comments
Hi, |
Hi @dinaabdelbaky ,are you generated core with gen.py script? |
Hi @yyx32 Yes, I generated the core following those steps: |
And I have worked out the issue I have mentioned above, the problem was not the sequence, I didn't notice that the addresses in the CSV were 32 bit wide and the wishbone interface was less wide. A simple fix to that is to take the address of the csr register in the generated csv and do right bit shifts, the amount of bit shift is equivalent 32-wishbone width. |
I will try it.Thanks bro. |
Hi,
I am new to the liteDRAM. I generated the core in a standalone mode, targeting Artix device, I also generated the corr. csv containing the csr addresses. I am using the core with Micron DDR3 model and a testbench to carryout some simulations and explorations of memory operations.
I checked out the generated sdram_phy.h it includes init_sequence, I tried to carry out the above sequence by writing to the corresponding csr registers. However, I didn't see anything happening on the DFI interface or the memory interface.
Please point out what I am missing.
P.S: I have seen some similar questions, and some of the answers points out to writing data from an init file, but I don't really understand it, so please explain how to correctly initialize the core and the memory device.
Thanks in advance!
The text was updated successfully, but these errors were encountered: