Patent ID: 11914895
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
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.