From c3327801ca43f3fdeca669e3aff470ce05e439a0 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 26 Jan 2022 09:52:48 +0100 Subject: rfnoc: Add post_init() method to noc_block_base This method allows running a fixed set of rules to check the internal consistency of a block. This may be necessary, because blocks authors may incorrectly implement a certain design rule, and we want the ability to not start an RFNoC graph with blocks that have rule violations which we can write checks for. --- host/lib/rfnoc/noc_block_base.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib/rfnoc/noc_block_base.cpp') diff --git a/host/lib/rfnoc/noc_block_base.cpp b/host/lib/rfnoc/noc_block_base.cpp index 9719e739b..f854ca8d4 100644 --- a/host/lib/rfnoc/noc_block_base.cpp +++ b/host/lib/rfnoc/noc_block_base.cpp @@ -350,6 +350,11 @@ void noc_block_base::shutdown() update_reg_iface(); } +void noc_block_base::post_init() +{ + // nop +} + std::shared_ptr noc_block_base::get_mb_controller() { return _mb_controller; -- cgit v1.2.3