phy/rmii: merging cd_eth_rx, cd_eth_tx and clock pads when refclk_cd is None

This commit is contained in:
Gwenhael Goavec-Merou 2023-08-30 19:46:26 +02:00
parent 0f055b1c0f
commit 23035e7c63
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ class LiteEthPHYRMIICRG(LiteXModule):
# 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: