Skip to content

Commit

Permalink
artiq_ddb_template: pass destination parameter to KasliEEPROM devices
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Agbuya <[email protected]>
  • Loading branch information
fsagbuya committed Mar 4, 2025
1 parent d29de7c commit 9f48aef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion artiq/frontend/artiq_ddb_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def process_urukul(self, rtio_offset, peripheral):
urukul_name = self.get_name("urukul")
synchronization = peripheral["synchronization"]
channel = count(0)
destination = rtio_offset >> 16
pll_en = peripheral["pll_en"]
clk_div = peripheral.get("clk_div")
if clk_div is None:
Expand All @@ -221,7 +222,7 @@ def process_urukul(self, rtio_offset, peripheral):
"type": "local",
"module": "artiq.coredevice.kasli_i2c",
"class": "KasliEEPROM",
"arguments": {{"port": "EEM{eem}"}}
"arguments": {{"port": "EEM{eem}", "destination": {dest}}}
}}
device_db["spi_{name}"] = {{
Expand All @@ -232,6 +233,7 @@ def process_urukul(self, rtio_offset, peripheral):
}}""",
name=urukul_name,
eem=peripheral["ports"][0],
dest=destination,
channel=rtio_offset+next(channel))
if synchronization:
self.gen("""
Expand Down

0 comments on commit 9f48aef

Please sign in to comment.