Hi ishai,
Although a block with different number of inputs and outputs is feasible in 
rfnoc, uhd won't work well with it so I would suggest you define it with the 
same number of inputs and outputs and then just connect the unused into to a 
null source/sink

For a complete example on how to implement it look at the add sub block which 
has two inputs and two outputs... Just copy that and replace the internal 
algorithm and you're done.

Just one caveat... Since you are sharing a single axi interface of the internal 
matrix you are limited to around 300 msps total so if you plan to output two 
200 msps streams you will see overruns and nothing will work.

If you need to output two 200 msps streams the only way is manually 
instantiating your block and connect it to two axi ports. You can check 
x300_core which contains the instances of the radios... You can add you block 
along with them...
Best regards,

Dario Pennisi


Da: ishai alouche via USRP-users
Inviato: domenica 22 luglio, 20:58
Oggetto: [USRP-users] how to write test for block with two output ports
A: [email protected]


Hi all,

I use the X310 usrp and i create new block with rdnocmodtools.

My block have one input and two outputs and I have two questions:

1. I try to understand how I define two output ports. I found two way to do it, 
the first is by duplicate the axi_wrapper block, and the second is without 
axi_wrapper at all and using chdr_framer instead (like in the split_stream 
block). My question is how is the correct way to write it? and second when we 
use chdr_framer and when I duplicate the axi_wrapper in general.

2. The second question is about the test bench. I wrote my block with two 
axi_wrapper and i try to check it.In the test bench I try to read the two ports 
with  tb_streamer.recv() function, but I didn't success and the function didn't 
read the results. I also want to know how i can use the tb_streamer.pull_word() 
command with two poets. I mean with tb_streamer.recv() the third argument was 
the port, i.e. 1 or 2, what is the correct syntax if I want to use 
tb_streamet.pull_word() for two ports.

Thank in advance
Ishai


_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to