From def3b6b2b8e2cb4f63b6d897b7bc2fa9225d5c05 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Tue, 27 Mar 2018 13:17:39 -0700 Subject: rfnoc radio: get_rx_stream resets sequence num Reset the RX sequence number whenever an RX streamer is created. Reviewed-by: Martin Braun --- host/lib/usrp/device3/device3_io_impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/lib') diff --git a/host/lib/usrp/device3/device3_io_impl.cpp b/host/lib/usrp/device3/device3_io_impl.cpp index fed273ae2..236269ceb 100644 --- a/host/lib/usrp/device3/device3_io_impl.cpp +++ b/host/lib/usrp/device3/device3_io_impl.cpp @@ -552,6 +552,11 @@ rx_streamer::sptr device3_impl::get_rx_stream(const stream_args_t &args_) UHD_RX_STREAMER_LOG() << std::hex << "data_sid = " << xport.send_sid << std::dec << " actual recv_buff_size = " << xport.recv_buff_size ; // Configure the block + // Note: We need to set_destination() after writing to SR_CLEAR_TX_FC. + // See noc_shell.v, in the section called Stream Source for details. + // Setting SR_CLEAR_TX_FC will actually also clear the destination and + // other settings. + blk_ctrl->sr_write(uhd::rfnoc::SR_CLEAR_TX_FC, 0xc1ea12, block_port); blk_ctrl->set_destination(xport.send_sid.get_src(), block_port); blk_ctrl->sr_write(uhd::rfnoc::SR_RESP_OUT_DST_SID, xport.send_sid.get_src(), block_port); -- cgit v1.2.3