From 4eb12b031f9cad3df3e294db466bd26dee6b78e1 Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Thu, 7 Feb 2019 15:28:53 -0600 Subject: fixup! RFNoC: Fix scaling of M and N values in DDC/DUC --- host/lib/rfnoc/ddc_block_ctrl_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/lib/rfnoc/ddc_block_ctrl_impl.cpp b/host/lib/rfnoc/ddc_block_ctrl_impl.cpp index caa1f4c20..30f465098 100644 --- a/host/lib/rfnoc/ddc_block_ctrl_impl.cpp +++ b/host/lib/rfnoc/ddc_block_ctrl_impl.cpp @@ -244,8 +244,8 @@ private: sr_write("DECIM_WORD", (hb_enable << 8) | (decim & 0xff), chan); // Rate change = M/N - sr_write("M", m, chan); sr_write("N", m * std::pow(2.0, double(hb_enable)) * (decim & 0xff), chan); + sr_write("M", m, chan); const auto noc_id = _tree->access(_root_path / "noc_id").get(); // FIXME this should be a rb reg in the FPGA, not based on a hard-coded // Noc-ID -- cgit v1.2.3