2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 11:48:27 +08:00

Fix moninj showing wrong frequency for urukuls with non-default clk_div

Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
Egor Savkin 2024-12-16 15:51:55 +08:00 committed by Sébastien Bourdeauducq
parent c65520ab01
commit 366bb0fc59

View File

@ -399,7 +399,7 @@ def setup_from_ddb(ddb):
bus_channel = ddb[spi_dev]["arguments"]["channel"] bus_channel = ddb[spi_dev]["arguments"]["channel"]
pll = v["arguments"]["pll_n"] pll = v["arguments"]["pll_n"]
refclk = ddb[dds_cpld]["arguments"]["refclk"] refclk = ddb[dds_cpld]["arguments"]["refclk"]
clk_div = v["arguments"].get("clk_div", 0) clk_div = ddb[dds_cpld]["arguments"].get("clk_div", 0)
widget = _WidgetDesc(k, comment, _DDSWidget, widget = _WidgetDesc(k, comment, _DDSWidget,
(k, bus_channel, channel, v["class"], (k, bus_channel, channel, v["class"],
refclk, dds_cpld, pll, clk_div)) refclk, dds_cpld, pll, clk_div))