mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
liteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien)
This commit is contained in:
parent
a1e4183b3f
commit
f3d68a54d5
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue