From 5e7c83c9cfd417f86a02f29429418bb06585f3c5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 13 Mar 2019 15:42:51 +0800 Subject: [PATCH] artiq_ddb_template: enable Urukul synchronization from EEPROM --- artiq/frontend/artiq_ddb_template.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/frontend/artiq_ddb_template.py b/artiq/frontend/artiq_ddb_template.py index 62a189f01..245f4a766 100755 --- a/artiq/frontend/artiq_ddb_template.py +++ b/artiq/frontend/artiq_ddb_template.py @@ -179,13 +179,15 @@ class PeripheralManager: "pll_n": 32, "chip_select": {chip_select}, "cpld_device": "{name}_cpld", - "sw_device": "ttl_{name}_sw{uchn}"{pll_vco} + "sw_device": "ttl_{name}_sw{uchn}"{pll_vco}{sync_delay_seed}{io_update_delay} }} }}""", name=urukul_name, chip_select=4 + i, uchn=i, - pll_vco=",\n \"pll_vco\": {}".format(pll_vco) if pll_vco is not None else "") + pll_vco=",\n \"pll_vco\": {}".format(pll_vco) if pll_vco is not None else "", + sync_delay_seed=",\n \"sync_delay_seed\": \"eeprom_{}:{}\"".format(urukul_name, 48 + 4*i) if synchronization else "", + io_update_delay=",\n \"io_update_delay\": \"eeprom_{}:{}\"".format(urukul_name, 48 + 4*i) if synchronization else "") elif dds == "ad9912": self.gen(""" device_db["{name}_ch{uchn}"] = {{