Thank you Dario. I look on the example, and I have another question.
like I mentioned my block is source block. In order to create the block I looked on the Siggen block and i saw that in the axi_wrapper we don't use the tlast signal by define the resize_output and by define packets Now, in the the add sub block the block don't include at all the axi_wrapper. So i can create the streaming without the tlast signal without the axi_wrapper? BR ishai On Sun, Jul 22, 2018 at 11:43 PM, Dario Pennisi <da...@iptronix.com> wrote: > 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: usrp-users@lists.ettus.com > > > 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 > > > -- ישי אלוש 054-5823400
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com