From faa4786e025e787c196eec99f213da0d51a1f87e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 31 May 2019 22:11:42 -0700 Subject: rfnoc: Add mb_controller API The mb_controller is an interface to hardware-specific functions of the motherboard. The API works in two ways: - The user can request access to it, and thus interact directly with the motherboard - RFNoC blocks can request access to it, if they need to interact with the motherboard themselves. --- host/lib/rfnoc/noc_block_base.cpp | 6 ++++++ 1 file changed, 6 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 2bbf52928..0b2d456b2 100644 --- a/host/lib/rfnoc/noc_block_base.cpp +++ b/host/lib/rfnoc/noc_block_base.cpp @@ -24,6 +24,7 @@ noc_block_base::noc_block_base(make_args_ptr make_args) , _num_input_ports(make_args->num_input_ports) , _num_output_ports(make_args->num_output_ports) , _clock_iface(make_args->clk_iface) + , _mb_controller(std::move(make_args->mb_control)) { // First, create one tick_rate property for every port _tick_rate_props.reserve(get_num_input_ports() + get_num_output_ports()); @@ -87,3 +88,8 @@ void noc_block_base::_set_tick_rate(const double tick_rate) _clock_iface->set_freq(tick_rate); _tick_rate = tick_rate; } + +std::shared_ptr noc_block_base::get_mb_controller() +{ + return _mb_controller; +} -- cgit v1.2.3