CPC G06F 3/0659 (2013.01) [G06F 3/0611 (2013.01); G06F 3/0619 (2013.01); G06F 3/0625 (2013.01); G06F 3/0673 (2013.01); G06F 11/1076 (2013.01)] | 21 Claims |
1. A method for updating stored information, comprising:
performing, based on data information and error correction code (ECC) check information, ECC decoding on the data information to generate an error-corrected codeword, wherein the error-corrected codeword comprises error-corrected data information and error-corrected ECC check information;
generating candidate to-be-written data information based on the error-corrected data information and a data update indication;
updating the data information to generate updated data information;
performing ECC encoding on the updated data information to generate updated ECC check information;
generating candidate to-be-written ECC check information based on the error-corrected ECC check information and the updated ECC check information;
performing a mask operation on the candidate to-be-written data information based on the data information;
writing first unmasked content in the candidate to-be-written data information into a memory;
performing a second mask operation on the candidate to-be-written ECC check information based on the ECC check information; and
writing second unmasked content in the candidate to-be-written ECC check information into the memory.
|