Patent ID: 11869615
Assignee: CHANGXIN MEMORY TECHNOLOGIES, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 0:
1. A method for reading and writing, comprising:
applying a read command to a memory device, the read command pointing to address information;
reading data to be read out from a memory cell corresponding to the address information pointed to by the read command;
associating the address information pointed to by the read command with a spare memory cell if an error occurs in the data to be read out;
generating an identification code configured for identifying the spare memory cell, wherein the address information pointed to by the read command is associated with the spare memory cell through the identification code; and
marking the address information pointed to by the read command as invalid if the error occurs in the data to be read out;
wherein address information not marked as invalid is initially set as valid;
wherein the reading data to be read out from a memory cell corresponding to the address information pointed to by the read command further comprises:
reading, from the memory cell corresponding to the address information pointed to by the read command, a first error correction code (ECC) corresponding to the data to be read out; and
wherein a method for determining whether an error occurs in the data to be read out comprises: decoding the first ECC to determine whether the error occurs in the data to be read out.