diff options
| author | sugandhagupta <sugandha.gupta@ettus.com> | 2017-06-06 16:02:02 -0700 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:59 -0800 | 
| commit | 5f9d617073e12f191df90a0510702e2a1ee52bc9 (patch) | |
| tree | cb6993cf8a0e6d967687f4c75f14eca20ccbe4e1 | |
| parent | 62e2c25107234ebefe9f2668e44e79d37cd5a2e0 (diff) | |
| download | uhd-5f9d617073e12f191df90a0510702e2a1ee52bc9.tar.gz uhd-5f9d617073e12f191df90a0510702e2a1ee52bc9.tar.bz2 uhd-5f9d617073e12f191df90a0510702e2a1ee52bc9.zip  | |
rfnoc: ddc - Changed M = 2 for eiscat DDC
| -rw-r--r-- | host/lib/rfnoc/ddc_block_ctrl_impl.cpp | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/host/lib/rfnoc/ddc_block_ctrl_impl.cpp b/host/lib/rfnoc/ddc_block_ctrl_impl.cpp index adedf69ae..62a5ce896 100644 --- a/host/lib/rfnoc/ddc_block_ctrl_impl.cpp +++ b/host/lib/rfnoc/ddc_block_ctrl_impl.cpp @@ -252,7 +252,15 @@ private:          // Rate change = M/N          sr_write("N", std::pow(2.0, double(hb_enable)) * (decim & 0xff), chan); -        sr_write("M", 1, 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 +        if (noc_id == 0xDDC5E15CA7000000) { +            UHD_LOG_DEBUG("DDC", "EISCAT DDC! Assuming real inputs."); +            sr_write("M", 2, chan); +        } else { +            sr_write("M", 1, chan); +        }          if (decim > 1 and hb_enable == 0) {              UHD_LOGGER_WARNING("RFNOC") << boost::format(  | 
