CPC G11C 29/42 (2013.01) [G06F 11/1451 (2013.01); G06F 11/1469 (2013.01); G11C 29/30 (2013.01); G11C 29/44 (2013.01); G11C 29/702 (2013.01); G11C 29/785 (2013.01); G11C 2029/1802 (2013.01)] | 10 Claims |
1. A method for operating a memory system, comprising:
determining, by the memory, whether to perform an error correction operation;
generating, by the memory, an internal address in response to the determination of performing the error correction operation;
reading, by the memory, data and an error correction code corresponding to the data from memory cells that are selected based on the internal address;
performing, by the memory, an error correction operation on the data based on the error correction code;
writing, by the memory, error-corrected data and an error correction code corresponding to the error corrected data into the memory cells that are selected based on the internal address;
determining, by the memory, one or more regions among regions as a repair-requiring region based on an error which is detected when the memory performs the error correction operation;
transferring, by the memory, first data read from the repair-requiring region to a memory controller;
applying, by the memory controller, a first command to the memory;
repairing, by the memory, the repair-requiring region with a redundant region of the memory in response to the first command;
transferring, by the memory controller, the first data to the memory such that the first data is written into the redundant region;
applying, by the memory controller, a second command to the memory;
canceling, by the memory, a previous repair operation right before a current repair operation in response to the second command;
transferring, by the memory, second data that are read from the repair-requiring region to the memory controller;
applying, by the memory controller, a third command to the memory;
repairing, by the memory, the repair-requiring region with a redundant region of the memory in response to the third command; and
transferring, by the memory controller, the second data to the memory such that the second data is written into the redundant region.
|