[USRP-users] RFNOC x300 Rx/Tx loopback

Daniel Rauschen Daniel.Rauschen at fkie.fraunhofer.de
Wed Oct 4 05:29:04 EDT 2017


Hi,

I am trying to do a Rx / Tx loopback test and I am stuck for days with it.

For the sake of simplicity I altered the gain example [1] with the 
approach 3 from [2] (find my noc_block_gain.v and the test bench attached).

I connect the blocks like this (UHD):

*rx_graph->connect(m_radio_ctrl->get_block_id(),0, 
split_ctrl->get_block_id(),0,1024);
rx_graph->connect(split_ctrl->get_block_id(),0, 
fifo_ctrl->get_block_id(),0,***1024*);
rx_graph->connect(split_ctrl->get_block_id(),1, 
gain_ctrl->get_block_id(),0,***1024*);
rx_graph->connect(gain_ctrl->get_block_id(),0, 
dma_fifo_ctrl->get_block_id(),0,***1024*);
rx_graph->connect(dma_fifo_ctrl->get_block_id(),0,m_radio_ctrl->get_block_id(),1,***1024*);*

Which is some how wrong, because I get following error when running the 
programm:*
*

*[32;1m[INFO] [UHDlinux; GNU C++ version 5.4.0 20160609; Boost_105800; 
UHD_4.0.0.rfnoc-devel-369-g1908672f] **
**[INFO] [X300] X300 initialization sequence...**
**[INFO] [X300] Determining maximum frame size... **
**[32;1m[INFO] [X300] Maximum frame size: 8000 bytes.**
**[32;1m[INFO] [X300] Setup basic communication...**
**[32;1m[INFO] [X300] Loading values from EEPROM...**
**[32;1m[INFO] [X300] Setup RF frontend clocking...**
**[32;1m[INFO] [X300] Radio 1x clock:120**
**[32;1m[INFO] [X300] Detecting internal GPSDO.... **
**[32;1m[INFO] [GPS] No GPSDO found**
**[32;1m[INFO] [RFNOC] [DMA FIFO] Running BIST for FIFO 0... **
**[32;1m[INFO] [RFNOC] pass (Throughput: 1302.6MB/s)**
**[32;1m[INFO] [RFNOC] [DMA FIFO] Running BIST for FIFO 1... **
**[32;1m[INFO] [RFNOC] pass (Throughput: 1296.1MB/s)**
**[32;1m[INFO] [RFNOC RADIO] Register loopback test passed**
**[32;1m[INFO] [RFNOC RADIO] Register loopback test passed**
**[32;1m[INFO] [RFNOC RADIO] Register loopback test passed**
**[32;1m[INFO] [RFNOC RADIO] Register loopback test passed**
**[33;1m[WARNING] [RFNOC] [0/SplitStream_0] defines 2 input 
buffer sizes, but 1 input ports**
**[32;1m[INFO] [CORES] Performing timer loopback test... **
**[32;1m[INFO] [CORES] Timer loopback test passed**
**[32;1m[INFO] [CORES] Performing timer loopback test... **
**[32;1m[INFO] [CORES] Timer loopback test passed**
**
**____________________________________**
**
**Radio0 Params:**
**Device Address:**
**    spp: 1024**
**
**____________________________________**
**
**SplitStream Params:**
**Empty Device Address**
**____________________________________**
**
**FIFO Params:**
**Empty Device Address**
**____________________________________**
**
**DmaFIFO Params:**
**Device Address:**
**    base_addr: 0**
**    depth: 65536**
**
**____________________________________**
**
**gain Params:**
**Device Address:**
**    gain: 10**
**    delaytime: 3600**
**
**____________________________________**
**Setting RX Freq: 2450.000000 MHz...**
**Actual RX Freq: 2450.000000 MHz...**
**
**Actual TX Freq: 2450.000000 MHz...**
**
**Actual RX Gain: 0.000000 dB...**
**
**Actual TX Gain: 0.000000 dB...**
**
**Connecting blocks...**
**terminate called after throwing an instance of 'uhd::runtime_error'**
**  what():  RuntimeError: Input FIFO for block 0/Radio_0 is too small 
(0 kiB) for packets of size 1 kiB**
**coming from block 0/DmaFIFO_0.**
*

Is there anyone who did a Rx/Tx loop with a similar flow graph as shown 
in grc_block.png?

What am I doing wrong?

Best regards,

Daniel


[1] https://kb.ettus.com/Getting_Started_with_RFNoC_Development

[2] https://corvid.io/2017/04/22/stupid-rfnoc-tricks-loopback/

-- 

M.Sc. Daniel Rauschen

Communication Systems

  

Fraunhofer Institute for Communication, Information Processing and Ergonomics FKIE

Fraunhoferstr. 20 | 53343 Wachtberg | Germany

Phone +49 (0)228 9435-404

mailto:Daniel.Rauschen at fkie.fraunhofer.de

http://www.fkie.fraunhofer.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171004/087bb89e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noc_block_gain_tb.sv
Type: text/x-svsrc
Size: 5705 bytes
Desc: not available
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171004/087bb89e/attachment.sv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noc_block_gain.v
Type: text/x-verilog
Size: 9143 bytes
Desc: not available
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171004/087bb89e/attachment.v>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grc_block.png
Type: image/png
Size: 65258 bytes
Desc: not available
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20171004/087bb89e/attachment.png>


More information about the USRP-users mailing list