liteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien)
This commit is contained in:
parent
a1e4183b3f
commit
f3d68a54d5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue