liteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien)

This commit is contained in:
Florent Kermarrec 2015-08-22 16:30:42 +02:00
parent a1e4183b3f
commit f3d68a54d5
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
from misoclib.com.liteeth.common import * from misoclib.com.liteeth.common import *
def LiteEthPHY(clock_pads, pads, **kwargs): def LiteEthPHY(clock_pads, pads, clk_freq=None, **kwargs):
clk_freq = None if "clk_freq" not in kwargs else kwargs.pop("clk_freq")
# Autodetect PHY # Autodetect PHY
if hasattr(pads, "source_stb"): if hasattr(pads, "source_stb"):
# This is a simulation PHY # This is a simulation PHY