不错的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_codeword.txt
Output: 111122223333444490639C26;
Error Script:
error -e 24 data_error.txt
Output: 91112222337B444490639C26;
BCH Decoder Script:
bch_decoder -m 8 -k 64 -t 4 data_out.txt
Output: { Codeword 1: 3 errors found at location: 0 41 44}
2021-08-16 21:54:44
943KB
bch
1