Skip to content

Commit

Permalink
phy/trionrgmii.py: fixed RX and TX sides. RX: forces phase align by u…
Browse files Browse the repository at this point in the history
…sign it as PLL's feedback. TX: reduces PLL phase shift 90 -> 45
  • Loading branch information
trabucayre committed Sep 3, 2024
1 parent 9780327 commit ecaebfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liteeth/phy/trionrgmii.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def __init__(self, platform, clock_pads, with_hw_init_reset, hw_reset_cycles=256
# -------
self.pll = pll = TRIONPLL(platform)
pll.register_clkin(None, freq=125e6, name=f"auto_eth{n}_rx_clk_in")
pll.create_clkout(self.cd_eth_rx, freq=125e6, phase=0, name=f"auto_eth{n}_rx_clk", with_reset=False)
pll.create_clkout(self.cd_eth_rx, freq=125e6, phase=0, name=f"auto_eth{n}_rx_clk", with_reset=False, is_feedback=True)
pll.create_clkout(self.cd_eth_tx, freq=125e6, phase=0, name=f"auto_eth{n}_tx_clk", with_reset=False)
pll.create_clkout(None, freq=125e6, phase=90, name=f"auto_eth{n}_tx_clk_delayed")
pll.create_clkout(None, freq=125e6, phase=45, name=f"auto_eth{n}_tx_clk_delayed")

# Reset.
# ------
Expand Down

0 comments on commit ecaebfe

Please sign in to comment.