README проекта с github.com/enjoy-digital/litedram. Одним файлом markdown: README.md.
__ _ __ ___ ___ ___ __ ___
/ / (_) /____ / _ \/ _ \/ _ | / |/ /
/ /__/ / __/ -_) // / , _/ __ |/ /|_/ /
/____/_/\__/\__/____/_/|_/_/ |_/_/ /_/
Copyright 2015-2026 / EnjoyDigital
A small footprint and configurable DRAM core
powered by Migen & LiteX
LiteDRAM provides a small footprint and configurable DRAM core.
LiteDRAM is part of LiteX libraries whose aims are to lower entry level of complex FPGA cores by providing simple, elegant and efficient implementations of components used in today's SoC such as Ethernet, SATA, PCIe, SDRAM Controller...
Using Migen to describe the HDL allows the core to be highly and easily configurable.
LiteDRAM can be used as LiteX library or can be integrated with your standard design flow by generating the verilog rtl that you will use as a standard core.
PHY:
ecp5ddrphy_with_ratio)Core:
Frontend:
LiteDRAM is already used in commercial and open-source designs:
If you want to support these features, please contact us at florent [AT] enjoy-digital.fr.
The DRAM Controller & PHYs manual is the reference of the project, from the primers to the integration, the examples, the debugging and the registers:
A standalone Verilog core (controller + PHY + init firmware, with native/Wishbone/Avalon/AXI/FIFO user ports) can be generated from a YAML description:
$ litedram_gen examples/arty.yml
See doc/gen.md for the command line, the YAML keys, the native/Wishbone port protocols and the examples, and the Integration chapter of the manual.
Unit tests are available in ./test/. To run all the unit tests:
$ python3 -m pytest test
test_examples.py builds the LiteX BIOS (RISC-V GCC toolchain) and test_lpddr4.py/test_lpddr5.py
are long simulations: the CI runs them only in its full job (with LITEDRAM_TEST_FULL=1 to enable
the slow configurations); skip them with:
$ python3 -m pytest test --ignore=test/test_examples.py --ignore=test/test_lpddr4.py --ignore=test/test_lpddr5.py
Tests can also be run individually:
$ python3 -m pytest test/test_name.py
LiteDRAM is released under the very permissive two-clause BSD license. Under the terms of this license, you are authorized to use LiteDRAM for closed-source proprietary designs. Even though we do not require you to do so, those things are awesome, so please do them if possible:
We love open-source hardware and like sharing our designs with others.
LiteDRAM is developed and maintained by EnjoyDigital.
If you would like to know more about LiteDRAM or if you are already a happy user and would like to extend it for your needs, EnjoyDigital can provide standard commercial support as well as consulting services.
So feel free to contact us, we'd love to work with you! (and eventually shorten the list of the possible improvements :)
E-mail: florent [AT] enjoy-digital.fr