Forming syndrome bit stream for Berlekamp-Massey BCH decoding

62 Views Asked by At

I'm implementing a (127, 64, 10) BCH decoder using the Berlekamp-Massey algorithm and I'm not able to figure out how to provide the syndromes to the algorithm. My syndrome calculation logic computes 2t integers (where each integer represents a polynomial), but the algorithm on Wiki expects a bit string of length N as an input. How are the 2t polynomials converted to an N-bit stream? Am I expected to convert the 2t integers to one long bit string of N bits and then provide it to the algorithm?