Patent ID: 11914479
Assignee: CHANGXIN MEMORY TECHNOLOGIES, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | 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; and
storing the address information pointed to by the read command into a preset memory space if an error occurs in the data to be read out, and backing up the address information stored in the preset memory space into a non-volatile memory cell according to a preset rule;
loading the address information backed up in the non-volatile memory cell into the preset memory space after the memory device is enabled;
applying a write command to the memory device, and comparing address information pointed to by the write command with the address information stored in the preset memory space;
performing a write operation on a memory cell corresponding to the address information pointed to by the write command if the address information pointed to by the write command is different from the address information stored in the preset memory space; and
stopping performing the write operation on the memory cell corresponding to the address information pointed to by the write command if the address information pointed to by the write command is identical to the address information stored in the preset memory space.