diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-08-27 08:59:10 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:39 -0800 |
commit | 932ff0537bd61360e2ddaf211d6d2cafb0ddaa67 (patch) | |
tree | 80312e3b1da931f17b5c96a42e978639adf9d8d0 /host/lib/rfnoc/link_stream_manager.cpp | |
parent | 01284980b1d7227f1c11496d2be939bb4b23adb1 (diff) | |
download | uhd-932ff0537bd61360e2ddaf211d6d2cafb0ddaa67.tar.gz uhd-932ff0537bd61360e2ddaf211d6d2cafb0ddaa67.tar.bz2 uhd-932ff0537bd61360e2ddaf211d6d2cafb0ddaa67.zip |
rfnoc: client_zero can track num SEPs and num ctrl EPs separately
Diffstat (limited to 'host/lib/rfnoc/link_stream_manager.cpp')
-rw-r--r-- | host/lib/rfnoc/link_stream_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/rfnoc/link_stream_manager.cpp b/host/lib/rfnoc/link_stream_manager.cpp index a85ad2b4b..1c3ad407d 100644 --- a/host/lib/rfnoc/link_stream_manager.cpp +++ b/host/lib/rfnoc/link_stream_manager.cpp @@ -155,16 +155,16 @@ public: "Control for the specified EPID was not initialized"); } const client_zero::sptr& c0_ctrl = _client_zero_map.at(dst_epid); - uint16_t dst_port = 1 + c0_ctrl->get_num_stream_endpoints() + block_index; + const uint16_t block_slot = 1 + c0_ctrl->get_num_stream_endpoints() + block_index; if (block_index >= c0_ctrl->get_num_blocks()) { throw uhd::value_error("Requested block index out of range"); } // Create control endpoint return _ctrl_ep->get_ctrlport_ep(dst_epid, - dst_port, - (size_t(1) << c0_ctrl->get_block_info(dst_port).ctrl_fifo_size), - c0_ctrl->get_block_info(dst_port).ctrl_max_async_msgs, + c0_ctrl->get_ctrl_xbar_port(block_index), + (size_t(1) << c0_ctrl->get_block_info(block_slot).ctrl_fifo_size), + c0_ctrl->get_block_info(block_slot).ctrl_max_async_msgs, client_clk, timebase_clk); } |