From c2622297bd4dfed7b0c406f3a359e20e44c2c4d5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 15 Mar 2019 17:57:35 +0800 Subject: [PATCH] urukul: use board_data instead of user_data to store calibration in EEPROM --- artiq/examples/kasli_tester/device_db.py | 4 ++-- artiq/frontend/artiq_ddb_template.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/examples/kasli_tester/device_db.py b/artiq/examples/kasli_tester/device_db.py index d9cf9d34b..ed77d6679 100644 --- a/artiq/examples/kasli_tester/device_db.py +++ b/artiq/examples/kasli_tester/device_db.py @@ -129,8 +129,8 @@ for i in range(4): "chip_select": 4 + i, "cpld_device": "urukul0_cpld", "sw_device": "ttl_urukul0_sw" + str(i), - "sync_delay_seed": "eeprom_urukul0:" + str(48 + 4*i), - "io_update_delay": "eeprom_urukul0:" + str(48 + 4*i), + "sync_delay_seed": "eeprom_urukul0:" + str(64 + 4*i), + "io_update_delay": "eeprom_urukul0:" + str(64 + 4*i), } } diff --git a/artiq/frontend/artiq_ddb_template.py b/artiq/frontend/artiq_ddb_template.py index 245f4a766..ecf2ea01d 100755 --- a/artiq/frontend/artiq_ddb_template.py +++ b/artiq/frontend/artiq_ddb_template.py @@ -186,8 +186,8 @@ class PeripheralManager: chip_select=4 + i, uchn=i, 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 "") + sync_delay_seed=",\n \"sync_delay_seed\": \"eeprom_{}:{}\"".format(urukul_name, 64 + 4*i) if synchronization else "", + io_update_delay=",\n \"io_update_delay\": \"eeprom_{}:{}\"".format(urukul_name, 64 + 4*i) if synchronization else "") elif dds == "ad9912": self.gen(""" device_db["{name}_ch{uchn}"] = {{