Skip to content

Commit

Permalink
liteeth_gen: Finish Artix7 2500BaseX integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Feb 6, 2024
1 parent 1fefe49 commit 8f521d8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions liteeth/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,14 @@ def __init__(self, platform, core_config):
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)
Expand Down

0 comments on commit 8f521d8

Please sign in to comment.