Skip to content

Commit

Permalink
phy/xgmii: Fix python issue (https://nikos7am.com/posts/mutable-defau…
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jan 20, 2025
1 parent 4284540 commit 8554b0a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions liteeth/phy/xgmii.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
# Pads/Interfaces ----------------------------------------------------------------------------------

class LiteEthPHYXGMIIClkPads:
rx = Signal()
tx = Signal()
def __init__(self):
self.rx = Signal()
self.tx = Signal()

class LiteEthPHYXGMIIPads:
rx_ctl = Signal(8)
rx_data = Signal(64)
tx_ctl = Signal(8)
tx_data = Signal(64)
def __init__(self):
self.rx_ctl = Signal(8)
self.rx_data = Signal(64)
self.tx_ctl = Signal(8)
self.tx_data = Signal(64)

# LiteEth PHY XGMII TX -----------------------------------------------------------------------------

Expand Down

0 comments on commit 8554b0a

Please sign in to comment.