BCH Encoder and Decoder functions.
BCH Decoder employs the following steps in decoding :
Syndrome calculation, RiBM algorithm (optimized for BCH codes) and Chien search.
Miroslav Marinkovic (2020). BCH Decoder and Encoder (https://www.mathworks.com/matlabcentral/fileexchange/61627-bch-decoder-and-encoder), MATLAB Central File Exchange. Retrieved .
hi, Can this function work with Random Linear Network Coding Encoder and Decoder
Code used and benchmarked for shortened and native BCH. Thanks to the author for the update.
This code is great. However, it does not work for the large block sizes in the DVB-S2 specification. For example, it doesn't work with:
n = 16200;
n_max = 65535;
k_max = 65343;
t = 12;
prim_poly = 65581;
The good news is that the problem is easy to fix. Replace all the uint16() functions in the code with uint32(). You will also have to run the following Matlab function once. It took several hours for gftable() to complete on my computer.
Hi, can this software be tested for Bit Error Rate simulation of BPSK modulation?
- Testbench script updated to test BCH Encoder/Decoder for different error correction capabilities in a single run
- Bug causing incorrect calculaton of error locator polynominal (only when parameter "t" is odd number) has been fixed;