examples/sayma_master: update device_db

This commit is contained in:
Sebastien Bourdeauducq 2019-10-16 18:49:25 +08:00
parent 8fa3c6460e
commit d42ff81144

View File

@ -23,44 +23,54 @@ device_db = {
"module": "artiq.coredevice.dma", "module": "artiq.coredevice.dma",
"class": "CoreDMA" "class": "CoreDMA"
}, },
}
"fmcdio_dirctl_clk": { for i in range(4):
device_db["led" + str(i)] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": i},
}
for i in range(2):
device_db["ttl" + str(i)] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLInOut",
"arguments": {"channel": 4 + i},
}
device_db.update(
fmcdio_dirctl_clk={
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 6} "arguments": {"channel": 6}
}, },
"fmcdio_dirctl_ser": { fmcdio_dirctl_ser={
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 7} "arguments": {"channel": 7}
}, },
"fmcdio_dirctl_latch": { fmcdio_dirctl_latch={
"type": "local", "type": "local",
"module": "artiq.coredevice.ttl", "module": "artiq.coredevice.ttl",
"class": "TTLOut", "class": "TTLOut",
"arguments": {"channel": 8} "arguments": {"channel": 8}
}, },
"fmcdio_dirctl": { fmcdio_dirctl={
"type": "local", "type": "local",
"module": "artiq.coredevice.shiftreg", "module": "artiq.coredevice.shiftreg",
"class": "ShiftReg", "class": "ShiftReg",
"arguments": {"clk": "fmcdio_dirctl_clk", "arguments": {"clk": "fmcdio_dirctl_clk",
"ser": "fmcdio_dirctl_ser", "ser": "fmcdio_dirctl_ser",
"latch": "fmcdio_dirctl_latch"} "latch": "fmcdio_dirctl_latch"}
},
}
for i in range(8):
device_db["ttl" + str(i)] = {
"type": "local",
"module": "artiq.coredevice.ttl",
"class": "TTLOut",
"arguments": {"channel": 9+i},
} }
)
device_db.update( device_db.update(
spi_urukul0={ spi_urukul0={