Skip to content

Commit 3cf4667

Browse files
committedAug 5, 2015
liteeth/phy: rename rgmii to s6rgmii since specific to Spartan6
Also remove autodetection support for RGMII. For it to work we would need to pass the device we are building for.
1 parent 4b8d9b6 commit 3cf4667

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

Diff for: ‎misoclib/com/liteeth/phy/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ def LiteEthPHY(clock_pads, pads, **kwargs):
1717
from misoclib.com.liteeth.phy.gmii import LiteEthPHYGMII
1818
return LiteEthPHYGMII(clock_pads, pads, **kwargs)
1919
elif hasattr(pads, "rx_ctl"):
20-
# This is a 10/100/1G RGMII PHY
21-
from misoclib.com.liteeth.phy.rgmii import LiteEthPHYRGMII
22-
return LiteEthPHYRGMII(clock_pads, pads, **kwargs)
20+
# This is a 10/100/1G RGMII PHY
21+
raise ValueError("RGMII PHYs are specific to vendors (for now), use direct instantiation")
2322
elif flen(pads.tx_data) == 4:
2423
# This is a MII PHY
2524
from misoclib.com.liteeth.phy.mii import LiteEthPHYMII

Diff for: ‎misoclib/com/liteeth/phy/rgmii.py renamed to ‎misoclib/com/liteeth/phy/s6rgmii.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# RGMII PHY for Spartan-6
2+
13
from migen.genlib.io import DDROutput
24
from migen.genlib.misc import WaitTimer
35
from migen.genlib.fsm import FSM, NextState

0 commit comments

Comments
 (0)
Please sign in to comment.