forked from M-Labs/artiq
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)
|
synchronization = peripheral.get("synchronization", False)
|
||||||
channel = count(0)
|
channel = count(0)
|
||||||
self.gen("""
|
self.gen("""
|
||||||
|
device_db["eeprom_{name}"]={{
|
||||||
|
"type": "local",
|
||||||
|
"module": "artiq.coredevice.kasli_i2c",
|
||||||
|
"class": "KasliEEPROM",
|
||||||
|
"arguments": {{"port": "EEM{eem}"}}
|
||||||
|
}},
|
||||||
|
|
||||||
device_db["spi_{name}"]={{
|
device_db["spi_{name}"]={{
|
||||||
"type": "local",
|
"type": "local",
|
||||||
"module": "artiq.coredevice.spi2",
|
"module": "artiq.coredevice.spi2",
|
||||||
|
@ -110,6 +117,7 @@ class PeripheralManager:
|
||||||
"arguments": {{"channel": 0x{channel:06x}}}
|
"arguments": {{"channel": 0x{channel:06x}}}
|
||||||
}}""",
|
}}""",
|
||||||
name=urukul_name,
|
name=urukul_name,
|
||||||
|
eem=peripheral["ports"][0],
|
||||||
channel=rtio_offset+next(channel))
|
channel=rtio_offset+next(channel))
|
||||||
if synchronization:
|
if synchronization:
|
||||||
self.gen("""
|
self.gen("""
|
||||||
|
|
Loading…
Reference in New Issue