mirror of https://github.com/m-labs/artiq.git
artiq_ddb_template: use the clk_div field
this field exists in the json schema but was not used. Signed-off-by: Leon Riesebos <28567817+lriesebos@users.noreply.github.com>
This commit is contained in:
parent
454597915a
commit
833fd8760e
|
@ -308,7 +308,8 @@
|
||||||
"clk_div": {
|
"clk_div": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 0,
|
"minimum": 0,
|
||||||
"maximum": 3
|
"maximum": 3,
|
||||||
|
"default": 0
|
||||||
},
|
},
|
||||||
"pll_n": {
|
"pll_n": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
|
|
|
@ -232,13 +232,15 @@ class PeripheralManager:
|
||||||
"sync_device": {sync_device},
|
"sync_device": {sync_device},
|
||||||
"io_update_device": "ttl_{name}_io_update",
|
"io_update_device": "ttl_{name}_io_update",
|
||||||
"refclk": {refclk},
|
"refclk": {refclk},
|
||||||
"clk_sel": {clk_sel}
|
"clk_sel": {clk_sel},
|
||||||
|
"clk_div": {clk_div}
|
||||||
}}
|
}}
|
||||||
}}""",
|
}}""",
|
||||||
name=urukul_name,
|
name=urukul_name,
|
||||||
sync_device="\"ttl_{name}_sync\"".format(name=urukul_name) if synchronization else "None",
|
sync_device="\"ttl_{name}_sync\"".format(name=urukul_name) if synchronization else "None",
|
||||||
refclk=peripheral.get("refclk", self.primary_description["rtio_frequency"]),
|
refclk=peripheral.get("refclk", self.primary_description["rtio_frequency"]),
|
||||||
clk_sel=peripheral["clk_sel"])
|
clk_sel=peripheral["clk_sel"],
|
||||||
|
clk_div=peripheral["clk_div"])
|
||||||
dds = peripheral["dds"]
|
dds = peripheral["dds"]
|
||||||
pll_vco = peripheral.get("pll_vco")
|
pll_vco = peripheral.get("pll_vco")
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
|
|
Loading…
Reference in New Issue