Skip to content
Permalink
Browse files

artiq_ddb_template: create Urukul EEPROM device

  • Loading branch information...
sbourdeauducq committed Mar 13, 2019
1 parent 964a349 commit 852048dce4f72dbedd1e5859c6bce75a4c4b8cf1
Showing with 8 additions and 0 deletions.
  1. +8 −0 artiq/frontend/artiq_ddb_template.py
@@ -103,13 +103,21 @@ def process_urukul(self, rtio_offset, peripheral):
synchronization = peripheral.get("synchronization", False)
channel = count(0)
self.gen("""
device_db["eeprom_{name}"]={{
"type": "local",
"module": "artiq.coredevice.kasli_i2c",
"class": "KasliEEPROM",
"arguments": {{"port": "EEM{eem}"}}
}},
device_db["spi_{name}"]={{
"type": "local",
"module": "artiq.coredevice.spi2",
"class": "SPIMaster",
"arguments": {{"channel": 0x{channel:06x}}}
}}""",
name=urukul_name,
eem=peripheral["ports"][0],
channel=rtio_offset+next(channel))
if synchronization:
self.gen("""

0 comments on commit 852048d

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