From f3d68a54d5925a4fec077f6c225fe1d26fb48624 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 22 Aug 2015 16:30:42 +0200 Subject: [PATCH] liteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien) --- misoclib/com/liteeth/phy/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misoclib/com/liteeth/phy/__init__.py b/misoclib/com/liteeth/phy/__init__.py index 2eccd540..d2fbe643 100644 --- a/misoclib/com/liteeth/phy/__init__.py +++ b/misoclib/com/liteeth/phy/__init__.py @@ -1,8 +1,7 @@ from misoclib.com.liteeth.common import * -def LiteEthPHY(clock_pads, pads, **kwargs): - clk_freq = None if "clk_freq" not in kwargs else kwargs.pop("clk_freq") +def LiteEthPHY(clock_pads, pads, clk_freq=None, **kwargs): # Autodetect PHY if hasattr(pads, "source_stb"): # This is a simulation PHY -- 2.30.2