mirror of https://github.com/m-labs/artiq.git
artiq_ddb_template: create Urukul EEPROM device
This commit is contained in:
parent
964a349a19
commit
852048dce4
|
@ -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("""
|
||||
|
|
Loading…
Reference in New Issue