Skip to content

Commit dba427e

Browse files
committed
artiq_ddb_template: pass destination parameter to KasliEEPROM devices
Signed-off-by: Florian Agbuya <[email protected]>
1 parent bb72ab5 commit dba427e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

artiq/frontend/artiq_ddb_template.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def process_urukul(self, rtio_offset, peripheral):
211211
urukul_name = self.get_name("urukul")
212212
synchronization = peripheral["synchronization"]
213213
channel = count(0)
214+
destination = rtio_offset >> 16
214215
pll_en = peripheral["pll_en"]
215216
clk_div = peripheral.get("clk_div")
216217
if clk_div is None:
@@ -221,7 +222,7 @@ def process_urukul(self, rtio_offset, peripheral):
221222
"type": "local",
222223
"module": "artiq.coredevice.kasli_i2c",
223224
"class": "KasliEEPROM",
224-
"arguments": {{"port": "EEM{eem}"}}
225+
"arguments": {{"port": "EEM{eem}", "destination": {dest}}}
225226
}}
226227
227228
device_db["spi_{name}"] = {{
@@ -232,6 +233,7 @@ def process_urukul(self, rtio_offset, peripheral):
232233
}}""",
233234
name=urukul_name,
234235
eem=peripheral["ports"][0],
236+
dest=destination,
235237
channel=rtio_offset+next(channel))
236238
if synchronization:
237239
self.gen("""

0 commit comments

Comments
 (0)