Skip to content

Commit

Permalink
phy/gw5rgmii: fix clks assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
trabucayre committed Jan 22, 2024
1 parent 9508144 commit 650433d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liteeth/phy/gw5rgmii.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ def __init__(self, clock_pads, pads, with_hw_init_reset, tx_delay=2e-9, tx_clk=N

# RX Clock
self.cd_eth_rx = ClockDomain()
self.comb += self.cd_eth_rx.clk.eq(clock_pads.rx)
self.cd_eth_rx.clk = clock_pads.rx

# TX Clock
self.cd_eth_tx = ClockDomain()
if isinstance(tx_clk, Signal):
self.comb += self.cd_eth_tx.clk.eq(tx_clk)
else:
self.comb += self.cd_eth_tx.clk.eq(self.cd_eth_rx.clk)
self.cd_eth_tx.clk = self.cd_eth_rx.clk

tx_delay_taps = int(tx_delay/12.5e-12) # 12.5ps per tap
assert tx_delay_taps < 256
Expand Down

0 comments on commit 650433d

Please sign in to comment.