资源简介
ccsds标准的BCH(63,56)编译码C语言程序,用VC编译仿真亲测可用可纠错
代码片段和文件信息
/*
* File: bch_4148_4096_9_v100.cpp
* title: Encoder/decoder for binary BCH codes in C (Version 3.1)
* Author: Robert Morelos-Zaragoza
* Date: August 1994
* Revised: June 13 1997
*
* =============== Encoder/Decoder for binary BCH codes in C =================
*
* Version 1: Original program. The user provides the generator polynomial
* of the code (cumbersome!).
* Version 2: Computes the generator polynomial of the code.
* Version 3: No need to input the coefficients of a primitive polynomial of
* degree m used to construct the Galois Field GF(2**m). The
* program now works for any binary BCH code of length such that:
* 2**(m-1) - 1 < length <= 2**m - 1
*
* Note: You may have to change the size of the arrays to make it work.
*
* The encoding and decoding methods used in this program are based on the
* book “Error Control Coding: Fundamentals and Applications“ by Lin and
* Costello Prentice Hall 1983.
*
* Thanks to Patrick Boyle (pboyle@era.com) for his observation that ‘bch2.c‘
* did not work for lengths other than 2**m-1 which led to this new version.
* Portions of this program are from ‘rs.c‘ a Reed-Solomon encoder/decoder
* in C written by Simon Rockliff (simon@augean.ua.oz.au) on 21/9/89. The
* previous version of the BCH encoder/decoder in C ‘bch2.c‘ was written by
* Robert Morelos-Zaragoza (robert@spectra.eng.hawaii.edu) on 5/19/92.
*
* NOTE:
* The author is not responsible for any malfunctioning of
* this program nor for any damage caused by it. Please include the
* original program along with these comments in any redistribution.
*
* For more information suggestions or other ideas on implementing error
* correcting codes please contact me at:
*
* Robert Morelos-Zaragoza
* 5120 Woodway Suite 7036
* Houston Texas 77056
*
* email: r.morelos-zaragoza@ieee.org
*
* COPYRIGHT NOTICE: This computer program is free for non-commercial purposes.
* You may implement this program for any non-commercial application. You may
* also implement this program for commercial purposes provided that you
* obtain my written permission. Any modification of this program is covered
* by this copyright.
*
* == Copyright (c) 1994-7 Robert Morelos-Zaragoza. All rights reserved. ==
*
* 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
* p[] = coefficients of a primitive polynomial used to generate GF(2**m)
* g[] = coefficie
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-03-04 15:34 BCH_SOURCE(63_56)\
文件 13527 2020-03-01 15:36 BCH_SOURCE(63_56)\bch_(63_56).cpp
文件 3569 2020-03-01 15:38 BCH_SOURCE(63_56)\bch_(63_56).dsp
文件 548 2020-03-01 17:31 BCH_SOURCE(63_56)\bch_(63_56).dsw
文件 41984 2020-03-01 17:31 BCH_SOURCE(63_56)\bch_(63_56).ncb
文件 49664 2020-03-01 17:31 BCH_SOURCE(63_56)\bch_(63_56).opt
文件 274 2020-03-01 15:38 BCH_SOURCE(63_56)\bch_(63_56).plg
目录 0 2020-03-04 15:34 BCH_SOURCE(63_56)\Debug\
文件 188505 2020-03-01 15:36 BCH_SOURCE(63_56)\Debug\bch_(63_56).exe
文件 262808 2020-03-01 15:36 BCH_SOURCE(63_56)\Debug\bch_(63_56).ilk
文件 14819 2020-03-01 15:36 BCH_SOURCE(63_56)\Debug\bch_(63_56).obj
文件 228260 2020-03-01 13:46 BCH_SOURCE(63_56)\Debug\bch_(63_56).pch
文件 508928 2020-03-01 15:36 BCH_SOURCE(63_56)\Debug\bch_(63_56).pdb
文件 41984 2020-03-01 15:39 BCH_SOURCE(63_56)\Debug\vc60.idb
文件 53248 2020-03-01 15:36 BCH_SOURCE(63_56)\Debug\vc60.pdb
文件 1292 2007-09-27 16:15 BCH_SOURCE(63_56)\ReadMe.txt
文件 307 2007-09-27 16:15 BCH_SOURCE(63_56)\StdAfx.cpp
文件 667 2007-09-27 16:15 BCH_SOURCE(63_56)\StdAfx.h
文件 71 2020-03-01 13:46 BCH_SOURCE(63_56)\test_data_bin_512.txt
评论
共有 条评论