Chinaunix首页 | 论坛 | 博客
  • 博客访问: 166917
  • 博文数量: 33
  • 博客积分: 2143
  • 博客等级: 大尉
  • 技术积分: 807
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-31 10:24
个人简介

Show me the money

文章分类

全部博文(33)

文章存档

2015年(1)

2013年(1)

2011年(12)

2010年(14)

2009年(2)

2008年(2)

2005年(1)

我的朋友

分类: 嵌入式

2011-02-18 21:59:56

BCH算法中用到的各个变量的含义:

m = order of the Galois field GF(2**m)

n = 2**m - 1 = size of the multiplicative group of GF(2**m)

length = length of the BCH code

t = error correcting capability (max. no. of errors the code corrects)

d = 2*t + 1 = designed min. distance = no. of consecutive roots of g(x) + 1

k = n - deg(g(x)) = dimension (no. of information bits/codeword) of the code

 

说的更简单一点:

length – 数据的长度

t – 纠错能力

length - k – 校验码的长度

 

BCH编码的过程是将长度为length的数据编码得到长度为length – k的校验码

BCH解码的过程是将长度为length的数据和长度为length – k的校验码进行计算,检测数据是否有错误,如果数据发生错误,对错误的数据进行纠正。最多可以纠正t个错误。

附件为BCH encoder/decoder程序

文件:bch3.zip
大小:7KB
下载:下载

 

阅读(967) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-06 09:12:43

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com