In solid storage system, we use nand lfash as media. Because we use nand lfash, after several read and write it, the data in lfash is not stable. We have to deifne a way to let it become stable when we transformer the date with CPU. In this paper we describe the characteristic and principle of ECC. And implementing the function of ECC in FPGA. We get the conclusion that with 22 bit ECC code can correct 1 bit error and detect 2 bit errors in 256 bytes data.%以Nand lfash为存储介质的固态存储系统中,因为Nand lfash的固有特性,在多次读写后,储存在lfash中的数据将会变得不可靠。所以有必要开发一种能实现数据可靠传输的手段来提高lfash和主控芯片之间数据传输的可靠性。文中介绍了ECC码的特点和原理,在FPGA开发环境下实现ECC校验功能。并通过工程实现,在FPGA上实现了该ECC算法。测试结果表明256 Byte数据生成22 bit的ECC校验数据。能够检测1 bit错误和2 bit错误,并能纠正1 bit错误。
展开▼