ASIC/FPGA Design and Verification Out Source Services
C++ Reference model for ECC.
-
For an SD slave with
Samsung flash (k9f1208)
project,
I wrote a reference model, in c++, that generates ECC for a 256 bytes.
-
The model is based on a technical note from Micron namely
TN-29-63: Error Correction Code (ECC) in SLC NAND.
-
The code is built from three main blocks:
- The c++ main block: runs the code, randomize error
location (byte and bit address), number of errors and checks
results.
- The ECC block: calculates the ECC and allows for data
correction.
- The random block: facilities randomization, which is
required for testing.
-
A bash script is used to run the test multiple times,
generates random data and error locations and checks the
results.
main,
random,
ECC,
script,
The code is not free. To get it, please send an e-mail and put
sd_cpp_ecc_single_errHamming in the subject.
|