2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

artiq_ddb_template: mirny_cpld: add refclk, clk_sel args

Signed-off-by: occheung <occheung@connect.ust.hk>
This commit is contained in:
occheung 2020-12-14 12:42:40 +08:00 committed by Sébastien Bourdeauducq
parent 33d39b261a
commit 3f631c417d

View File

@ -273,9 +273,15 @@ class PeripheralManager:
"type": "local",
"module": "artiq.coredevice.mirny",
"class": "Mirny",
"arguments": {{"spi_device": "spi_{name}"}},
"arguments": {{
"spi_device": "spi_{name}",
"refclk": {refclk},
"clk_sel": {clk_sel}
}},
}}""",
name=mirny_name)
name=mirny_name,
refclk=peripheral.get("refclk", self.master_description.get("rtio_frequency", 125e6)),
clk_sel=peripheral["clk_sel"])
return next(channel)