From: Florent Kermarrec Date: Sun, 12 Apr 2015 16:56:46 +0000 (+0200) Subject: liteeth/phy/__init__.py: add more comments X-Git-Tag: 24jan2021_ls180~2378 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc81d9d639686517dbb4fd475e5a606a133f028e;p=litex.git liteeth/phy/__init__.py: add more comments --- diff --git a/misoclib/com/liteeth/phy/__init__.py b/misoclib/com/liteeth/phy/__init__.py index df9623aa..1b1c354f 100644 --- a/misoclib/com/liteeth/phy/__init__.py +++ b/misoclib/com/liteeth/phy/__init__.py @@ -4,6 +4,7 @@ from misoclib.com.liteeth.generic import * 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: