Patent ID: 7966518

Claim:
A method for writing data in a repair area of a memory device, the method comprising: storing, in a temporary storage area of a memory device: (i) first data to be stored in row N in a memory array of the memory device, (ii) second data, if any, stored in row N−1 in the memory array, and (iii) third data, if any, stored in row N+1 in the memory array; writing the first data in row N in the memory array; and in response to an error in writing the first data in row N in the memory array: writing the first data, the second data, if any, and the third data, if any, in respective rows in a repair area in the memory device; and adding addresses of rows N−1, N, and N+1 to a table stored in the memory device, wherein the table indicates which rows in the repair area should be used instead of rows N−1, N, and N+1; wherein the first data, the second data, if any, and the third data, if any, are written in respective rows in the repair area such that there are intervening blank rows between the respective rows.