diff options
author | Ryan Marlow <ryan.marlow@ettus.com> | 2017-09-29 11:45:46 -0400 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2017-09-29 15:13:10 -0700 |
commit | 1bd3db57cab62517ecf282c670f2ccd35d1d303d (patch) | |
tree | 48968bdb8351cd10473f697a07080d6290f78b1a /host/lib/rfnoc | |
parent | 895c965f75f4a0d85143b614dd7232ce85c45307 (diff) | |
download | uhd-1bd3db57cab62517ecf282c670f2ccd35d1d303d.tar.gz uhd-1bd3db57cab62517ecf282c670f2ccd35d1d303d.tar.bz2 uhd-1bd3db57cab62517ecf282c670f2ccd35d1d303d.zip |
dram_fifo, BIST: BUS_CLK_RATE is now a readback reg.
Diffstat (limited to 'host/lib/rfnoc')
-rw-r--r-- | host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp b/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp index 93f599314..2a5117149 100644 --- a/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp +++ b/host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp @@ -23,13 +23,11 @@ #include <uhd/types/wb_iface.hpp> #include <boost/make_shared.hpp> #include <boost/thread/mutex.hpp> +#include <boost/format.hpp> using namespace uhd; using namespace uhd::rfnoc; -//TODO (Ashish): This should come from the framework -static const double BUS_CLK_RATE = 166.67e6; - class dma_fifo_block_ctrl_impl : public dma_fifo_block_ctrl { public: @@ -70,7 +68,7 @@ public: if (bisterr != 0) { throw uhd::runtime_error(str(boost::format("BIST failed! (code: %d)\n") % bisterr)); } else { - double throughput = _perifs[i].core->get_bist_throughput(BUS_CLK_RATE); + double throughput = _perifs[i].core->get_bist_throughput(); UHD_LOGGER_INFO("RFNOC") << (boost::format("pass (Throughput: %.1fMB/s)") % (throughput/1e6)) ; } } else { |