Skip to content

Commit

Permalink
phy/rmii: merging cd_eth_rx, cd_eth_tx and clock pads when refclk_cd …
Browse files Browse the repository at this point in the history
…is None
  • Loading branch information
trabucayre committed Aug 30, 2023
1 parent 0f055b1 commit 23035e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liteeth/phy/rmii.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def __init__(self, clock_pads, pads, refclk_cd,

# When no refclk_cd, use clock_pads.ref_clk as RMII reference clock.
if refclk_cd is None:
self.comb += self.cd_eth_rx.clk.eq(clock_pads.ref_clk)
self.comb += self.cd_eth_tx.clk.eq(clock_pads.ref_clk)
self.cd_eth_rx.clk = clock_pads.ref_clk
self.cd_eth_tx.clk = self.cd_eth_rx.clk

# Else use refclk_cd as RMII reference clock (provided by user design).
else:
Expand Down

0 comments on commit 23035e7

Please sign in to comment.