From 0f15704cb9daf963a1d146c4f5413bfafb12e4de Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 18 Feb 2022 11:34:30 +0100 Subject: rfnoc: graph_utils: Add ability to declare back-edges rfnoc::connect_through_blocks(), unlike rfnoc_graph::connect(), did not have an argument to declare a back-edge. This patch remedies this situation by adding a skip_property_propagation argument that works exactly as with rfnoc_graph::connect(). --- host/include/uhd/utils/graph_utils.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'host/include') diff --git a/host/include/uhd/utils/graph_utils.hpp b/host/include/uhd/utils/graph_utils.hpp index 6b264032c..29f488983 100644 --- a/host/include/uhd/utils/graph_utils.hpp +++ b/host/include/uhd/utils/graph_utils.hpp @@ -63,6 +63,10 @@ std::vector UHD_API get_block_chain(const rfnoc_graph::sptr graph, * \param src_port Block port where the path starts * \param dst_blk Destination block's ID * \param dst_port Block port where the path ends + * \param skip_property_propagation Declare back-edge + * (see also uhd::rfnoc::rfnoc_graph::connect()) + * If true, it will declare only the first + * connection in this chain as a back-edge. * * \return The edge list representing the data path requested */ @@ -70,6 +74,7 @@ std::vector UHD_API connect_through_blocks(rfnoc_graph::sptr graph const block_id_t src_blk, const size_t src_port, const block_id_t dst_blk, - const size_t dst_port); + const size_t dst_port, + const bool skip_property_propagation = false); }} // namespace uhd::rfnoc -- cgit v1.2.3