examples/sayma_drtio: add SAWG channels

This commit is contained in:
Sebastien Bourdeauducq 2018-06-19 23:50:26 +08:00
parent 3d0e92aefd
commit 4803ca3799
1 changed files with 16 additions and 0 deletions

View File

@ -134,3 +134,19 @@ device_db = {
"arguments": {"spi_device": "rconverter_spi", "chip_select": 3} "arguments": {"spi_device": "rconverter_spi", "chip_select": 3}
}, },
} }
for i in range(8):
device_db["sawg" + str(i)] = {
"type": "local",
"module": "artiq.coredevice.sawg",
"class": "SAWG",
"arguments": {"channel_base": i*10+6, "parallelism": 4}
}
for i in range(8):
device_db["sawg" + str(8+i)] = {
"type": "local",
"module": "artiq.coredevice.sawg",
"class": "SAWG",
"arguments": {"channel_base": i*10+0x010006, "parallelism": 4}
}