From 23035e7c63587170cee9bc41efa5d43c006f415f Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Wed, 30 Aug 2023 19:46:26 +0200 Subject: [PATCH] phy/rmii: merging cd_eth_rx, cd_eth_tx and clock pads when refclk_cd is None --- liteeth/phy/rmii.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liteeth/phy/rmii.py b/liteeth/phy/rmii.py index a28bdf9..f6de961 100644 --- a/liteeth/phy/rmii.py +++ b/liteeth/phy/rmii.py @@ -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: