FPGARelated.com
Forums

Open source Verilog BCH encoder/decoder

Started by Russell Dill June 23, 2014
Hi Russell!
First of all, thank you very much for this amazing tool. It works wonders and is very well coded. 
I do have a question and hope you can help me. For my project, I need to have a specific codeword length. My DATA_BITS size can change, as well as "T", but I do need a specific N which is 256 (32 bytes). So far I cannot achieve this. For different values of DATA_BITS and T either I get 31 or 33 bytes codeword length, never 32. I guess this has to do with this piece you wrote on the README: "Note that the number of errors correctable for a given polynomial is sparse. The search function will choose the next highest number of correctable
errors rather than trying to move to the next polynomial."

Any advice on how can I work around this? 

Thanks again.
Gabriel