Skip to content
Permalink
Browse files

artiq_ddb_template: enable Urukul synchronization from EEPROM

  • Loading branch information...
sbourdeauducq committed Mar 13, 2019
1 parent e504262 commit 5e7c83c9cfd417f86a02f29429418bb06585f3c5
Showing with 4 additions and 2 deletions.
  1. +4 −2 artiq/frontend/artiq_ddb_template.py
@@ -179,13 +179,15 @@ def process_urukul(self, rtio_offset, peripheral):
"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}"] = {{

0 comments on commit 5e7c83c

Please sign in to comment.
You can’t perform that action at this time.