From 852048dce4f72dbedd1e5859c6bce75a4c4b8cf1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 13 Mar 2019 15:34:23 +0800 Subject: [PATCH] artiq_ddb_template: create Urukul EEPROM device --- artiq/frontend/artiq_ddb_template.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/artiq/frontend/artiq_ddb_template.py b/artiq/frontend/artiq_ddb_template.py index a625a2fc7..62a189f01 100755 --- a/artiq/frontend/artiq_ddb_template.py +++ b/artiq/frontend/artiq_ddb_template.py @@ -103,6 +103,13 @@ class PeripheralManager: 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", @@ -110,6 +117,7 @@ class PeripheralManager: "arguments": {{"channel": 0x{channel:06x}}} }}""", name=urukul_name, + eem=peripheral["ports"][0], channel=rtio_offset+next(channel)) if synchronization: self.gen("""