aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/rfnoc_graph.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-11-04 11:55:33 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-11-12 12:11:33 -0800
commit09839fa23229daf00cb9b857806d47d2cac50057 (patch)
tree09068ed6dbda6747b1a1730885746c120c6eb934 /host/lib/rfnoc/rfnoc_graph.cpp
parentbccc2b49ab25551c6fc104a0b69f69121b76031d (diff)
downloaduhd-09839fa23229daf00cb9b857806d47d2cac50057.tar.gz
uhd-09839fa23229daf00cb9b857806d47d2cac50057.tar.bz2
uhd-09839fa23229daf00cb9b857806d47d2cac50057.zip
rfnoc: Add CHDR width to make args
This provides every block controller with a copy of its CHDR width. Note: mock blocks always get configured with a 64-bit CHDR width, to retain API compatibility.
Diffstat (limited to 'host/lib/rfnoc/rfnoc_graph.cpp')
-rw-r--r--host/lib/rfnoc/rfnoc_graph.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/rfnoc/rfnoc_graph.cpp b/host/lib/rfnoc/rfnoc_graph.cpp
index f6b07a36f..35a5cb28c 100644
--- a/host/lib/rfnoc/rfnoc_graph.cpp
+++ b/host/lib/rfnoc/rfnoc_graph.cpp
@@ -718,6 +718,7 @@ private:
make_args_uptr->num_output_ports = block_info.num_outputs;
make_args_uptr->mtu =
(1 << block_info.data_mtu) * chdr_w_to_bits(mb.get_chdr_w()) / 8;
+ make_args_uptr->chdr_w = mb.get_chdr_w();
make_args_uptr->reg_iface = block_reg_iface;
make_args_uptr->tb_clk_iface = tb_clk_iface;
make_args_uptr->ctrlport_clk_iface = ctrlport_clk_iface;