CPC G06F 11/1068 (2013.01) [G06F 11/0787 (2013.01); G06F 11/0793 (2013.01)] | 20 Claims |
1. An error correction method, wherein the error correction method comprises:
detecting that an uncorrected error (UCE) exists in a memory;
obtaining a memory address in which the UCE occurs;
storing preset first data in a location indicated by the memory address;
reading second data from the location;
comparing the preset first data with the second data to determine a first failure location in the location;
in response to determining that the first failure location comprises zero bits, flipping the preset first data;
storing flipped first data in the location indicated by the memory address;
reading third data from the location;
comparing the flipped first data with the third data to determine a second failure location in the location;
flipping target data in raw data stored in the second failure location to convert the UCE to corrected error (CE); and
performing error correction on flipped target data.
|