Skip to content

Commit

Permalink
liteeth_gen: Add A7_2500BASEX support.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jan 23, 2024
1 parent a00c9a3 commit 5a1caed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion liteeth/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,15 @@ def __init__(self, platform, core_config):
# SGMII.
elif phy in [
liteeth_phys.A7_1000BASEX,
liteeth_phys.A7_2500BASEX,
liteeth_phys.K7_1000BASEX,
liteeth_phys.KU_1000BASEX,
liteeth_phys.USP_GTH_1000BASEX,
liteeth_phys.USP_GTY_1000BASEX,
]:
ethphy_pads = platform.request("sgmii")
# Artix7.
if phy in [liteeth_phys.A7_1000BASEX]:
if phy in [liteeth_phys.A7_1000BASEX, liteeth_phys.A7_2500BASEX]:
refclk_freq = core_config.get("refclk_freq", 0)
assert refclk_freq in [125e6, 156.25e6]
from liteeth.phy.a7_gtp import QPLLSettings, QPLL
Expand Down
1 change: 1 addition & 0 deletions liteeth/phy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def LiteEthPHY(clock_pads, pads, clk_freq=None, **kwargs):
from liteeth.phy.ecp5rgmii import LiteEthPHYRGMII as LiteEthECP5PHYRGMII

from liteeth.phy.a7_1000basex import A7_1000BASEX
from liteeth.phy.a7_2500basex import A7_2500BASEX
from liteeth.phy.k7_1000basex import K7_1000BASEX
from liteeth.phy.ku_1000basex import KU_1000BASEX
from liteeth.phy.usp_gth_1000basex import USP_GTH_1000BASEX
Expand Down

0 comments on commit 5a1caed

Please sign in to comment.