From 1bd3db57cab62517ecf282c670f2ccd35d1d303d Mon Sep 17 00:00:00 2001 From: Ryan Marlow Date: Fri, 29 Sep 2017 11:45:46 -0400 Subject: dram_fifo, BIST: BUS_CLK_RATE is now a readback reg. --- host/lib/rfnoc/dma_fifo_block_ctrl_impl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'host/lib/rfnoc') 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 #include #include +#include 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 { -- cgit v1.2.3