Re: [Discuss-gnuradio] gnuradio block for boolean operations

2008-02-18 Thread Ed Criscuolo
Tim Meehan wrote: [tim] I think the auto code generators in gengen is a good compromise Agreed. [tim] One note on your nrzi_to_nrz code below. I don't know much about compiler optimization but I suspect nrz_bit = ! nrzi_bit ^ d_prev_nrzi_bit might give you better performance than t

Re: [Discuss-gnuradio] gnuradio block for boolean operations

2008-02-18 Thread Tim Meehan
Thanks for the input Ed. Some comments below > Purely from the point of view of "cohesion" I would recommend > the "gr_xor_bb" form instead of passing in a selector that > determines the behavior. Although I must admit, I wrestled > for quite a while with writing so much infrastructure code >

Re: [Discuss-gnuradio] gnuradio block for boolean operations

2008-02-18 Thread Ed Criscuolo
Tim Meehan wrote: Hello all, I want to perform some simple boolean operations on a stream of data. For example invert the bits from the output of the demodulators or convert from NRZ to NRZI I was thinking something like 1) gr_xor_bb, gr_and_bb, gr_or_bb, br_not_bb ... or 2) maybe gr_boolean

Re: [Discuss-gnuradio] gnuradio block for boolean operations

2008-02-16 Thread Tim Meehan
Johnathan, I have attached a patch to gnuradio-core/src/lib/gengen that provides gr_xor_bb, gr_xor_ii and gr_xor_ss. The patch also contains qa code dumped into gnuradio-core/src/python/gnuradio/gr If this is the format you are looking for I will quickly gen up some other boolean functions. If

Re: [Discuss-gnuradio] gnuradio block for boolean operations

2008-02-16 Thread Johnathan Corgan
On 2/14/08, Tim Meehan <[EMAIL PROTECTED]> wrote: > 1) gr_xor_bb, gr_and_bb, gr_or_bb, br_not_bb ... This would be the way to go. Alternatively, you could create these blocks as _ss or _ii, and work on packed data. Depending on where in your flowgraph you need this operation, this would be mu

[Discuss-gnuradio] gnuradio block for boolean operations

2008-02-14 Thread Tim Meehan
Hello all, I want to perform some simple boolean operations on a stream of data. For example invert the bits from the output of the demodulators or convert from NRZ to NRZI I was thinking something like 1) gr_xor_bb, gr_and_bb, gr_or_bb, br_not_bb ... or 2) maybe gr_boolean("xor") , gr_boolean(