Skip to content

Commit ccfa073

Browse files
committed
phy: add **kwargs
add **kwargs Signed-off-by: Fin Maaß <[email protected]>
1 parent 71b6e2a commit ccfa073

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

litespi/phy/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ class LiteSPIPHY(LiteXModule):
6060
def __init__(self, pads, flash, device="xc7", clock_domain="sys", default_divisor=9, cs_delay=10, rate="1:1", **kwargs):
6161
assert rate in ["1:1", "1:2"]
6262
if rate == "1:1":
63-
phy = LiteSPISDRPHYCore(pads, flash, device, clock_domain, default_divisor, cs_delay)
63+
phy = LiteSPISDRPHYCore(pads, flash, device, clock_domain, default_divisor, cs_delay, **kwargs)
6464
if rate == "1:2":
65-
phy = LiteSPIDDRPHYCore2(pads, flash, clock_domain, default_divisor, cs_delay)
65+
phy = LiteSPIDDRPHYCore2(pads, flash, clock_domain, default_divisor, cs_delay, **kwargs)
6666

6767
self.flash = flash
6868

litespi/phy/generic_ddr_with_clk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class LiteSPIDDRPHYCore2(LiteXModule):
5656
clk_divisor : CSRStorage
5757
Register which holds a clock divisor value applied to clkgen.
5858
"""
59-
def __init__(self, pads, flash, clock_domain, default_divisor, cs_delay, extra_latency=0):
59+
def __init__(self, pads, flash, clock_domain, default_divisor, cs_delay, extra_latency=0, **kwargs):
6060
self.source = source = stream.Endpoint(spi_phy2core_layout)
6161
self.sink = sink = stream.Endpoint(spi_core2phy_layout)
6262
self.cs = Signal().like(pads.cs_n)

litespi/phy/generic_sdr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class LiteSPISDRPHYCore(LiteXModule):
5959
clk_divisor : CSRStorage
6060
Register which holds a clock divisor value applied to clkgen.
6161
"""
62-
def __init__(self, pads, flash, device, clock_domain, default_divisor, cs_delay):
62+
def __init__(self, pads, flash, device, clock_domain, default_divisor, cs_delay, **kwargs):
6363
self.source = source = stream.Endpoint(spi_phy2core_layout)
6464
self.sink = sink = stream.Endpoint(spi_core2phy_layout)
6565
self.cs = Signal().like(pads.cs_n)

0 commit comments

Comments
 (0)