enjoy-digital / litedram

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

simple example to read-write for the standalone core? #235

Closed particlerain closed 3 years ago

particlerain commented 3 years ago

Hi, thanks for the awesome Litex! I already generated the standalone core for ECP5 and now i would like to use the core in my design but need a simple example to read-write in verilog. Can you advice something?

enjoy-digital commented 3 years ago

Hi @particlerain,

thanks for the feedback. I would recommend using the standardized interfaces to start using the core: Wishbone or AXI. Once init_done signals is set (and with init_error not set), you can start using the core as you would do with any other DRAM controller.

You can find an example of integration in these projects:

particlerain commented 3 years ago

Exactly what i was looking for! Thank you.

Btw, in the gen.py you mentioned:

`Current version of the generator is limited to:

Are you hopefully planning to update the gen.py for the standalone core to also include the sdrams? For example IS42S16160?

enjoy-digital commented 3 years ago

Yes this could be done, the current version of the generator only supports the cases we had a need for.

particlerain commented 3 years ago

Yes this could be done, the current version of the generator only supports the cases we had a need for.

Great! Thanks for your replies. I am closing this now.