From 6bd43946a71173cbf0f1d318843ba34d6849dc30 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 7 Jun 2019 21:37:15 -0700 Subject: rfnoc: Add shutdown feature to blocks On destruction, the rfnoc_graph will call shutdown() on all blocks. This allows a safe de-initialization of blocks independent of the lifetime of the noc_block_base::sptr. Also adds the shutdown feature to null_block_control. --- host/lib/rfnoc/null_block_control.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'host/lib/rfnoc/null_block_control.cpp') diff --git a/host/lib/rfnoc/null_block_control.cpp b/host/lib/rfnoc/null_block_control.cpp index be0738b76..21042453d 100644 --- a/host/lib/rfnoc/null_block_control.cpp +++ b/host/lib/rfnoc/null_block_control.cpp @@ -162,9 +162,11 @@ private: }); } - /************************************************************************** - * FPGA communication (register IO) - *************************************************************************/ + void deinit() + { + issue_stream_cmd(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); + } + /************************************************************************** * Attributes -- cgit v1.2.3