liteeth/phy: fix autodetect (clk_freq not necessary passed in kwargs)
This commit is contained in:
parent
158fbe49ac
commit
8bb30a8620
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue