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

Claim 15:
16. A system chip, comprising:
a controller; and
a core processor configured to exchange data with a memory via the controller, wherein the controller is configured to:
perform, 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;
generate candidate to-be-written data information based on the error-corrected data information and a data update indication;
update the data information to generate updated data information;
perform ECC encoding on the updated data information to generate updated ECC check information;
generate candidate to-be-written ECC check information based on the error-corrected ECC check information and the updated ECC check information;
perform a mask operation on the candidate to-be-written data information based on the data information;
write unmasked content in the candidate to-be-written data information into the memory;
perform a second mask operation on the candidate to-be-written ECC check information based on the ECC check information; and
write second unmasked content in the candidate to-be-written ECC check information into the memory.