From a2f6e81c50c177d3bcd53cbc76a11a28169e88c7 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 2 Apr 2016 18:20:51 +0000 Subject: [PATCH] ttl: mark constant attributes for TTL{In,InOut,ClockGen}. --- artiq/coredevice/ttl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/artiq/coredevice/ttl.py b/artiq/coredevice/ttl.py index ef855d6b2..bd917c1de 100644 --- a/artiq/coredevice/ttl.py +++ b/artiq/coredevice/ttl.py @@ -10,6 +10,8 @@ class TTLOut: :param channel: channel number """ + kernel_constant_attributes = {"core", "channel"} + def __init__(self, dmgr, channel, core_device="core"): self.core = dmgr.get(core_device) self.channel = channel @@ -82,6 +84,8 @@ class TTLInOut: :param channel: channel number """ + kernel_constant_attributes = {"core", "channel"} + def __init__(self, dmgr, channel, core_device="core"): self.core = dmgr.get(core_device) self.channel = channel @@ -232,6 +236,8 @@ class TTLClockGen: :param channel: channel number """ + kernel_constant_attributes = {"core", "channel", "acc_width"} + def __init__(self, dmgr, channel, core_device="core"): self.core = dmgr.get(core_device) self.channel = channel