Re: [Discuss-gnuradio] really need suggestions for operating on big blocks of data

2007-05-30 Thread Achilleas Anastasopoulos
Vincenzo, regarding your first question I am not sure what you mean by "wise". In terms of speed? in terms of ease of coding? you can take a look at the code implementing the block; is very simple. The basic idea is to set the output_multiple to the size of the ineterleaver, so whenever work() i

Re: [Discuss-gnuradio] really need suggestions for operating on big blocks of data

2007-05-30 Thread Vincenzo Pellegrini
Yes Achilleas, the explanation is very clear and useful. I'll probably go this way. just two questions: Yesterday night, I think Ive succeded in passing vector input to my block, and collecting vector output from it. so now I do think that I could also perform permutation this way (i.e. operating

Re: [Discuss-gnuradio] really need suggestions for operating on big blocks of data

2007-05-29 Thread Achilleas Anastasopoulos
Vincenzo, what you want is already implemented in gnuradio. Take a look at the following classes/blocks in gr-trellis: interleaver.h/i/cc trellis_permutation.h/i/cc Brief summary: 1) generate a text file (see below) describing your permutation (or have your favorite program generate it automati

Re: [Discuss-gnuradio] really need suggestions for operating on big blocks of data

2007-05-29 Thread Vincenzo Pellegrini
Thanks Achilleas Thanks Eric, Yes Achilleas, what you have described is right exactly what I need. the constant permutation is indeed a vector hard coded in my block. my problem is that I could neither set the step of the cycle for (int i = 0; i < noutput_items; i+= STEP){ as far as 1512, nor a

Re: [Discuss-gnuradio] really need suggestions for operating on big blocks of data

2007-05-29 Thread Eric Blossom
On Mon, May 28, 2007 at 07:30:08PM +0200, Vincenzo Pellegrini wrote: > sorry Eric, > > I really haven't found a proper way to operate (actually to do > interleaving) on blocks of 6048 items of one byte, as requested by the > standard I'm trying to implement. > > maybe this is because it's not ver

Re: [Discuss-gnuradio] really need suggestions for operating on big blocks of data

2007-05-29 Thread Achilleas Anastasopoulos
vincenzo, let me make sure I understand what you want to implement: You want a block that processes N=6048 BYTES at a time. The input is x1,x2,x3,xN and the output is another N=6048 bytes which are a permutation of the input block, ie, y1,y2,,yN such that y(i)=x(permutation(i)). Next tim

[Discuss-gnuradio] really need suggestions for operating on big blocks of data

2007-05-28 Thread Vincenzo Pellegrini
sorry Eric, I really haven't found a proper way to operate (actually to do interleaving) on blocks of 6048 items of one byte, as requested by the standard I'm trying to implement. maybe this is because it's not very clear to me which way the function work is called at runtime and how the value of