主权项 |
1. An operating method for a storage device including a nonvolatile memory, a memory and a memory controller that controls the nonvolatile memory and memory, the method comprising:
receiving in the memory controller a first read command and a corresponding first address from a host; in response to the first read command and by operation of the memory controller,
reading first data from the nonvolatile memory in response to the first address, providing the first data to the host, anticipating a first prefetch address in response to the first address, reading first prefetch data from the nonvolatile memory in response to the first prefetch address, and storing the first prefetch data in the memory; receiving in the memory controller a second read command and a corresponding second address from the host following receipt of the first read command and the first address; determining on the basis of the first prefetch address and the second address whether the first prefetch data corresponds with second data stored in the nonvolatile memory as identified by the second address; and upon determining that the first prefetch data completely corresponds with the second data, providing the first prefetched data from the memory to the host, upon determining that the first prefetch data does not correspond with the second data, reading the second data from the nonvolatile memory, temporarily storing the second data in the memory and then providing the second data to the host, and marking the first prefetch data stored in the memory as trash data. |