aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Meserve <mark.meserve@ni.com>2019-02-07 15:28:53 -0600
committerAshish Chaudhari <ashish.chaudhari@ettus.com>2019-02-08 14:54:55 -0800
commit4eb12b031f9cad3df3e294db466bd26dee6b78e1 (patch)
tree3014b7343f31a601e9fb1cfc58331cc94c664fd1
parentaeca40ca647c89a9b21904076572c338e843da86 (diff)
downloaduhd-4eb12b031f9cad3df3e294db466bd26dee6b78e1.tar.gz
uhd-4eb12b031f9cad3df3e294db466bd26dee6b78e1.tar.bz2
uhd-4eb12b031f9cad3df3e294db466bd26dee6b78e1.zip
fixup! RFNoC: Fix scaling of M and N values in DDC/DUC
-rw-r--r--host/lib/rfnoc/ddc_block_ctrl_impl.cpp2
1 files changed, 1 insertions, 1 deletions
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<uint64_t>(_root_path / "noc_id").get();
// FIXME this should be a rb reg in the FPGA, not based on a hard-coded
// Noc-ID