enjoy-digital / litedram

Small footprint and configurable DRAM core
Other
365 stars 115 forks source link

sdram_init() vs. init_sequence() #315

Open epsilon537 opened 1 year ago

epsilon537 commented 1 year ago

Hi,

I'm integrating LiteDRAM as a standard core into my SoC (https://github.com/epsilon537/boxlambda/). I'm using function sdram_init() to initialize SDRAM. This function is not part of the litedram repository, however. It's part of the litex repository. On the other hand, the software layer that gets generated along with the core does contain a function called init_sequence(). Is that a self-contained, sufficiently complete initialization sequence, i.e. is the intent that I just use init_sequence() and not sdram_init()? Init_sequence() does not do any leveling.

The whole thing works beautifully, btw. Thank you very much for making this core available!