From edbc7763e075badb235003d6143bc6f32f96fc27 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 25 Apr 2018 17:32:36 +0000 Subject: [PATCH] urukul: allow no io_update_device --- artiq/coredevice/urukul.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/coredevice/urukul.py b/artiq/coredevice/urukul.py index d2739a6d3..76782f706 100644 --- a/artiq/coredevice/urukul.py +++ b/artiq/coredevice/urukul.py @@ -111,7 +111,7 @@ class CPLD: """ 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, sync_sel=0, clk_sel=0, refclk=125e6, core_device="core"): @@ -120,7 +120,8 @@ class CPLD: self.refclk = refclk 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: self.dds_reset = dmgr.get(dds_reset_device)