litedram README

README проекта с github.com/enjoy-digital/litedram. Одним файлом markdown: README.md.

                                 __   _ __      ___  ___  ___   __  ___
                                / /  (_) /____ / _ \/ _ \/ _ | /  |/  /
                               / /__/ / __/ -_) // / , _/ __ |/ /|_/ /
                              /____/_/\__/\__/____/_/|_/_/ |_/_/  /_/

                                   Copyright 2015-2026 / EnjoyDigital
                               A small footprint and configurable DRAM core
                                        powered by Migen & LiteX

License Ask DeepWiki

[> Intro

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.

[> Features

PHY:

Core:

Frontend:

[> FPGA Proven

LiteDRAM is already used in commercial and open-source designs:

[> Possible improvements

If you want to support these features, please contact us at florent [AT] enjoy-digital.fr.

[> Documentation

The DRAM Controller & PHYs manual is the reference of the project, from the primers to the integration, the examples, the debugging and the registers:

[> Getting started

  1. Install Python 3.6+ and FPGA vendor's development tools.
  2. Install LiteX and the cores by following the LiteX's wiki installation guide.
  3. You can find examples of integration of the core with LiteX in LiteX-Boards and in the examples directory.

[> Standalone core generation

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.

[> Tests

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

[> License

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:

[> Support and consulting

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 :)

[> Contact

E-mail: florent [AT] enjoy-digital.fr

litedram (enjoy-digital/litedram)

Ищем в базе…

Что это такое?LiteDRAM — небольшой настраиваемый контроллер DRAM для проектов на ПЛИС. Написан на Python с использованием Migen и входит в состав библиотек LiteX.
Это библиотека или отдельный IP-блок?И то, и другое. Можно использовать его как библиотеку LiteX или сгенерировать отдельный Verilog RTL и встроить его в свой обычный процесс проектирования.
Как это запустить?Установите Python 3.6+ и инструменты разработки производителя ПЛИС, затем установите LiteX и ядра по инструкции по установке из вики LiteX. Примеры интеграции находятся в LiteX-Boards и в каталоге examples.
Нужны ли Migen или LiteX, чтобы это использовать?Обычно да. Ядро описано на Migen, а основной способ работы — как библиотека LiteX. Отдельный Verilog также можно сгенерировать из описания на YAML.
Какие типы DRAM и ПЛИС поддерживаются?Есть PHY для SDR, DDR2/DDR3, DDR4 на Ultrascale, LPDDR4 и LPDDR5 на Xilinx, а также DDR3 на Lattice ECP5, Nexus и Gowin GW2A/GW5A. PHY для RPC всё ещё в разработке.
Его используют в реальных проектах или это просто хобби?Его используют в коммерческих и открытых проектах, таких как HDMI2USB, NeTV2 и USBSniffer. Сопровождающий, EnjoyDigital, предлагает платную поддержку и консалтинг.
Можно ли попробовать без платы с ПЛИС?Да. Для Verilator есть модели симуляции SDRAM на уровне DFI, а PHY для LPDDR4 и LPDDR5 включают симуляционные PHY для Verilator с моделями DRAM.
Можно ли использовать его в закрытых продуктах?Да. Он распространяется по двухпунктной лицензии BSD, которая допускает закрытые проприетарные проекты. Авторы просят указывать авторство и вносить вклад, но не требуют этого.
Какие пользовательские интерфейсы предлагает фронтенд?Нативные порты пользователя, порты AXI-MM и Wishbone, а также настраиваемый кроссбар, который распределяет запросы между портами, чтобы вам не нужно было этого делать. Также включены модули DMA на чтение и запись и BIST.
Какие функции встроены в ядро?Автоматическая предзарядка, периодическое обновление с короткой калибровкой ZQ (до 8 отложенных обновлений), полностью конвейерная работа и исправление ошибок ECC.
Можно ли сгенерировать ядро без написания Python?Да. Отдельное ядро Verilog, включая контроллер, PHY и прошивку инициализации, можно сгенерировать из описания на YAML с пользовательскими портами native, Wishbone, Avalon, AXI или FIFO.
Какие есть похожие проекты?apex-inference-chip, PLFM_RADAR, mquickjs, rust, tiny-gpu, ios-sweet, ios-topaz, copper-rs
Автор
enjoy-digital
Размер
5.1 MB
Звёзды
590
Обновлён
КоммитNov 17
Возраст
11 г
Коммиты · 90 дней