Skip to content

Commit 2e48250

Browse files
committedNov 13, 2016
phaser: fix DDS dummy cfg
1 parent aedb674 commit 2e48250

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed
 

‎artiq/gateware/targets/kc705.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -580,22 +580,25 @@ def __init__(self, cpu_type="or1k", **kwargs):
580580
self.config["RTIO_LOG_CHANNEL"] = len(rtio_channels)
581581
rtio_channels.append(rtio.LogChannel())
582582

583-
self.config["RTIO_FIRST_DDS_CHANNEL"] = 0
583+
self.config["RTIO_FIRST_DDS_CHANNEL"] = len(rtio_channels)
584584
self.config["RTIO_DDS_COUNT"] = 1
585585
self.config["DDS_CHANNELS_PER_BUS"] = 1
586-
self.config["DDS_ONEHOT_SEL"] = 1
586+
self.config["DDS_AD9914"] = None
587+
self.config["DDS_ONEHOT_SEL"] = None
587588
self.config["DDS_RTIO_CLK_RATIO"] = 8
588589

589-
self.submodules.rtio_crg = _PhaserCRG(platform, self.ad9154.jesd.cd_jesd.clk)
590+
self.submodules.rtio_crg = _PhaserCRG(
591+
platform, self.ad9154.jesd.cd_jesd.clk)
590592
self.csr_devices.append("rtio_crg")
591593
self.submodules.rtio = rtio.RTIO(rtio_channels)
592594
self.register_kernel_cpu_csrdevice("rtio")
593595
self.submodules.rtio_moninj = rtio.MonInj(rtio_channels)
594596
self.csr_devices.append("rtio_moninj")
595-
self.submodules.rtio_analyzer = rtio.Analyzer(self.rtio,
596-
self.get_native_sdram_if())
597+
self.submodules.rtio_analyzer = rtio.Analyzer(
598+
self.rtio, self.get_native_sdram_if())
597599
self.csr_devices.append("rtio_analyzer")
598600

601+
self.config["RTIO_FINE_TS_WIDTH"] = self.rtio.fine_ts_width
599602
platform.add_false_path_constraints(
600603
self.crg.cd_sys.clk,
601604
self.rtio_crg.cd_rtio.clk)

0 commit comments

Comments
 (0)
Please sign in to comment.