forked from M-Labs/artiq
1
0
Fork 0

urukul: use board_data instead of user_data to store calibration in EEPROM

This commit is contained in:
Sebastien Bourdeauducq 2019-03-15 17:57:35 +08:00
parent a01425bc9c
commit c2622297bd
2 changed files with 4 additions and 4 deletions

View File

@ -129,8 +129,8 @@ for i in range(4):
"chip_select": 4 + i, "chip_select": 4 + i,
"cpld_device": "urukul0_cpld", "cpld_device": "urukul0_cpld",
"sw_device": "ttl_urukul0_sw" + str(i), "sw_device": "ttl_urukul0_sw" + str(i),
"sync_delay_seed": "eeprom_urukul0:" + str(48 + 4*i), "sync_delay_seed": "eeprom_urukul0:" + str(64 + 4*i),
"io_update_delay": "eeprom_urukul0:" + str(48 + 4*i), "io_update_delay": "eeprom_urukul0:" + str(64 + 4*i),
} }
} }

View File

@ -186,8 +186,8 @@ class PeripheralManager:
chip_select=4 + i, chip_select=4 + i,
uchn=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 "", 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, 48 + 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": elif dds == "ad9912":
self.gen(""" self.gen("""
device_db["{name}_ch{uchn}"] = {{ device_db["{name}_ch{uchn}"] = {{