aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/noc_block_base.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-01-26 09:52:48 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-01 14:39:35 -0600
commitc3327801ca43f3fdeca669e3aff470ce05e439a0 (patch)
tree3615492eba2327c3299e36cfe34215025bf0af29 /host/lib/rfnoc/noc_block_base.cpp
parent13f4b9ec43e581f994a235619495ccd06c98ad54 (diff)
downloaduhd-c3327801ca43f3fdeca669e3aff470ce05e439a0.tar.gz
uhd-c3327801ca43f3fdeca669e3aff470ce05e439a0.tar.bz2
uhd-c3327801ca43f3fdeca669e3aff470ce05e439a0.zip
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.
Diffstat (limited to 'host/lib/rfnoc/noc_block_base.cpp')
-rw-r--r--host/lib/rfnoc/noc_block_base.cpp5
1 files changed, 5 insertions, 0 deletions
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<mb_controller> noc_block_base::get_mb_controller()
{
return _mb_controller;