2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

urukul: allow no io_update_device

This commit is contained in:
Robert Jördens 2018-04-25 17:32:36 +00:00
parent 8a1151b54f
commit edbc7763e0

View File

@ -111,7 +111,7 @@ class CPLD:
""" """
kernel_invariants = {"refclk", "bus", "core", "io_update"} kernel_invariants = {"refclk", "bus", "core", "io_update"}
def __init__(self, dmgr, spi_device, io_update_device, def __init__(self, dmgr, spi_device, io_update_device=None,
dds_reset_device=None, dds_reset_device=None,
sync_sel=0, clk_sel=0, sync_sel=0, clk_sel=0,
refclk=125e6, core_device="core"): refclk=125e6, core_device="core"):
@ -120,7 +120,8 @@ class CPLD:
self.refclk = refclk self.refclk = refclk
self.bus = dmgr.get(spi_device) self.bus = dmgr.get(spi_device)
self.io_update = dmgr.get(io_update_device) if io_update_device is not None:
self.io_update = dmgr.get(io_update_device)
if dds_reset_device is not None: if dds_reset_device is not None:
self.dds_reset = dmgr.get(dds_reset_device) self.dds_reset = dmgr.get(dds_reset_device)