I'm working on a GNU Radio application where they use 11-bit words and each 11-bit word actually correspond to a 10-bit word. They do that to prevent long run of "1" or "0" from appearing at the receiver which could cause loss of clock synchronisation at the receiver.
The point is I don't see how to do that in GNU Radio. Doing this in a file-based application would be easy since I would just have to separate the file into arrays of 11-bits and append the corresponding 10-bit word into another file. But here in GNU Radio, with the "stream"-type architecture, there would be no way to clearly limit each 11-bit word boundary from the other ones. I have looked into PDU but don't understand clearly how to code a PDU-in, PDU-out block, so I'm looking for advices or other ways to do what I want to do (not necessarily with PDU, there could be a better way or a Out-of-tree block I didn't find).
Thanks in advance.