资源说明:不错的bch编解码实例。可直接使用,用于nand flash
Data Generation Script:
data -n 64 > data_in.txt
Output: 1111222233334444;
BCH Encoder Script:
bch_encoder -m 8 -k 64 -t 4 < data_in.txt > data_codeword.txt
Output: 111122223333444490639C26;
Error Script:
error -e 24 < data_codeword.txt > data_error.txt
Output: 91112222337B444490639C26;
BCH Decoder Script:
bch_decoder -m 8 -k 64 -t 4 < data_error.txt > data_out.txt
Output: { Codeword 1: 3 errors found at location: 0 41 44}
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。