Patent ID: 8151150

Claim:
A method for writing test data to a memory, wherein the memory comprises a data register, the method comprising: writing test data to a memory space of the memory; sending a read-back command and a read-back address of the memory space to the memory to direct the memory to read the test data from the memory space to the data register; sending a copy-back command and a copy-back address in a test range of the memory to the memory to direct the memory to write the test data stored in the data register to the copy-back address; and when the test range of the memory has not been filled with the test data, repeating the step of sending the read-back command and the read-back address, and repeating the step of sending the copy-back command and the copy-back address after the copy-back address is set to a new copy-back address selected from the test range; wherein sending of the read-back command and the read-back address comprises: sending a first-portion read-back command with a value of 00H to the memory; sending the read-back address to the memory; and sending a second-portion read-back command with a value of 35H to the memory.