| CPC G06F 11/1068 (2013.01) [G06F 11/076 (2013.01); G06F 11/0772 (2013.01)] | 13 Claims |

|
1. An operating method of a memory, the operating method comprising:
reading, from selected memory cells included in the memory, codewords including data and an error correction code;
detecting errors in the codewords;
correcting the errors in the codewords;
re-writing the error-corrected codewords to the selected memory cells;
re-reading the re-written error-corrected codewords from the selected memory cells;
determining whether the errors are permanent errors in response to a determination that an error is present in the re-read error-corrected codewords;
classifying a row where a greatest number of errors are detected among rows of the memory as a first candidate of a bad region, while preferentially classifying a row including the permanent errors among rows having a same greatest number of errors as the first candidate of the bad region as a second candidate of the bad region; and
classifying the second candidate of the bad region as the bad region when the same greatest number of errors of the second candidate of the bad region is greater than or equal to a threshold value.
|