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 控制器核心,用于 FPGA 设计。它使用 Migen 以 Python 编写,是 LiteX 库的一部分。
它是库还是独立的 IP 模块?两者都是。你可以把它当作 LiteX 库使用,也可以生成独立的 Verilog RTL,放进你平常的设计流程里。
怎么让它跑起来?安装 Python 3.6+ 和 FPGA 厂商的开发工具,然后按照 LiteX wiki 上的安装指南安装 LiteX 和各个核心。集成示例可以在 LiteX-Boards 和 examples 目录里找到。
用它一定要装 Migen 或 LiteX 吗?通常需要。这个核心是用 Migen 描述的,主要的使用方式是作为 LiteX 库。也可以从 YAML 描述生成独立的 Verilog。
支持哪些 DRAM 类型和 FPGA?目前有 SDR、DDR2/DDR3、Ultrascale 上的 DDR4、Xilinx 上的 LPDDR4 和 LPDDR5 的 PHY,还有 Lattice ECP5、Nexus 和 Gowin GW2A/GW5A 上的 DDR3 PHY。RPC PHY 仍在开发中。
它是用在真实项目里,还是只是个业余项目?它已用于商业和开源设计,比如 HDMI2USB、NeTV2 和 USBSniffer。维护者 EnjoyDigital 提供付费支持和咨询服务。
没有 FPGA 开发板也能试用吗?可以。针对 Verilator 有 DFI 级别的 SDRAM 仿真模型,LPDDR4 和 LPDDR5 的 PHY 也包含带 DRAM 模型的 Verilator 仿真 PHY。
能用在闭源产品里吗?可以。它采用两条款 BSD 许可证发布,允许用于闭源的专有设计。作者希望使用时注明出处,并欢迎贡献代码,但并不强制要求。
这个前端提供哪些用户接口?提供 Native、AXI-MM 和 Wishbone 用户端口,还有一个可配置的交叉开关,替你在各端口之间仲裁。另外还包含 DMA 读写器和 BIST。
核心内置了哪些功能?自动预充电、带 ZQ 短校准的周期性刷新(最多可推迟 8 次刷新),完全流水线化的操作,以及 ECC 纠错。
不写 Python 能生成这个核心吗?可以。可以从 YAML 描述生成独立的 Verilog 核心,包括控制器、PHY 和初始化固件,并可选择 Native、Wishbone、Avalon、AXI 或 FIFO 用户端口。
大小
5.1 MB
星标
590
更新
提交Nov 17
时长
11年
提交 · 90 天