Skip to content

Commit

Permalink
liteeth/phy/__init__.py: add more comments
Browse files Browse the repository at this point in the history
enjoy-digital committed Apr 12, 2015
1 parent 4abe8e1 commit bc81d9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions misoclib/com/liteeth/phy/__init__.py
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
def LiteEthPHY(clock_pads, pads, **kwargs):
# Autodetect PHY
if hasattr(pads, "source_stb"):
# This is a simulation PHY
from misoclib.com.liteeth.phy.sim import LiteEthPHYSim
return LiteEthPHYSim(pads)
elif hasattr(clock_pads, "gtx") and flen(pads.tx_data) == 8:
@@ -16,6 +17,7 @@ def LiteEthPHY(clock_pads, pads, **kwargs):
from misoclib.com.liteeth.phy.gmii import LiteEthPHYGMII
return LiteEthPHYGMII(clock_pads, pads, **kwargs)
elif flen(pads.tx_data) == 4:
# This is a MII PHY
from misoclib.com.liteeth.phy.mii import LiteEthPHYMII
return LiteEthPHYMII(clock_pads, pads, **kwargs)
else:

0 comments on commit bc81d9d

Please sign in to comment.