Talk:Packing Bits
Jump to navigation
Jump to search
I disagree with the explanation in the paragraph Explaining the Packing K Bits Block
If we make a simulation with gnuradio and we consider B0, the first bit generated, it will be the most significative value in the block, I mean, the result will be a value in this way:
[0 0 0 0 B0 B1 B2 B3]
We can check it assuming a Vector Source instead a Random generator.
If we generate the bits using a source the value (1,1,0,0) and we represent using the histogram sink, the value showed will be 12 (2³ * 1 + 2² * 1 + 2¹ * 0 + 2⁰ * 0), not 3 (2³ * 0 + 2² * 0 + 2¹ * 1 + 2⁰ * 1), as explained. This is congruent with the explanation given in wiki about the Pack K Bits block.