__ _ __ ______ __
/ / (_) /____ / __/ /_/ /
/ /__/ / __/ -_) _// __/ _ \
/____/_/\__/\__/___/\__/_//_/
Copyright 2012-2026 / EnjoyDigital
A small footprint and configurable Ethernet core
powered by Migen & LiteX
LiteEth provides a small footprint and configurable Ethernet core.
LiteEth 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.
LiteEth 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:
- 10BASE-T PHY directly on FPGA IOs (experimental, see bench/arty_10baset.py).
- MII / RMII 100Mbps PHYs.
- GMII / RGMII / SGMII / 1000BASE-X 1Gbps PHYs.
- SGMII / 2500BASE-X 3.125Gbps PHYs.
- SGMII / 1000BASE-X over LVDS SelectIO 1Gbps PHYs (Titanium, UltraScale/UltraScale+).
- XGMII 10Gbps interface to an external PHY or hard IP.
- 5/10/25GBASE-R native PHYs on Xilinx 7-Series and UltraScale+ transceivers.
- 1000BASE-X / 10GBASE-R native PHYs on Gowin GW5AST-138 transceivers.
- 1000BASE-X native PHY on Cologne Chip GateMate SerDes.
- 100G hardware MAC adapter for the UltraScale+ CMAC (hardware validation pending).
| PHY | ECP5 | Spartan6 | Trion | Titanium | 7-Series | UltraScale | UltraScale+ | Gowin GW5 | Agilex | GateMate |
|---|---|---|---|---|---|---|---|---|---|---|
| 10BASE-T | X | X | X | X | X | X | X | X | X | X |
| MII | X | X | X | X | X | X | X | X | X | X |
| RMII | X | X | X | X | X | X | X | X | X | X |
| GMII | X | X | X | X | ||||||
| RGMII | X | X | X | X | X | X | X | X | X | |
| SGMII / 1000BASE-X | X | X | X | X | X | |||||
| SGMII / 2500BASE-X | X | X | X | |||||||
| LVDS 1000BASE-X | X | X | X | |||||||
| XGMII | X | X | X | X | X | X | X | X | X | X |
| 5GBASE-R | X | X | ||||||||
| 10GBASE-R | X | X | X | |||||||
| 25GBASE-R | X | |||||||||
| 100G (CMAC) | X |
Core:
- Configurable MAC (HW or SW interface), 8 to 512-bit datapaths.
- ARP / ICMP / IGMP (joiner) / UDP (HW or SW) / DHCP.
- PTP (IEEE 1588v2) slave core, Layer 3 (UDP/IPv4) transport.
Frontend:
- Etherbone (Wishbone over UDP: Slave or Master support).
- UDP Streaming (streamer and raw ports).
- AXI-Stream adapter for frame-oriented hardware MACs (e.g. UltraScale+ CMAC).
The Ethernet Core & PHYs manual is the reference of the project, from the primers to the integration, the examples, the debugging and the registers:
- Read it: PDF or HTML (rebuilt nightly).
- Sources and local build: doc/manual.
- Developer notes (datapaths, PHYs, PTP, standalone generator): doc.
LiteEth is already used in commercial and open-source designs:
- MiSoC: http://m-labs.hk/gateware.html
- ARTIQ: http://m-labs.hk/artiq/index.html
- HDMI2USB: http://hdmi2usb.tv/home/
- and others commercial designs...
- add a DMA interface to the MAC (SRAM slots are the only software interface today)
- add PTP Master / Boundary Clock and Layer 2 (Ethernet) transport
- add AXI-Stream / Avalon-ST user ports to the standalone core
- validate the Artix-7 5GBASE-R and UltraScale+ 100G benches on hardware
- ... See below Support and consulting :)
If you want to support these features, please contact us at florent [AT] enjoy-digital.fr.
- Install Python 3.9+ and FPGA vendor's development tools.
- Install LiteX and the cores by following the LiteX's wiki installation guide.
- You can find examples of integration of the core with LiteX in LiteX-Boards and in the examples directory.
A standalone Verilog core (MAC on a Wishbone/AXI-Lite bus, or hardware UDP/IP stack with streaming ports) can be generated from a YAML description:
$ liteeth_gen examples/wishbone_mii.ymlSee doc/gen.md for the flavours, YAML keys and examples.
Unit tests are available in ./test/ (some RTL tests require Icarus Verilog and Verilator). To run all the unit tests:
$ python3 -m pytest -vTests can also be run individually:
$ python3 -m pytest -v test/test_name.pyLiteEth is released under the very permissive two-clause BSD license. Under the terms of this license, you are authorized to use LiteEth 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:
- tell us that you are using LiteEth
- cite LiteEth in publications related to research it has helped
- send us feedback and suggestions for improvements
- send us bug reports when something goes wrong
- send us the modifications and improvements you have done to LiteEth.
We love open-source hardware and like sharing our designs with others.
LiteEth is developed and maintained by EnjoyDigital.
If you would like to know more about LiteEth 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