KE18F512VLH16 ECC Memory Cell Autocorrection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KE18F512VLH16 ECC Memory Cell Autocorrection

42 Views
sean_dvorscak
Contributor III

It's understood that the HW provides automatic correction of single bit ECC errors. However, it's unclear where the corrections are being made.

When the hardware autocorrects a single bit ECC error, does it correct on both the read out and the memory cell, or just on the read out?

From the AN5335 example figure, is the Read-out Data being corrected from 0->1? That would mean we need to write back the corrected value to RAM to actually clear it within the memory cell.

sean_dvorscak_0-1786035276314.png

 

 

We are concerned if the data in the RAM memory cell is not corrected, a single bit error could degrade to a double bit error.

0 Kudos
Reply
1 Reply

9 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @sean_dvorscak 

1. "When the hardware autocorrects a single bit ECC error, does it correct on both the read out and the memory cell, or just on the read out?"

->>The correction is performed only on readout; the SRAM cell contents are not written back.

2. "We are concerned if the data in the RAM memory cell is not corrected, a single bit error could degrade to a double bit error."

->>Yes, if you want to clear errors in the memory cells and prevent error accumulation, it is recommended that the software perform a read-correct-writeback operation.

 

Thank you.

 

BR

Alice

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2402601%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EKE18F512VLH16%20ECC%20Memory%20Cell%20Autocorrection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2402601%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt's%20understood%20that%20the%20HW%20provides%20automatic%20correction%20of%20single%20bit%20ECC%20errors.%20However%2C%20it's%20unclear%20where%20the%20corrections%20are%20being%20made.%3C%2FP%3E%3CP%3EWhen%20the%20hardware%20autocorrects%20a%20single%20bit%20ECC%20error%2C%20does%20it%20correct%20on%20both%20the%20read%20out%20and%20the%20memory%20cell%2C%20or%20just%20on%20the%20read%20out%3F%3C%2FP%3E%3CP%3EFrom%20the%20AN5335%20example%20figure%2C%20is%20the%20Read-out%20Data%20being%20corrected%20from%200-%26gt%3B1%3F%20That%20would%20mean%20we%20need%20to%20write%20back%20the%20corrected%20value%20to%20RAM%20to%20actually%20clear%20it%20within%20the%20memory%20cell.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sean_dvorscak_0-1786035276314.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22sean_dvorscak_0-1786035276314.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F393899i971C6CDB0F7D7D81%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sean_dvorscak_0-1786035276314.png%22%20alt%3D%22sean_dvorscak_0-1786035276314.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3EWe%20are%20concerned%20if%20the%20data%20in%20the%20RAM%20memory%20cell%20is%20not%20corrected%2C%20a%20single%20bit%20error%20could%20degrade%20to%20a%20double%20bit%20error.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2402778%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20KE18F512VLH16%20ECC%20Memory%20Cell%20Autocorrection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2402778%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F90401%22%20target%3D%22_blank%22%3E%40sean_dvorscak%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20%22%3CSPAN%3EWhen%20the%20hardware%20autocorrects%20a%20single%20bit%20ECC%20error%2C%20does%20it%20correct%20on%20both%20the%20read%20out%20and%20the%20memory%20cell%2C%20or%20just%20on%20the%20read%20out%3F%3C%2FSPAN%3E%22%3C%2FP%3E%0A%3CP%3E-%26gt%3B%26gt%3BThe%20correction%20is%20performed%20only%20on%20readout%3B%20the%20SRAM%20cell%20contents%20are%20not%20written%20back.%3C%2FP%3E%0A%3CP%3E2.%20%22%3CSPAN%3EWe%20are%20concerned%20if%20the%20data%20in%20the%20RAM%20memory%20cell%20is%20not%20corrected%2C%20a%20single%20bit%20error%20could%20degrade%20to%20a%20double%20bit%20error.%3C%2FSPAN%3E%22%3C%2FP%3E%0A%3CP%3E-%26gt%3B%26gt%3BYes%2C%20if%20you%20want%20to%20clear%20errors%20in%20the%20memory%20cells%20and%20prevent%20error%20accumulation%2C%20it%20is%20recommended%20that%20the%20software%20perform%20a%20read-correct-writeback%20operation.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E