From 46c0e95a86f06a0ebed51afe10af53f2faa31c07 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 20 Mar 2019 16:08:45 -0700 Subject: rfnoc: Read cmd FIFO size from blocks & configure ctrl_iface This requires noc_shell compat number 6.0. It will allow sending as many command packets, but no more, than there is space. Updated FPGA images for devices: - X310/X300 - N300/N310/N320 - E310/E320 --- host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'host/lib/include/uhdlib') diff --git a/host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp b/host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp index deb58f14c..29b2e73c0 100644 --- a/host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp +++ b/host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp @@ -59,6 +59,17 @@ public: const bool readback=false, const uint64_t timestamp=0 ) = 0; + + /*! Set the depth of the command FIFO size + * + * Note: This is not safe to call during operations. Call this during + * initialization. + * + * \param num_lines The number of lines of depth in the command FIFO. The + * function will calculate the number of packets that will + * fit into the command FIFO. + */ + virtual void set_cmd_fifo_size(const size_t num_lines) = 0; }; }} /* namespace uhd::rfnoc */ -- cgit v1.2.3