Storage device for setting operation parameters for random access memory upon power-on and operation
A storage device may execute, upon power-on, a training operation on a pattern data chunk a number of times, and update one or more operation parameters of the random access memory when the number of maximum error bits generated during the training operation is equal to or greater than a set threshold number of bits.
1 . A storage device comprising:
a random access memory;
a non-volatile memory including a plurality of memory blocks and configured to store a pattern data chunk to be written to the random access memory upon power-on; and
a controller configured to:
execute training operations of writing the pattern data chunk to the random access memory and then reading the pattern data chunk back from the random access memory, M times, upon power-on, where M is a natural number, and
update one or more operation parameters for the random access memory when a number of maximum error bits generated during the training operations of M times is greater than or equal to a threshold number of bits,
wherein the controller is configured to:
execute, for each of N candidate data chunks, the training operations M times by reading each candidate data chunk back after writing each candidate data chunk to the random access memory, and
set, as the pattern data chunk, a candidate data chunk having a greatest number of maximum error bits generated during the training operations of M times, among the N candidate data chunks, where N is a natural number of 2 or more.
2 . The storage device of claim 1 ,
wherein the pattern data chunk is stored in a dedicated memory block allocated to store the pattern data chunk, among the plurality of memory blocks, or
wherein the pattern data chunk is stored in a memory block for storing meta data, among the plurality of memory blocks.
3 . The storage device of claim 1 , wherein the controller is configured to randomly create the N candidate data chunks according to a seed determined by a reference time.
4 . The storage device of claim 1 , wherein the one or more operation parameters include at least one of a chip select signal, a command/address signal, a command/address reference voltage signal, a data channel signal, a write leveling, and a read data eye.
5 . The storage device of claim 4 ,
wherein each of the one or more operation parameters has a value within a preset interval, and
wherein the controller is further configured to increase the value of each of the one or more operation parameters within the preset interval when updating the one or more operation parameters.
6 . The storage device of claim 1 , wherein the controller is further configured to re-execute, after updating the one or more operation parameters, a training operation by reading the pattern data chunk from the random access memory back after writing the pattern data chunk to the random access memory.
7 . The storage device of claim 1 , wherein the N candidate data chunks comprise different data patterns.
8 . The storage device of claim 1 , wherein the controller, for the N candidate data chunks, randomly creates the N candidate data chunks.
9 . The storage device of claim 8 , wherein the randomly created N candidate data chunks use, as a seed for randomization, a set reference time.
10 . An operating method of a storage device including a controller, a non-volatile memory, and a random access memory, the operating method comprising:
reading, by the controller, a pattern data chunk from the non-volatile memory upon power-on;
executing, by the controller, a training operations of writing the pattern data chunk to the random access memory and then reading the pattern data chunk back from the random access memory, M times, where M is a natural number;
calculating, by the controller, a number of maximum error bits generated during the training operations of M times; and
updating, by the controller, one or more operation parameters for the random access memory when the number of maximum error bits is greater than or equal to a threshold number of bits,
wherein among N candidate data chunks, a candidate data chunk having a largest number of maximum error bits generated during the training operations of M times is set as the pattern data chunk, where N is a natural number of 2 or more.
11 . The operating method of claim 10 , wherein the N candidate data chunks are randomly created according to a seed determined by a reference time.
12 . The operating method of claim 10 , wherein the one or more operation parameters include at least one of a chip select signal, a command/address signal, a command/address reference voltage signal, a data channel signal, a write leveling, and a read data eye.
13 . The operating method of claim 10 , further comprising re-executing, after updating the one or more operation parameters, a training operation by reading the pattern data chunk from the random access memory back after writing the pattern data chunk to the random access memory.