资源简介
4bits 纠错ECC BCH算法源代码 以及很难得的三星4GB MLC nand flash 芯片资料
代码片段和文件信息
/*******************************************************************************
*
* File Name: bch_decoder.c
* Revision: 2.0
* Date: March 2007
* Email: nandsupport@micron.com
* Company: Micron Technology Inc.
*
* Description: Micron NAND BCH Decoder
*
* References:
* 1. Error Control Coding Lin & Costello 2nd Ed. 2004
* 2. Error Control Codes Blahut 1983
**
* Disclaimer This software code and all associated documentation comments or other
* of Warranty: information (collectively “Software“) is provided “AS IS“ without
* warranty of any kind. MICRON TECHNOLOGY INC. (“MTI“) EXPRESSLY
* DISCLAIMS ALL WARRANTIES EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED
* TO NONINFRINGEMENT OF THIRD PARTY RIGHTS AND ANY IMPLIED WARRANTIES
* OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE. MTI DOES NOT
* WARRANT THAT THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE
* OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE.
* FURTHERMORE MTI DOES NOT MAKE ANY REPRESENTATIONS REGARDING THE USE OR
* THE RESULTS OF THE USE OF THE SOFTWARE IN TERMS OF ITS CORRECTNESS
* ACCURACY RELIABILITY OR OTHERWISE. THE ENTIRE RISK ARISING OUT OF USE
* OR PERFORMANCE OF THE SOFTWARE REMAINS WITH YOU. IN NO EVENT SHALL MTI
* ITS AFFILIATED COMPANIES OR THEIR SUPPLIERS BE LIABLE FOR ANY DIRECT
* INDIRECT CONSEQUENTIAL INCIDENTAL OR SPECIAL DAMAGES (INCLUDING
* WITHOUT LIMITATION DAMAGES FOR LOSS OF PROFITS BUSINESS INTERRUPTION
* OR LOSS OF INFORMATION) ARISING OUT OF YOUR USE OF OR INABILITY TO USE
* THE SOFTWARE EVEN IF MTI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGES. Because some jurisdictions prohibit the exclusion or
* limitation of liability for consequential or incidental damages the
* above limitation may not apply to you.
*
* Copyright 2007 Micron Technology Inc. All rights reserved.
*
* Rev Author Date Changes
* --- --------------- ---------- -------------------------------
* 1.0 ZS 08/07/2006 Initial release
* 2.0 PF 03/05/2007 Fixed bug that caused some codewords
* to not be corrected
*
*
/*******************************************************************************/
#include “BCH_Global.c“
int bb[rr_max] ; // Syndrome polynomial
int s[rr_max]; // Syndrome values
int syn_error; // Syndrome error indicator
int count; // Number of errors
int location[tt_max]; // Error location
int ttx2; // 2t
int decode_flag; // Decoding indicator
void parallel_syndrome() {
/* Parallel computation of 2t syndromes.
* Use the same lookahead matrix T_G_R of parallel computation of parity check bits.
*
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 16734 2007-03-05 19:50 bch_decoder.c
文件 8230 2007-03-05 19:50 bch_encoder.c
文件 135345 2007-03-05 11:00 bch_encoder_decoder.pdf
文件 9813 2007-03-05 19:51 bch_global.c
文件 2334 2007-03-05 11:23 bug_data_pattern
文件 4253 2007-03-05 19:51 data_generator.c
文件 5701 2007-03-05 19:51 error.c
文件 1156156 2008-04-14 15:24 K9LAG08U0M_0.7.pdf
文件 568 2007-03-05 11:35 release_notes
文件 417 2007-03-05 11:30 test_sc
- 上一篇:基于STM32的示波器原理图
- 下一篇:MSP430简单计算器的实现
评论
共有 条评论