From bba75b29feed2d3b42f9b6c4eb4bc574c09924c7 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 5 Jun 2019 12:05:30 -0700 Subject: rfnoc: Add mb_controller base class and X300/MPMD implementations --- host/lib/rfnoc/rfnoc_graph.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib/rfnoc/rfnoc_graph.cpp') diff --git a/host/lib/rfnoc/rfnoc_graph.cpp b/host/lib/rfnoc/rfnoc_graph.cpp index 01f669c62..201920366 100644 --- a/host/lib/rfnoc/rfnoc_graph.cpp +++ b/host/lib/rfnoc/rfnoc_graph.cpp @@ -140,6 +140,11 @@ private: throw uhd::key_error(std::string("Found no RFNoC devices for ----->\n") + dev_addr.to_pp_string()); } + _tree = _device->get_tree(); + _num_mboards = _tree->list("/mboards").size(); + for (size_t i = 0; i < _num_mboards; ++i) { + _mb_controllers.emplace(i, _device->get_mb_controller(i)); + } // Create a graph stream manager // FIXME get these from mb_iface or something -- cgit v1.2.3