mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 16:06:30 +08:00
ddb_template: mirny_cpld: accept clk_sel as a string
This commit is contained in:
parent
523fa01343
commit
75efb8985c
@ -268,6 +268,9 @@ class PeripheralManager:
|
||||
name=mirny_name,
|
||||
mchn=i)
|
||||
|
||||
clk_sel = peripheral["clk_sel"]
|
||||
if isinstance(peripheral["clk_sel"], str):
|
||||
clk_sel = '"' + peripheral["clk_sel"] + '"'
|
||||
self.gen("""
|
||||
device_db["{name}_cpld"] = {{
|
||||
"type": "local",
|
||||
@ -281,7 +284,7 @@ class PeripheralManager:
|
||||
}}""",
|
||||
name=mirny_name,
|
||||
refclk=peripheral["refclk"],
|
||||
clk_sel=peripheral["clk_sel"])
|
||||
clk_sel=clk_sel)
|
||||
|
||||
return next(channel)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user