From 8bb30a8620ccac32cd4faf9b40bb1c76b798ef0d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 22 Aug 2015 12:08:49 +0200 Subject: [PATCH] liteeth/phy: fix autodetect (clk_freq not necessary passed in kwargs) --- misoclib/com/liteeth/phy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misoclib/com/liteeth/phy/__init__.py b/misoclib/com/liteeth/phy/__init__.py index 1482b3d6..2eccd540 100644 --- a/misoclib/com/liteeth/phy/__init__.py +++ b/misoclib/com/liteeth/phy/__init__.py @@ -2,7 +2,7 @@ from misoclib.com.liteeth.common import * def LiteEthPHY(clock_pads, pads, **kwargs): - clk_freq = kwargs.pop("clk_freq") + clk_freq = None if "clk_freq" not in kwargs else kwargs.pop("clk_freq") # Autodetect PHY if hasattr(pads, "source_stb"): # This is a simulation PHY -- 2.30.2