diff options
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 { |