From 8f521d838cea384730902bebb02aa389614ed9d5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 6 Feb 2024 18:26:54 +0100 Subject: [PATCH] liteeth_gen: Finish Artix7 2500BaseX integration. --- liteeth/gen.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/liteeth/gen.py b/liteeth/gen.py index 15465f3..134f99f 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -296,8 +296,14 @@ class PHYCore(SoCMini): from liteeth.phy.a7_gtp import QPLLSettings, QPLL qpll_settings = QPLLSettings( refclksel = 0b001, - fbdiv = 4, - fbdiv_45 = {125e6:5, 156.25e6:4}[refclk_freq], + fbdiv = { + liteeth_phys.A7_1000BASEX : 4, + liteeth_phys.A7_2500BASEX : 5, + }[phy], + fbdiv_45 = { + 125e6 : 5, + 156.25e6 : 4, + }[refclk_freq], refclk_div = 1 ) qpll = QPLL(ethphy_pads.refclk, qpll_settings)