liteeth/phy: fix autodetect (clk_freq not necessary passed in kwargs)

This commit is contained in:
Florent Kermarrec 2015-08-22 12:08:49 +02:00
parent 158fbe49ac
commit 8bb30a8620
1 changed files with 1 additions and 1 deletions

View File

@ -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