Storage system, storage chip, and error check and scrub method
By introducing the ECS end and start flag signal interaction mechanism in DRAM, combined with the dynamic regulation of the memory controller, the problem of insufficient flexibility in ECS operation in DRAM is solved, efficient error checking and clearing is achieved, and the stability of the storage system is improved. and data integrity.
Patent Information
- Application Number
- PCT/CN2023/131596
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2023-11-14
- Publication Date
- 2024-09-26
AI Technical Summary
The existing technology lacks flexibility when performing error checking and clearing (ECS) operations in dynamic random access memory (DRAM) and cannot regulate the ECS operation process in real time based on actual inspection results, resulting in low efficiency in performing ECS-related functions in DRAM. .
By introducing the interactive mechanism of ECS end flag signal and start flag signal in the storage system and memory chip, the memory controller adjusts the ECS operation cycle after receiving the check result information, and skips or repairs the error line when necessary, realizing the control of the ECS operation. Dynamic control.
It improves the flexibility and efficiency of ECS operations, ensuring complete error checking and clearing within 24 hours, protecting data accuracy and improving the stability of the storage system.
Smart Images

Figure CN2023131596_26092024_PF_FP
Abstract
Description
Storage system, storage chip, and error checking and clearing method
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to the Chinese patent application filed with the China Patent Office on March 17, 2023, with application number 202310277268.9 and application name “A storage system, storage chip, and error checking and clearing method,” the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0003] The present disclosure relates to, but is not limited to, a storage system, a storage chip, and an error checking and clearing method. Background Art
[0004] With the continuous advancement of semiconductor technology, errors may occur in memory due to factors such as faster memory transmission speeds, smaller memory cells, and row hammering. This necessitates error checking and timely correction of detected errors. For example, dynamic random access memory (DRAM) requires a complete error check and scrub (ECS) at least every 24 hours. However, how to better implement ECS operations in DRAM and control the related processes of ECS operations remains a challenge.
[0005] Summary of the Invention
[0006] The present disclosure provides a storage system, a storage chip, and an error checking and clearing method.
[0007] The technical solution of the present disclosure is achieved as follows:
[0008] In a first aspect, an embodiment of the present disclosure provides a storage system, comprising a storage chip and a memory controller, wherein:
[0009] The memory chip includes a memory array and is configured to perform error checking and clearing ECS operations on the memory array; and after completing a current round of ECS operations, generate an ECS end flag signal and send the ECS end flag signal to the memory controller; the memory controller is connected to the memory chip and is configured to receive the ECS end flag signal, generate an ECS start flag signal based on the ECS end flag signal, and send the ECS start flag signal to the memory chip, so that the memory chip enters a new round of ECS operation cycle based on the ECS start flag signal.
[0010] In some embodiments, the memory chip is specifically configured to generate multiple ECS command signals within the ECS operation cycle, and perform sequential error checking and clearing ECS operations on the memory cells corresponding to each storage address based on the ECS command signals; after performing error checking and clearing ECS operations on the memory cells corresponding to all storage addresses, this round of ECS operations is completed and check result information is generated; the memory controller is further configured to receive the check result information, and perform a disposal operation on the memory chip based on the check result information; wherein, the check result information includes the maximum number of row errors, the row address with the maximum number of errors, and the error cumulative value / error row cumulative value.
[0011] In some embodiments, the memory chip includes an ECS circuit and a first register module, and the ECS circuit includes a command generation module and a counting module; wherein the command generation module is configured to intermittently utilize a refresh command to generate an ECS command signal during the ECS operation cycle; wherein the utilized refresh command disappears; the counting module is connected to the command generation module and configured to count the ECS command signal to generate an address count value, and one address count value indicates the address of one storage row; when the address count value reaches a first preset value, the ECS end flag signal is generated and the ECS end flag signal is sent to the first register module; the first register module is connected to the counting module and configured to store the ECS end flag signal and send the ECS end flag signal to the memory controller in response to a mode register read command received from the memory controller.
[0012] In some embodiments, the storage chip also includes a recording module; the recording module is connected to the counting module and configured to store error information; when the ECS end flag signal is received, the inspection result information is generated based on the error information, and the inspection result information is sent to the first register module; wherein, during the ECS operation cycle, the error information is updated according to the address count value corresponding to each ECS operation and the inspection result of the storage unit corresponding to the address count value; the first register module is connected to the recording module and is also configured to store the inspection result information and send the inspection result information to the memory controller.
[0013] In some embodiments, the memory chip further includes a second register module and a startup module; wherein the second register module is configured to store ECS configuration parameters; the startup module is connected to the memory controller and the second register module, and is configured to parse the ECS configuration parameters and generate an ECS startup signal when receiving the ECS start flag signal sent by the memory controller; the ECS circuit is connected to the startup module, and is configured to receive the ECS startup signal, and based on the ECS startup signal, control the memory chip to enter a new ECS operation cycle.
[0014] In some embodiments, the memory controller is further configured to generate and send an interval adjustment signal based on the inspection result information; the memory chip is further configured to receive the interval adjustment signal and adjust the time interval between two consecutive ECS command signals based on the interval adjustment signal.
[0015] In some embodiments, the command generation module includes a first command generation module and a second command generation module; wherein, the first command generation module is connected to the startup module, configured to receive the refresh command, and intermittently use the next refresh command to generate an ECS command signal; the second command generation module is connected to the first command generation module, configured to receive the ECS command signal, and generate an internal command signal based on the ECS command signal; the counting module is specifically configured to add one to the address count value each time an internal command signal is received.
[0016] In some embodiments, the first command generation module is specifically configured to receive a preset clock signal and the refresh command, and when the preset clock signal passes a first number of clock cycles, use the next refresh command to generate an ECS command signal; wherein the clock cycle length of the preset clock signal is controlled by the interval adjustment signal, and / or the first number is controlled by the interval adjustment signal.
[0017] In some embodiments, the first command generation module is specifically configured to receive the refresh command, and use the next refresh command to generate the ECS command signal every time a second number of refresh commands are separated; wherein the second number is controlled by the interval adjustment signal.
[0018] In some embodiments, the counting module includes a column counting module, a row counting module and a block counting module, and the address counting value includes a column counting value, a row counting value and a block counting value; wherein, the column counting module is connected to the second command generating module, configured to receive the internal command signal, and count the internal command signal to generate the column counting value; each time an internal command signal is received, the column counting value is increased by one; when the column counting value reaches a second preset value, a row counting signal is output, and the column counting value is cleared; the row counting module is connected to the column counting module, configured to receive the row counting signal, and count the row counting signal to generate the row count value; each time a row count signal is received, the row count value is incremented by one; when the row count value reaches a third preset value, a block count signal is output, and the row count value is cleared; the block count module is connected to the row count module, and is configured to receive the block count signal, count the block count signal to generate the block count value; each time a block count signal is received, the block count value is incremented by one; when the block count value reaches a fourth preset value, an ECS end mark signal is output; wherein the first preset value is composed of the second preset value, the third preset value, and the fourth preset value.
[0019] In some embodiments, the counting module is further configured to clear the address count value after the memory chip receives the ECS start flag signal.
[0020] In some embodiments, the memory controller is further configured to send first handling information to the memory chip upon receiving the inspection result information; wherein the first handling information indicates to skip the storage row corresponding to the maximum error number row address when writing to the storage array.
[0021] In some embodiments, the memory controller is further configured to send second handling information to the memory chip upon receiving the inspection result information; wherein the second handling information indicates to perform redundancy repair processing on the memory row corresponding to the row address with the maximum error number.
[0022] In a second aspect, an embodiment of the present disclosure provides a memory chip, comprising a memory array and a control circuit, wherein the memory array is connected to the control circuit; the control circuit is configured to perform error checking and clearing ECS operations on the memory array; and, after completing the current ECS operation cycle, generate an ECS end flag signal and send the ECS end flag signal to the outside; and, receive an ECS start flag signal from the outside and enter a new ECS operation cycle based on the ECS start flag signal.
[0023] In some embodiments, the control circuit is specifically configured to generate multiple ECS command signals within the ECS operation cycle, and perform an error check and clear ECS operation on the storage unit corresponding to each storage address based on the ECS command signal; after the error check and clear ECS operation are performed on the storage units corresponding to all storage addresses, this round of ECS operation is completed, and check result information is generated and sent; wherein, the check result information includes the maximum number of row errors, the row address with the maximum number of errors, and the error cumulative value / error row cumulative value.
[0024] In some embodiments, the control circuit includes an ECS circuit, a recording module, a first register module, a second register module and a startup module, and the ECS circuit includes a command generation module and a counting module; wherein the command generation module is configured to intermittently use a refresh command to generate an ECS command signal within the ECS operation cycle; wherein the refresh command used is no longer used to perform a refresh operation; the counting module is connected to the command generation module and configured to count the ECS command signal to generate an address count value, and 1 address count value indicates 1 storage address; when the address count value reaches a first preset value, the ECS end flag signal is generated and the ECS end flag signal is sent to the recording module and the first register module; the recording module is connected to the counting module and configured to store error information; upon receiving the ECS end flag signal, the inspection result information is generated based on the error information, and The inspection result information is sent to the first register module; wherein, within the ECS operation cycle, the error information is updated according to the address count value corresponding to each ECS operation and the inspection result of the storage unit corresponding to the address count value; the first register module is connected to the counting module and the recording module, and is configured to store the ECS end flag signal and the inspection result information, and send the ECS end flag signal and the inspection result information to the outside in response to a mode register read command received from the outside; the second register module is configured to store ECS configuration parameters; the startup module is connected to the second register module, and is configured to parse the ECS configuration parameters and form an ECS startup signal when receiving the ECS start flag signal sent from the outside; the ECS circuit is connected to the startup module, and is configured to receive the ECS startup signal, and based on the ECS startup signal, control the storage chip to enter a new ECS operation cycle.
[0025] In some embodiments, the command generation module includes a first command generation module and a second command generation module; wherein,
[0026] The first command generation module is connected to the startup module and is configured to receive the refresh command and intermittently generate an ECS command signal using the next refresh command; the second command generation module is connected to the first command generation module and is configured to receive the ECS command signal and generate an internal command signal based on the ECS command signal; the counting module is specifically configured to increase the address count value by one each time an internal command signal is received.
[0027] In some embodiments, the control circuit is further configured to receive an interval adjustment signal, and adjust the time interval between two consecutive ECS command signals based on the interval adjustment signal.
[0028] In some embodiments, the first command generation module is specifically configured to receive a preset clock signal and the refresh command, and when the preset clock signal passes a first number of clock cycles, use the next refresh command to generate an ECS command signal; wherein the clock cycle length of the preset clock signal is controlled by the interval adjustment signal, and / or the first number is controlled by the interval adjustment signal; or, the first command generation module is further configured to receive the refresh command, and every time there is a second number of refresh commands, use the next refresh command to generate an ECS command signal; wherein the second number is controlled by the interval adjustment signal.
[0029] In some embodiments, the counting module includes a column counting module, a row counting module and a block counting module, and the address counting value includes a column counting value, a row counting value and a block counting value; wherein, the column counting module is connected to the second command generating module, configured to receive the internal command signal, and count the internal command signal to generate the column counting value; each time one of the internal command signals is received, the column counting value is increased by one; when the column counting value reaches a second preset value, a row counting signal is output, and the column counting value is cleared; the row counting module is connected to the column counting module, configured to receive the row counting signal, and count the row counting signal to generate the row counting value; each time one of the row counting signals is received, the column counting value is increased by one; , adding one to the row count value; when the row count value reaches a third preset value, outputting a block count signal and clearing the row count value; the block count module, connected to the row count module, is configured to receive the block count signal and count the block count signal to generate the block count value; each time a block count signal is received, adding one to the block count value; when the block count value reaches a fourth preset value, outputting an ECS end flag signal; the counting module is further configured to clear the address count value after the memory chip receives the ECS start flag signal; wherein, the first preset value is composed of the second preset value, the third preset value and the fourth preset value.
[0030] In some embodiments, the memory chip is further configured to receive first disposal information or second disposal information from an external source;
[0031] The first handling information indicates that the storage row corresponding to the row address with the maximum error number is skipped when writing to the storage array; the second handling information indicates that a redundancy repair process is performed on the storage row corresponding to the row address with the maximum error number.
[0032] In a third aspect, an embodiment of the present disclosure provides an error checking and clearing method, which is applied to a storage system including a memory controller and a storage chip. The method includes:
[0033] After the memory chip completes this round of error checking and clearing ECS operation cycle, it generates an ECS end flag signal and sends the ECS end flag signal to the memory controller; the memory controller generates an ECS start flag signal based on the ECS end flag signal and sends the ECS start flag signal to the memory chip, so that the memory chip enters a new round of ECS operation cycle.
[0034] In some embodiments, during the ECS operation cycle, the memory chip performs an error check and clear ECS operation on the memory cell corresponding to each memory address; after performing the error check and clear ECS operation on the memory cells corresponding to all memory addresses, check result information is generated, and the ECS operation is completed; the memory controller receives the check result information sent by the memory chip, and sends first disposal information or second disposal information to the memory chip based on the check result information; wherein, the check result information includes the maximum number of row errors, the maximum error row address, and the error accumulation value / error row accumulation value, the first disposal information indicates that the storage row corresponding to the maximum error row address is skipped when writing data, and the second disposal information indicates that the storage row corresponding to the maximum error row address is subjected to redundant repair processing.
[0035] In some embodiments, the method further includes: the memory controller generating an interval adjustment signal, and sending the interval adjustment signal to the memory chip to adjust the time interval between two consecutive error checking and clearing ECS operations performed by the memory chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] FIG1 is a schematic structural diagram of a storage system provided by an embodiment of the present disclosure;
[0037] FIG2 is a schematic diagram of a partial structure of a storage system provided by an embodiment of the present disclosure;
[0038] FIG3 is a second schematic diagram of a partial structure of a storage system provided by an embodiment of the present disclosure;
[0039] FIG4 is a third schematic diagram of a partial structure of a storage system provided by an embodiment of the present disclosure;
[0040] FIG5 is a fourth schematic diagram of a partial structure of a storage system provided by an embodiment of the present disclosure;
[0041] FIG6 is a schematic diagram of the structure of another storage system provided by an embodiment of the present disclosure;
[0042] FIG7 is a fifth schematic diagram of a partial structure of a storage system provided by an embodiment of the present disclosure;
[0043] FIG8 is a schematic structural diagram of a memory chip provided by an embodiment of the present disclosure;
[0044] FIG9 is a schematic structural diagram of a control circuit provided in an embodiment of the present disclosure;
[0045] FIG10 is a schematic structural diagram of another memory chip provided by an embodiment of the present disclosure;
[0046] FIG11 is a flow chart of an error checking and clearing method provided in an embodiment of the present disclosure;
[0047] FIG12 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0048] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It should be understood that the specific embodiments described herein are only used to explain the relevant applications and are not intended to limit the relevant applications. It should also be noted that for ease of description, only the portions relevant to the relevant applications are shown in the drawings.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art in the art of the present disclosure. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0050] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0051] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present disclosure are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present disclosure described here can be implemented in an order other than that illustrated or described here.
[0052] Before further explaining the embodiments of the present disclosure in detail, the nouns and terms involved in the embodiments of the present disclosure are explained first. The nouns and terms involved in the embodiments of the present disclosure are subject to the following interpretations:
[0053] Dynamic Random Access Memory (DRAM);
[0054] Synchronous Dynamic Random Access Memory (SDRAM);
[0055] Double Data Rate (DDR);
[0056] Low Power DDR (LPDDR);
[0057] 5th generation DDR (DDR5);
[0058] Error Check and Scrub (ECS);
[0059] Error per Row Counter (EpRC).
[0060] Taking DDR5 DRAM design as an example, to perform complete error checking and clearing within 24 hours, the DRAM needs to generate the necessary ECS commands at regular intervals while accessing all memory cells in the DRAM, specifically the rows and columns in all banks (BAs) within all bank groups (BGs). To effectively execute ECS operations, each column, row, BA, and BG detected by the ECS must be counted. Once all ECS operations are completed within 24 hours, all addresses are counted. Currently, the start and end of a complete ECS operation are controlled internally within the DRAM. This results in a fixed ECS operation cycle, making it impossible to adjust the ECS operation process and other handling strategies in real time based on the actual ECS check results when executing ECS-related functions in DRAM, resulting in a lack of flexibility. Therefore, how to better execute ECS operations in DRAM and control the related processes of ECS operations is a problem that needs to be solved.
[0061] Based on this, the embodiments of the present disclosure provide a storage system, a storage chip, and an error checking and clearing method. The storage system realizes that after completing the ECS operation within 24 hours, the ECS completion information and the detected error information are transmitted to the memory controller (Controller) through the mode register (Mode Register, MR). Upon receiving the ECS completion information and error information, the memory controller resets the address counter and continues a new round of ECS operations. At the same time, when the memory controller receives erroneous address information, it can skip the address when reading and writing the storage array, or use redundancy to repair it. This design can control the start time of the ECS operation cycle through the memory controller; at the same time, the execution cycle of the ECS can be adjusted according to the ECS inspection result information.
[0062] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0063] In one embodiment of the present disclosure, referring to FIG1 , a structure of a storage system 10 provided by the present disclosure is shown. The storage system 10 includes a storage chip 20 and a memory controller 30 , wherein:
[0064] The memory chip 20 includes a memory array 21 and is configured to perform error checking and clearing ECS operations on the memory array 21; and after completing the current ECS operation cycle, generate an ECS finish flag signal (ECS Finish Flag) and send the ECS finish flag signal (ECS Finish Flag) to the memory controller 30;
[0065] The memory controller 30 is connected to the memory chip 20 and is configured to receive an ECS finish flag signal (ECS Finish Flag), generate an ECS start flag signal (ECS Start Flag) based on the ECS finish flag signal (ECS Finish Flag), and send the ECS start flag signal (ECS Start Flag) to the memory chip 20, so that the memory chip 20 enters a new round of ECS operation cycle based on the ECS start flag signal.
[0066] It should be noted that the embodiments of the present disclosure relate to the overall framework design of the ECS circuit in integrated circuit design, and in particular to DRAM DDR5 chips, which require complete error checking and clearing of the DRAM at least once every 24 hours. The overall framework of the ECS circuit is used to generate ECS command signals and some internal command signals. During DRAM read / write, refresh, and other operations, error checking and clearing ECS operations are performed on all storage cells in sequence. This circuit can be applied to related circuits that perform ECS functions in DRAM DDR5 chips, but is not limited to this scope. Other memory chips, as well as other internal command signals, timing control, and counting circuits, can adopt this design.
[0067] It should be noted that the memory system 10 of the present embodiment is based on receiving the ECS end flag signal sent by the mode register through the memory controller 30 after completing the ECS operation on the memory cells corresponding to all DRAM address counts, and sending the ECS start flag signal generated by the memory controller 30 to the memory chip 20. It can be applied to, but is not limited to, memories such as DRAM, SDRAM, and DDR. In addition, the memory system provided by this design can be used in other analog circuits and digital circuits to complete the reception and transmission of other operation signals.
[0068] In some embodiments, the memory chip 20 is specifically configured to generate multiple ECS command signals during an ECS operation cycle, and perform an error check and clear ECS operation on a memory cell corresponding to each memory address based on the ECS command signals; after the error check and clear ECS operations are performed on the memory cells corresponding to all memory addresses, this round of ECS operation is completed, and error information (Error Information) is generated.
[0069] The memory controller 30 is further configured to receive the inspection result information and perform a processing operation on the memory chip 20 based on the inspection result information;
[0070] The check result information includes the maximum number of row errors, the address of the row with the maximum number of errors, and the cumulative error value / the cumulative error row value.
[0071] It should be noted that the inspection result information is the number of error code words and error address information that occur during the ECS operation. The maximum number of row errors and the row address of the maximum error number in the inspection result information can be recorded through the error counter (EpRC) per row, and the error cumulative value / error row cumulative value can be recorded in real time through the error counter (EC).
[0072] It should be noted that the error counter (EC) has two working modes, namely codeword counting mode and row counting mode, and the two working modes can be selected and switched according to the test mode. Specifically, if the test mode is the first state, the codeword counting mode is executed to count the error codewords of the storage array 21; if the test mode is the second state, the row counting mode is executed to count the rows in the storage array 21 that have at least one error codeword. The first state here can be a high level of logic 1, and the second state can be a low level of logic 0; or, the first state can be a low level of logic 0, and the second state can be a high level of logic 1, and the embodiment of the present disclosure does not impose any limitation. In actual applications, it can be set according to needs, which increases the flexibility of counting.
[0073] It should also be noted that the processing operation of the memory controller 30 can be to perform redundant repair processing on the inspection result information, or to skip the address when performing the next read and write operation on the storage array 21, thereby protecting the accuracy of the data and improving the inspection efficiency of the ECS.
[0074] In some embodiments, referring to FIG. 2 , the memory chip 20 includes an ECS circuit 22 and a first register module 23 , and the ECS circuit 22 includes a command generating module 201 and a counting module 202 ; wherein,
[0075] The command generation module 201 is configured to intermittently utilize one refresh command to generate one ECS command signal (ECS_CMD) during an ECS operation cycle; wherein the utilized refresh command is no longer used to perform a refresh operation;
[0076] The counting module 202 is connected to the command generating module 201 and is configured to count the ECS command signal (ECS_CMD) to generate an address count value, where one address count value indicates the address of one storage row; when the address count value reaches a first preset value, generate an ECS finish flag signal (ECS Finish Flag) and send the ECS finish flag signal (ECS Finish Flag) to the first register module 23;
[0077] The first register module (Mode Register) 23 is connected to the counting module 202 and is configured to store an ECS finish flag signal (ECS Finish Flag) and send the ECS finish flag signal (ECS Finish Flag) to the memory controller 30 in response to a mode register read command (MR Read) received from the memory controller.
[0078] It should be noted that, as shown in FIG2 , ECS circuit 22 is used to generate an ECS command signal (ECS_CMD). Each time an ECS command signal (ECS_CMD) is generated, the DRAM performs an ECS operation. An ECS operation is performed on multiple memory cells corresponding to a single memory address in memory array 21. The ECS operation is used to determine whether codeword errors exist in the multiple memory cells being tested and to perform error correction if a codeword error is detected.
[0079] It should also be noted that in the disclosed embodiment, the command generation module 201 can steal the refresh command received at the next moment and generate an ECS command signal (ECS_CMD) based on the refresh command. At the same time, the corresponding stolen refresh command disappears to execute the ECS operation. This prevents the refresh operation from being executed during the ECS operation, reducing memory power consumption during the ECS operation and preventing memory failures caused by the simultaneous execution of a refresh operation during the ECS operation.
[0080] While the ECS circuit 22 performs ECS operations on the storage array 201 according to the internal command signal, the counting module 202 also counts addresses according to the internal command signal to generate an ECS finish flag signal (ECS Finish Flag). Here, the counting module 202 uses PRE as a clock signal for counting. Specifically, the counting module 202 first traverses the column address (one row corresponds to multiple column addresses), then traverses the row address, and finally traverses the storage group address and storage block address. In other words, the counting module 202 can count the columns, rows, storage blocks, and storage groups of the storage array 21 respectively, and generate an ECS finish flag signal (ECS Finish Flag) when the counting is completed (the address count value reaches the first preset value). It should be understood that each address count value includes four addresses: storage group address, storage block address, row address, and column address.
[0081] In some embodiments, as shown in FIG3 , the memory chip 20 further includes a recording module (ECC Error Record) 24 ;
[0082] The recording module 24 is connected to the counting module 202 and is configured to store error information; upon receiving the ECS finish flag signal (ECS Finish Flag), generate check result information (Error Information) based on the error information, and send the check result information (Error Information) to the first register module 23; wherein, during the ECS operation cycle, the error information is updated according to the address count value corresponding to each ECS operation and the check result of the storage unit corresponding to the address count value;
[0083] The first register module 23 is connected to the recording module 24 , and is further configured to store the error information and send the error information to the memory controller 30 .
[0084] It should be noted that when counting is completed, the counting module 202 generates an ECS finish flag signal (ECS Finish Flag) and sends it to the recording module 24. In addition, the counting module 202 also sends address information such as column address information, row address information, storage block information, and storage group information to the recording module 24 so that the recording module 24 can save the required address information.
[0085] It should be noted that, as shown in FIG3 , the recording module 24 includes an error counter (EpRC) 241 for each row and an error counter (EC) 242. Each time an ECS operation is performed, the memory chip 20 records the error information (i.e., check result information) detected by each round of ECS operation using the error counter (EpRC) 241 and the error counter (EC) 242 and sends the record to the memory controller 30. The memory controller 30 then performs corresponding processing operations based on the received check result information (Error Information).
[0086] For each row error counter (EpRC) 241, each row error counter (EpRC) 241 can count the codeword errors of each row in the storage array 21 and save the codeword error number of the row with the largest number of codeword errors and the address information of the row. Specifically, for example, the error codeword count is performed on the i-th row in the storage array 21. Assuming that the storage array 21 includes a total of M rows, M is an integer greater than 0, then i is an integer greater than 0 and less than or equal to M. When the row count end signal is received, it means that the storage bits of the i-th row have completed the ECS operation. At this time, the error information counting of the i-th row can be ended. The obtained count value is the error information number of the i-th row (i.e., the number of error codewords), and the obtained row error maximum value and the address of the row with the most errors are saved according to the row error count threshold (Row Error Threshold Count, RETC). During this process, the error counter (EC) 242 is always in operation to save the error accumulation value / error row accumulation value in the storage chip 20.
[0087] It should also be noted that starting from counting errors for row 1, if there is at least one error message in row 1, the count value corresponding to row 1 is saved as the target count value in the recording module 24; then the error counting for row 2 is continued, and the obtained count value is compared with the target count value already saved in the recording module 24. If the count value corresponding to row 2 is greater than the target count value, the target count value saved in the recording module 24 is cleared, and the count value corresponding to row 2 is saved as the new target count value in the recording module 24... This is performed in sequence. Since each time a larger count value appears, the target count value in the recording module 24 is replaced. In this way, when the ECS Finish Flag signal is received, the target count value saved in the recording module 24 is the count value of the row with the largest number of error messages, and the recording module 24 then sends the stored inspection result information to the memory controller 30 via the first register module 23.
[0088] It is understood that if no error information appears in rows 1 through i-1, and an error information does not appear until row i, then there is no target count value for comparison in row i, and the count value corresponding to row i is directly stored in first register module 23 as the target count value. Alternatively, recording module 24 counts the error information in row 1 based on the stored error information and the ECS Finish Flag. After determining the count value for row 1, it stores the count value for row 1 as the target count value in recording module 24. After counting row 1, the target rows are counted again in the aforementioned manner. At this point, the target rows represent rows other than row 1. In this case, even if the count value for row 1 is 0, it can be stored in recording module 24 first. For row 2, the corresponding count value is compared with 0 until the final target count value is determined.
[0089] It should also be noted that during the ECS operation cycle, if the number of error codewords in the error row stored by the recording module 24 reaches a preset threshold, then the recording module 24 can send the row address information where the number of error codewords reaching the preset threshold to the memory controller 30 in real time without waiting for the ECS finish flag signal (ECS Finish Flag) sent by the counting module 202, so that the memory controller 30 can promptly control the skipping of these row addresses or repair these row addresses in the read / write operation; or the address information where the error occurs can be recorded and sent to the memory controller 30 regularly, so that the memory controller 30 can promptly issue repair instructions to repair these erroneous address information. In this way, the repair efficiency of the storage system 10 is improved, and the integrity and accuracy of the data information can be guaranteed.
[0090] In some embodiments, as shown in FIG4 , the memory chip 20 further includes a second register module 25 and a startup module 26 ; wherein,
[0091] A second storage module 25 is configured to store ECS configuration parameters;
[0092] The startup module 26 is connected to the memory controller 30 and the second register module 25 and is configured to parse the ECS configuration parameters and generate an ECS startup signal when receiving the ECS start flag signal (ECS Start Flag) sent by the memory controller 30;
[0093] The ECS circuit 22 is connected to the start module 26 and is configured to receive an ECS start signal and control the memory chip 20 to enter a new ECS operation cycle based on the ECS start signal.
[0094] It should be noted that when the startup module 26 receives the ECS start flag signal (ECS Start Flag), it decodes the ECS configuration parameters controlled by the first mode signal MR14OP[6] and the second mode signal MR14OP[7] to obtain the ECS start signal, thereby instructing the memory chip 30 to start a new round of ECS operations. If the startup module 26 does not receive the ECS start flag signal (ECS Start Flag), the startup module 26 will not perform the configuration parameter parsing operation, nor will it send the ECS start signal to the ECS circuit 22, and the memory chip 20 will continue to perform the unfinished work of this round. In this way, only after the memory chip 20 completes a complete operation will the memory controller 30 send the ECS start flag signal (ECS Start Flag) to the startup module 26, which can ensure that the integrity of each operation cycle of the memory chip 20 is not affected, thereby improving the stability of the storage system 10.
[0095] In some embodiments, the memory controller 30 is further configured to generate and send an interval adjustment signal based on the inspection result information;
[0096] The memory chip 20 is further configured to receive an interval adjustment signal, and adjust the time interval between two consecutive ECS command signals (ECS_CMD) based on the interval adjustment signal.
[0097] It should be noted that during an ECS operation cycle, an ECS command signal (ECS_CMD) can be generated based on different command signals to perform an ECS operation. ECS operations can be performed based on refresh commands and / or based on clock signals. Thus, the ECS circuit 22 can generate an ECS command signal (ECS_CMD) based on refresh commands and / or clock signals to perform ECS operations, simplifying the process required to generate ECS operations and increasing the flexibility of executing ECS operations.
[0098] It should be noted that whenever the count value of the refresh command / clock signal meets a preset condition, the command generation module 201 will obtain a refresh command and generate an ECS command signal (ECS_CMD) for executing the ECS operation. If the ECS circuit 22 generates the ECS command signal (ECS_CMD) based on the refresh command, and assuming that the ECS circuit 22 previously obtained a refresh command to generate the ECS command signal (ECS_CMD) every three refresh commands, the interval adjustment signal may now adjust the refresh command to generate the ECS command signal (ECS_CMD) every four, five, six, seven, or so refresh commands. In this way, the interval adjustment signal further regulates the frequency of the ECS command signal (ECS_CMD) by controlling the number of refresh commands. If the ECS circuit 22 generates an ECS command signal (ECS_CMD) based on the period of the clock signal, and assuming that the previous ECS circuit 22 would obtain a refresh command to generate an ECS command signal (ECS_CMD) every 2 clock cycles, but after adjusting the interval adjustment signal, it may now obtain a refresh command to generate an ECS command signal (ECS_CMD) every 3 / 4 / 5 / 6... clock cycles. In this way, the interval adjustment signal can also further regulate the generation frequency of the ECS command signal (ECS_CMD) by controlling the number of clock cycles. In summary, in the ECS operation cycle, the memory controller controls the generation frequency of the ECS command signal (ECS_CMD) through the interval adjustment signal, and then controls the operation cycle of the ECS, which can meet the actual needs of different circuits to better perform ECS operations and improve the flexibility of the entire storage system 10.
[0099] It should be understood that the time interval is determined by the specific circuit structure and function of the memory controller 30 and can be modified according to actual needs. It should be noted that the refresh command obtained at this time is the refresh command that appears after the count value meets the preset conditions. Therefore, the refresh command obtained at this time specifically refers to the refresh command that appears at the next moment (or is called the next refresh command). In this way, the interval time of the ECS operation is planned based on whether the count value meets the preset conditions, which can ensure that a complete error check and clearing is performed within 24 hours.
[0100] In some embodiments, referring to FIG5 , the command generation module 201 includes a first command generation module 2011 and a second command generation module 2012 ; wherein,
[0101] The first command generating module 2011 is connected to the starting module 26 and is configured to receive a refresh command and intermittently use the next refresh command to generate an ECS command signal (ECS_CMD);
[0102] The second command generating module 2012 is connected to the first command generating module and configured to receive the ECS command signal and generate an internal command signal based on the ECS command signal (ECS_CMD);
[0103] The counting module 202 is specifically configured to increase the address count value by one each time an internal command signal is received.
[0104] It should be noted that, as shown in FIG5 , the ECS circuit (or ECS System) 22 includes a first command generation module 2011 (or ECS_CMD GEN), a second command generation module (or INT_CMD) 2012, and a counting module (ADD_CNT) 202. The ECS circuit 22 generates an ECS command signal (ECS_CMD) at regular intervals. After generating the ECS command signal (ECS_CMD), the memory chip 20 can generate internal command signals. The internal command signals may include an active command signal (Active CMD, represented by ACT CMD in FIG5 ), a read command signal (Read CMD, represented by RD CMD in FIG5 ), a write command signal (Write CMD, represented by WR CMD in FIG5 ), and a precharge signal (Precharge CMD, represented by PRE CMD in FIG5 ). Based on the ACT CMD, RD CMD, WR CMD, and PRE CMD, a read-modify-write operation can be performed on a memory cell at a specified address in the DRAM. Specifically, after receiving the ECS command signal (ECS_CMD), the second command generation module 2012 generates the ACT command signal, RD command signal, WR command signal and PRE command signal in sequence according to the preset timing conditions, wherein the timing control between each internal command signal can be specifically implemented by a delay chain (Delay Line).
[0105] When a complete ECS operation is completed and the memory controller 30 receives the ECS finish flag signal (ECS Finish Flag) and the check result information (Error Information) generated by the recording module 24, the memory controller 30 can send an ECS start flag signal (ECS Start Flag) to control the memory chip 20 to start a new round of ECS operation, and needs to handle the check result information (Error Information) detected by the ECS accordingly.
[0106] In some embodiments, the first command generating module 2011 is specifically configured to receive a preset clock signal and a refresh command, and generate an ECS command signal (ECS_CMD) using a next refresh command when the preset clock signal passes a first number of clock cycles;
[0107] The clock cycle length of the preset clock signal is controlled by an interval adjustment signal, and / or the first number is controlled by an interval adjustment signal.
[0108] It should be noted that the preset clock signal can be a clock signal with a fixed frequency generated by an oscillator. Since the interval adjustment signal is adjustable, the length of the clock cycle is also adjustable. For example, the first command generation module 2011 can steal a refresh command every 2 clock cycles; or steal a refresh command every 3 clock cycles; or steal a refresh command every 6 clock cycles... In this way, the generation interval of the corresponding ECS command signal (ECS_CMD) will also change. This method can accurately control the interval between ECS command generation and the ECS operation cycle, and can meet the circuit timing requirements under different ECS operation cycles (12 hours / 24 hours / 48 hours, etc.).
[0109] In some embodiments, the first command generating module 2011 is specifically configured to receive a refresh command, and use the next refresh command to generate an ECS command signal every time a second number of refresh commands are separated;
[0110] The second number is controlled by an interval adjustment signal.
[0111] It should be noted that the first command generation module 2011 can also generate the ECS command signal (ECS_CMD) by controlling the number of refresh commands. For example, the first command generation module 2011 can steal one refresh command every three refresh commands to generate the ECS command signal (ECS_CMD); or steal one refresh command every five refresh commands to generate the ECS command signal (ECS_CMD); or steal one refresh command every eight refresh command signals to generate the ECS command signal (ECS_CMD). By controlling the number of refresh commands to control the generation interval of the ECS command signal (ECS_CMD), there is no need to add a clock circuit and related control circuits. The circuit structure is relatively simple and can meet the circuit timing requirements under different ECS operation cycles (12 hours / 24 hours / 48 hours, etc.).
[0112] In some embodiments, as shown in FIG6 , the counting module 202 includes a column counting module (COL_CNT) 2021, a row counting module (ROW_CNT) 2022, and a block counting module (BG / BA_CNT) 2023. The address counting value includes a column counting value COL<9:4>, a row counting value ROW<15:0>, and a block counting value BG<2:0> / BA<1:0>.
[0113] The column counting module (COL_CNT) 2021 is connected to the second command generation module 2012 and is configured to receive internal command signals and count the internal command signals to generate column count values COL<9:4>. Each time an internal command signal is received, the column count value COL<9:4> is incremented by one. When the column count value COL<9:4> reaches a second preset value, a row counting signal (Col_Wrap) is output and the column count value COL<9:4> is cleared.
[0114] The row counting module (ROW_CNT) 2022 is connected to the column counting module 2021 and is configured to receive the row counting signal (Col_Wrap) and count the row counting signal (Col_Wrap) to generate a row counting value ROW<15:0>; each time a row counting signal (Col_Wrap) is received, the row counting value ROW<15:0> is incremented by one; when the row counting value ROW<15:0> reaches a third preset value, a block counting signal (Row_Wrap) is output and the row counting value ROW<15:0> is cleared;
[0115] The block counting module (BG / BA_CNT) 2023 is connected to the row counting module 2022 and is configured to receive the block counting signal (Row_Wrap) and count the block counting signal (Row_Wrap) to generate a block counting value BG<2:0> / BA<1:0>; each time a block counting signal (Row_Wrap) is received, the block counting value BG<2:0> / BA<1:0> is incremented by one; and when the block counting value BG<2:0> / BA<1:0> reaches a fourth preset value, an ECS finish flag signal (ECS Finish Flag) is output;
[0116] The first preset value is composed of the second preset value, the third preset value and the fourth preset value.
[0117] It should be noted that the internal command signal received by column counting module (COL_CNT) 2021 is PRE (Precharge in FIG6 ). PRE is used as the counting clock signal because a complete ECS operation requires the sequential execution of the four commands: ACT CMD, RD CMD, WR CMD, and PRE CMD. PRE CMD is the last command, thus indicating the end of the ECS operation. It should be understood that when the column count reaches the second preset value, the row count reaches the third preset value, and the block count reaches the fourth preset value, the address count reaches the first preset value. At this point, counting module 202 outputs an ECS finish flag signal (ECS Finish Flag), indicating the end of the ECS operation.
[0118] It should be noted that the ECS finish flag signal (ECS Finish Flag) includes a row count signal indicating that the counting of each storage bit in a storage row is completed, a block count signal indicating that the counting of each row in a BA is completed, an ECS finish flag signal (ECS Finish Flag) indicating that the counting of each BA in a BG is completed, and a BG count of each BG in the storage array 21 is completed.
[0119] It should be noted that the block counting module 2023 includes BA_CNT and BG_CNT. Only when BA_CNT and BG_CNT simultaneously meet the fourth preset value, the block counting module 2023 completes counting. At this time, the block counting module 2023 will generate an ECS end flag signal (ECS Finish Flag) and send it to the memory controller 30. It should be understood that the fourth preset value here includes two values, one for BA and the other for BG. In addition, the block count value BG<2:0> / BA<1:0> is related to the number of BAs and BGs. If the initial values of the block count value BG<2:0> / BA<1:0> are 000 and 00, and the storage array 21 has 4 BGs and each BG has 2 BAs, then when the block count value BG<2:0> / BA<1:0> is 011 and 10, it indicates that counting is complete.
[0120] For ease of understanding, the operation of counting module 202 is described in detail. Assume that storage array 21 includes four block groups (BGs): BG0, BG1, BG2, and BG3. Each BG includes eight blocks (BAs): BA0, BA1, BA2, BA3, BA4, BA5, BA6, and BA7. This means that when the block count reaches 100 and 1000, counting is complete, and an ECS Finish Flag is output. For example, BA5 in BG2 consists of four rows: Row0, Row1, Row2, and Row3, and four columns: Col0, Col1, Col2, and Col3. In each BG, each storage bit is recorded as Bitmn, where m represents the row where the storage bit is located in BA, and n represents the column where the storage bit is located in BA. For example, Bit23 represents the storage bit located by Row2 and Col3 in BA. The storage bit currently being subjected to the ECS operation is recorded as the target storage bit, and the row, BA, and BG to which the target storage bit belongs are recorded as the target row, target storage block, and target storage group, respectively. For example, if the ECS operation of Bit31 in BA4 in BG2 is being performed, the target row is Row3 in BA4 in BG2, the target storage block is BA4 in BG2, and the target storage group is BG2. It should be understood that each ECS operation is for a storage bit in the storage array 21, and one address in DRAM generally corresponds to multiple storage bits.
[0121] Column counting module (COL_CNT) 2021 can sequentially count the storage bits included in each row of memory array 21. Thus, during a complete ECS operation on memory array 21, an ECS operation is first performed sequentially on each storage bit in the first row, Row0, in BA0 of BG0. When an ECS operation is performed on Bit00, a corresponding PRE signal is sent to the clock terminal of column counting module (COL_CNT) 2021 (CNT_CLK is used in FIG6 to represent the clock terminal of each counting module). Each time a PRE signal is received, the column count value of Row0 is incremented by 1. It can be understood that the column count value COL<9:4> represents the number of storage bits in the target row for which the ECS operation has completed. Assuming that Row0 includes 4 storage bits, when the column count value of Row0 reaches 4 (the second preset value), the column count of Row0 is complete. At this time, the column counting module (COL_CNT) 2021 generates a column count value COL<9:4> and a row count signal (Col_Wrap). The row count signal (Col_Wrap) is sent to the row counting module (ROW_CNT) 2022, and the column count value COL<9:4> is sent to the recording module 24. After completing the column count of Row0, the column counting module (COL_CNT) 2021 clears the count value and then continues to count the columns of Row1. This process is then repeated for each row of the memory array 21 until the column count of each row of the memory array 21 is completed. In other words, the column counting module (COL_CNT) 2021 is further configured to continue to count the columns of the next target row after generating the column count value COL<9:4> and the row count signal (Col_Wrap), until the column count of each row of the memory array 21 is completed.
[0122] The row counting module (ROW_CNT) 2022 counts according to the row counting signal (Col_Wrap). Specifically, after completing the counting of Row0, the column counting module (COL_CNT) 2021 will generate a row counting signal (Col_Wrap) and send it to the row counting module (ROW_CNT) 2022, and the row count value ROW<15:0> of the target storage block counted by the row counting module (ROW_CNT) 2022 will be increased by 1. It can be understood that the row count value ROW<15:0> represents the number of rows in the target storage block that have completed the ECS operation. After completing the counting of Row1, the column counting module (COL_CNT) 2021 will send another row counting signal (Col_Wrap) to the row counting module (ROW_CNT) 2022, and the row count value of the target storage block will continue to increase by 1... Assuming that BA0 includes 4 rows, then when the row count value of the target storage block is 4 (the third preset value), it means that the row counting of BA0 is completed. At this time, the row counting module (ROW_CNT) 2022 generates a block count signal (Row_Wrap) and a row count value Row<15:0>. The block count signal (Row_Wrap) is sent to the block counting module (BG / BA_CNT) 2023, and the row count value Row<15:0> is sent to the recording module 24. After completing the row count of BA0, the row counting module (ROW_CNT) 2022 clears the count value and then continues to count BA1. This process is then repeated for each BA in the memory array 21 until the counting of each BA in the memory array 21 is completed. In other words, the row counting module (ROW_CNT) 2022 is further configured to continue row counting for the next target memory block after generating the block count signal (Row_Wrap) and the row count value Row<15:0>, until the row count of each BA in the memory array 21 is completed.
[0123] Block counting module (BG / BA_CNT) 2023 counts based on the block count signal (Row_Wrap). Still using BG0 as an example, after completing the count of BA0, row counting module (ROW_CNT) 2022 generates a block count signal (Row_Wrap) and sends it to block counting module (BG / BA_CNT) 2023. The block count value of the target storage group counted by block counting module (BG / BA_CNT) 2023 is incremented by 1. It can be understood that the block count value BG<2:0> / BA<1:0> represents the number of BAs / BGs in the target storage group that have completed the ECS operation. After completing the counting of BA1, the row counting module (ROW_CNT) 2022 will generate another block count signal (Row_Wrap) and send it to the block counting module (BG / BA_CNT) 2023. The block count value of the target storage group will continue to increase by 1, ... Assuming that BG0 includes 6 BAs, then when the storage block count value of the target storage group reaches 6 (the fourth preset value), it means that the storage block counting of BG0 is completed. At this time, the block counting module (BG / BA_CNT) 2023 will generate an ECS end flag signal (ECS Finish Flag) and the block count value BG<2:0> / BA<1:0> and send it to the recording module 24. After completing the BA counting for BG0, the block counting module (BG / BA_CNT) 2023 resets the count value to zero and then continues to count the rows for BG1. This process is repeated for each BG in the memory array 21 until the counting of each BG in the memory array 21 is completed. It should be understood that the numbers in the embodiments of the present disclosure are merely exemplary and do not constitute a limitation.
[0124] In other words, the main function of the counting module 202 is as follows: In order to perform complete error checking and clearing on the DRAM, the rows and columns of all BAs in all BGs must be accessed. For each ECS operation, the counting module 202 increases the column address count (i.e., the column count of the target row) after each internal PRE command signal. When the column address count of the target row is completed, the row address count (i.e., the row count of the target storage block) begins to increase until the codewords of each row in a storage block are accessed. Then, the storage block count (i.e., the BA count of the target storage group) begins to increase, repeating the previous BA access codeword process. When all BA counts of a BG are completed, the BG count begins to increase until all BAs in the DRAM are accessed, and a complete error checking and clearing operation is completed.
[0125] In some embodiments, the counting module 202 is further configured to clear the address count value after the memory chip 20 receives the ECS start flag signal (ECS Start Flag).
[0126] It should be noted that when the memory controller 30 receives the ECS finish flag signal (ECS Finish Flag) and the check result information (Error Information), the startup module 26 will parse the ECS configuration parameters stored in the second register module 25 according to the ECS start flag signal (ECS Start Flag) sent by the memory controller 30, and output the ECS startup signal to the memory chip 20. The ECS startup signal instructs the memory chip 20 to clear the address count value, so that the memory chip 20 starts a new round of ECS operations.
[0127] It should also be noted that the module for executing the counting function involved in the embodiment of the present disclosure can be implemented by a synchronous counter or an asynchronous counter, which is not specifically limited here.
[0128] In some embodiments, as shown in FIG7 , the memory controller 30 is further configured to send first handling information to the memory chip 20 upon receiving the check result information (Error Information);
[0129] The first handling information indicates that the storage row corresponding to the row address with the maximum number of errors is skipped when writing to the storage array 21 .
[0130] It should be noted that the recording module 24 records error information about the storage array 21 and sends the error information to the memory controller 30 for execution. When writing to the storage array 21, if the memory controller 30 identifies an error message, it will skip it, avoiding the use of erroneous data and improving the accuracy of the stored data.
[0131] In some embodiments, as shown in FIG7 , the memory controller 30 is further configured to send second handling information to the memory chip 20 upon receiving the check result information (Error Information);
[0132] The second handling information indicates to perform redundancy repair processing on the storage row corresponding to the row address with the maximum number of errors.
[0133] It's important to note that DRAM consists of multiple banks, each of which is divided into multiple sections. Each section has multiple normal wordlines and multiple redundant wordlines. When a normal wordline has an error or fails, a redundant wordline replaces it. This process is known as redundancy repair. By performing redundancy repair on the storage row corresponding to the row address with the highest number of errors, data integrity is improved, further enhancing storage stability.
[0134] It should also be noted that during the ECS operation cycle, since the error information is continuously updated, the memory controller 30 can receive the error information sent by the recording module 24 in a periodic or real-time manner through a mode register read command. Therefore, a per-row error threshold can be set. By comparing the codeword error of each row with the per-row error threshold, different comparison results are generated. The memory controller 30 will perform corresponding processing operations based on the different states of the comparison results. Specifically, the per-row error threshold includes a first threshold and a second threshold, and the second threshold is greater than the first threshold. If the number of error codewords in a certain storage row is less than the first threshold, the comparison result is in the first state, and the memory controller 30 will not send processing information to the memory chip 20, and the memory chip 20 will perform the same work as last time; if the number of error codewords in a certain storage row is greater than the first threshold but less than the second threshold, the comparison result is in the second state, and the memory controller 30 will send second processing information to the memory chip 20, instructing the memory chip 20 to perform redundancy repair processing on the storage row corresponding to the row address; if the number of error codewords in a certain storage row is greater than the second threshold, the comparison result is in the third state, and the memory controller 30 will send first processing information to the memory chip 20, instructing the memory chip 20 to skip the storage row corresponding to the address when writing to the storage array 21. By setting the error threshold for each row, the processing information of the memory controller 30 can be made more accurate, so that the memory chip 20 can process the storage row corresponding to the row address with the largest number of errors more promptly.
[0135] It should be understood that the first threshold and the second threshold here can be set according to the actual application scenario and the performance of the memory chip 20. For example, the first threshold is 1 and the second threshold is 4. When the number of error codewords in a certain storage row is less than 1, the memory controller 30 will not send the disposal information, and the memory chip 20 will work as usual; when the number of error codewords in a certain storage row is greater than 1 and less than 4, the memory controller 30 sends the second disposal information to the memory chip 20; when the number of error codewords in a certain storage row is greater than 4, the memory controller 30 sends the first disposal information to the memory chip 20. In addition, when the number of error codewords in multiple storage rows in the storage array 21 exceeds the row error threshold, the memory controller 30 will continue to send corresponding disposal information to the memory chip 20, and the memory chip 20 will also continuously repair the error rows, thereby improving the repair efficiency and detection cost. Of course, the order of the first disposal information and the second disposal information can be swapped, and there is no restriction here.
[0136] Furthermore, an error row threshold can be set. If the accumulated error row value is less than the error row threshold, the memory controller 30 can choose to send the first disposal information or the second disposal information to the memory chip 20 and perform the corresponding operation; if the accumulated error row value is greater than the error row threshold, that is, there are too many failed rows in the storage array 21, there may not be enough redundant rows to use or the memory chip 20 can no longer perform the relevant functions well. At this time, the memory controller 30 will send an end signal to the memory chip 20, instructing the memory chip 20 to stop working, and the memory chip 20 may be replaced.
[0137] In another embodiment of the present disclosure, as shown in FIG8 , FIG8 shows a composition structure of a memory chip 20 provided in an embodiment of the present disclosure. The memory chip 20 includes a memory array 21 and a control circuit 40 , and the memory array 21 is connected to the control circuit 40 ;
[0138] The control circuit 40 is configured to perform error checking and clearing ECS operations on the storage array 21; and after completing the current ECS operation cycle, generate an ECS finish flag signal (ECS Finish Flag) and send the ECS finish flag signal (ECS Finish Flag) to the outside; and,
[0139] An ECS start flag signal (ECS Start Flag) is received from the outside, and a new round of ECS operation cycle is entered based on the ECS start flag signal (ECS Start Flag).
[0140] In some embodiments, the control circuit 40 is specifically configured to generate multiple ECS command signals (ECS_CMD) during an ECS operation cycle, and perform an error check and clear ECS operation on each storage unit corresponding to each storage address based on the ECS command signal (ECS_CMD); after the error check and clear ECS operation is performed on all storage units corresponding to the storage addresses, the current round of ECS operation is completed, and check result information (Error Information) is generated and sent;
[0141] The check result information (Error Information) includes the maximum number of row errors, the address of the row with the maximum number of errors, and the cumulative error value / the cumulative error row value.
[0142] In some embodiments, as shown in FIG9 , the control circuit 40 includes an ECS circuit 22 , a recording module 24 , a first register module 23 , a second register module 25 , and a startup module 26 , and the ECS circuit 22 includes a command generation module 201 and a counting module 202 ; wherein,
[0143] The command generation module 201 is configured to intermittently utilize one refresh command to generate one ECS command signal (ECS_CMD) during an ECS operation cycle; wherein the utilized refresh command is no longer used to perform a refresh operation;
[0144] The counting module 202 is connected to the command generating module 201 and is configured to count the ECS command signal (ECS_CMD) to generate an address count value, where one address count value indicates one storage address; when the address count value reaches a first preset value, generate an ECS finish flag signal (ECS Finish Flag) and send the ECS finish flag signal (ECS Finish Flag) to the recording module 24 and the first register module 23;
[0145] The recording module 24 is connected to the counting module 202 and is configured to store error information; upon receiving the ECS finish flag signal (ECS Finish Flag), generate check result information (Error Information) based on the error information, and send the check result information (Error Information) to the first register module 23; wherein, during the ECS operation cycle, the error information is updated according to the address count value corresponding to each ECS operation and the check result of the storage unit corresponding to the address count value;
[0146] The first register module 23 is connected to the counting module 202 and the recording module 24, and is configured to store the ECS finish flag signal (ECS Finish Flag) and the check result information (Error Information), and send the ECS finish flag signal (ECS Finish Flag) and the check result information (Error Information) to the outside in response to a mode register read command received from the outside;
[0147] A second storage module 25 is configured to store ECS configuration parameters;
[0148] The startup module 26 is connected to the second register module 25 and is configured to parse the ECS configuration parameters and generate an ECS startup signal when receiving an ECS start flag signal (ECS Start Flag) sent from the outside;
[0149] The ECS circuit 22 is connected to the start module 26 and is configured to receive an ECS start signal and control the memory chip to enter a new ECS operation cycle based on the ECS start signal.
[0150] The second storage module 25 may send the stored ECS configuration parameters directly to the startup module 26 , or may send the stored ECS configuration parameters to the startup module 26 in response to an external command.
[0151] In some embodiments, referring to FIG5 , the command generation module 201 includes a first command generation module 2011 and a second command generation module 2012 ; wherein,
[0152] The first command generating module 2011 is connected to the starting module 26 and is configured to receive a refresh command and intermittently use the next refresh command to generate an ECS command signal (ECS_CMD);
[0153] The second command generation module 2012 is connected to the first command generation module 2011 and is configured to receive the ECS command signal (ECS_CMD) and generate an internal command signal (ACT / RD / WR / PRE CMD) based on the ECS command signal (ECS_CMD);
[0154] The counting module 202 is specifically configured to increase the address count value by one each time an internal command signal is received.
[0155] In some embodiments, the control circuit 40 is further configured to receive an interval adjustment signal, and adjust the time interval between two consecutive ECS command signals (ECS_CMD) based on the interval adjustment signal.
[0156] In some embodiments,
[0157] The first command generating module 2011 is specifically configured to receive a preset clock signal and a refresh command, and generate an ECS command signal (ECS_CMD) using the next refresh command when the preset clock signal passes a first number of clock cycles; wherein the clock cycle length of the preset clock signal is controlled by the interval adjustment signal, and / or the first number is controlled by the interval adjustment signal;
[0158] or,
[0159] The first command generating module 2011 is further configured to receive a refresh command and generate an ECS command signal (ECS_CMD) using the next refresh command every time a second number of refresh commands are separated; wherein the second number is controlled by the interval adjustment signal.
[0160] In some embodiments, as shown in FIG10 , the counting module 202 includes a column counting module 2021 , a row counting module 2022 , and a block counting module 2023 . The address counting value includes a column counting value COL<9:4>, a row counting value ROW<15:0>, and a block counting value BG<2:0> / BA<1:0>.
[0161] The column counting module 2021 is connected to the second command generation module 2012 and is configured to receive internal command signals and count the internal command signals to generate column count values COL<9:4>. Each time an internal command signal is received, the column count value COL<9:4> is incremented by one. When the column count value COL<9:4> reaches a second preset value, the column counting module 2021 outputs a row counting signal (Col_Wrap) and clears the column count value COL<9:4>.
[0162] The row counting module 2022 is connected to the column counting module 2021 and is configured to receive a row counting signal (Col_Wrap) and count the row counting signal (Col_Wrap) to generate a row counting value ROW<15:0>; each time a row counting signal (Col_Wrap) is received, the row counting value ROW<15:0> is incremented by one; when the row counting value ROW<15:0> reaches a third preset value, a block counting signal (Row_Wrap) is output and the row counting value ROW<15:0> is cleared;
[0163] The block counting module 2023 is connected to the row counting module 2022 and is configured to receive the block counting signal (Row_Wrap) and count the block counting signal (Row_Wrap) to generate a block counting value BG<2:0> / BA<1:0>; each time a block counting signal (Row_Wrap) is received, the block counting value BG<2:0> / BA<1:0> is incremented by one; and when the block counting value BG<2:0> / BA<1:0> reaches a fourth preset value, an ECS finish flag signal (ECS Finish Flag) is output;
[0164] The counting module 202 is further configured to clear the address count value after the memory chip 20 receives the ECS start flag signal (ECS Start Flag);
[0165] The first preset value is composed of the second preset value, the third preset value and the fourth preset value.
[0166] In some embodiments, the memory chip 20 is further configured to receive the first disposal information or the second disposal information from the outside;
[0167] The first handling information indicates that the storage row corresponding to the row address with the largest number of errors is skipped when writing to the storage array; the second handling information indicates that redundancy repair processing is performed on the storage row corresponding to the row address with the largest number of errors.
[0168] In another embodiment of the present disclosure, referring to FIG. 11 , a method for error checking and clearing is shown. The method is applied to a storage system including a memory controller and a storage chip. The method includes:
[0169] S301: After the memory chip completes this round of error checking and clearing ECS operation cycle, it generates an ECS end flag signal and sends the ECS end flag signal to the memory controller.
[0170] S302: The memory controller generates an ECS start flag signal based on the ECS end flag signal, and sends the ECS start flag signal to the memory chip, so that the memory chip enters a new round of ECS operation cycle.
[0171] It should be noted that the ECS method provided in the embodiment of the present disclosure is applied to the storage system provided in the aforementioned embodiment. For details not disclosed in the embodiment of the present disclosure, please refer to the description of the aforementioned embodiment for understanding.
[0172] In some embodiments, during the ECS operation cycle, the memory chip performs an error check and clear ECS operation on the memory cell corresponding to each memory address; after performing the error check and clear ECS operation on the memory cells corresponding to all memory addresses, a check result information is generated, and this ECS operation is completed;
[0173] The memory controller receives the inspection result information sent by the memory chip, and sends first processing information or second processing information to the memory chip based on the inspection result information;
[0174] Among them, the inspection result information includes the maximum number of row errors, the address of the row with the maximum error number, and the error cumulative value / error row cumulative value. The first handling information indicates that the storage row corresponding to the row address with the maximum error number is skipped when writing data, and the second handling information indicates that redundant repair processing is performed on the storage row corresponding to the row address with the maximum error number.
[0175] It should be noted that the memory controller can selectively send either the first or second response information to the memory chip based on the inspection results. For addresses that can be repaired using redundancy, redundant replacement is prioritized. For addresses with too many errors to be repaired using redundancy, data can be skipped during data reading, ensuring that other normal addresses can be accurately read. There is no inherent order in which the first or second response information is sent; it is determined based on the severity of the data damage.
[0176] In some embodiments, the method further comprises:
[0177] The memory controller generates an interval adjustment signal and sends the interval adjustment signal to the memory chip to adjust the time interval between two consecutive error checking and clearing ECS operations performed by the memory chip.
[0178] It should be noted that the interval adjustment signal can control the generation frequency of the ECS command signal to perform ECS operations more flexibly and improve the error detection efficiency of the ECS.
[0179] In another embodiment of the present disclosure, referring to FIG12 , a schematic diagram of the structure of an electronic device 50 provided by an embodiment of the present disclosure is shown. As shown in FIG12 , the electronic device 50 may include the aforementioned storage system 10 .
[0180] The above are only preferred embodiments of the present disclosure and are not intended to limit the scope of protection of the present disclosure.
[0181] It should be noted that, in this disclosure, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0182] The serial numbers of the above-mentioned embodiments of the present disclosure are for description only and do not represent the advantages or disadvantages of the embodiments.
[0183] The methods disclosed in the several method embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new method embodiments.
[0184] The features disclosed in the several product embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new product embodiments.
[0185] The features disclosed in several method or device embodiments provided in this disclosure may be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0186] The above are only specific embodiments of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A storage system, the storage system (10) comprising a storage chip (20) and a memory controller (30), wherein: The storage chip (20) comprises a storage array (21) and is configured to perform error checking and clearing ECS operations on the storage array (21); and, after completing the current round of ECS operation cycle, generating an ECS end flag signal, and sending the ECS end flag signal to the memory controller (30); The memory controller (30) is connected to the memory chip (20) and is configured to receive the ECS end mark signal, generate an ECS start mark signal based on the ECS end mark signal, and send the ECS start mark signal to the memory chip (20), so that the memory chip (20) enters a new round of ECS operation cycle based on the ECS start mark signal.
2. The storage system according to claim 1, wherein: The storage chip (20) is specifically configured to generate a plurality of ECS command signals within the ECS operation cycle, and perform an error check and clear ECS operation on a storage unit corresponding to each storage address based on the ECS command signal; After performing error checking and clearing ECS operations on the storage units corresponding to all storage addresses, this round of ECS operations is completed and check result information is generated; The memory controller (30) is further configured to receive the inspection result information and perform a processing operation on the memory chip (20) based on the inspection result information; The inspection result information includes the maximum row error number, the row address with the maximum error number, and the error accumulation value / error row accumulation value.
3. The storage system according to claim 2, wherein: The storage chip (20) comprises an ECS circuit (22), a first register module (23) and a recording module (24), and the ECS circuit (22) comprises a command generating module (201) and a counting module (202); The command generation module (201) is configured to intermittently utilize a refresh command to generate an ECS command signal within the ECS operation cycle; wherein the utilized refresh command is not used to perform a refresh operation; The counting module (202) is connected to the command generating module (201) and is configured to count the ECS command signal to generate an address count value, wherein one address count value indicates one storage address; when the address count value reaches a first preset value, the ECS end flag signal is generated, and the ECS end flag signal is sent to the first register module (23); The first register module (23) is connected to the counting module (202), configured to store the ECS end flag signal, and send the ECS end flag signal to the memory controller (30) in response to a mode register read command received from the memory controller (30); The recording module (24) is connected to the counting module (202) and is configured to store error information; upon receiving the ECS end mark signal, the inspection result information is generated based on the error information, and the inspection result information is sent to the first register module (23); wherein, within the ECS operation cycle, the error information is updated according to the address count value corresponding to each ECS operation and the inspection result of the storage unit corresponding to the address count value; The first storage module (23) is connected to the recording module (24), and is also configured to store the inspection result information and send the inspection result information to the memory controller (30).
4. The storage system according to claim 3, wherein: The memory chip (20) further comprises a second register module (25) and a startup module (26); The second storage module (25) is configured to store ECS configuration parameters; The startup module (26) is connected to the memory controller (30) and the second register module (25), and is configured to parse the ECS configuration parameters and generate an ECS startup signal when receiving the ECS start flag signal sent by the memory controller (30); The ECS circuit (22) is connected to the start module (26) and is configured to receive the ECS start signal and, based on the ECS start signal, control the storage chip (20) to enter a new ECS operation cycle.
5. The storage system according to claim 2 or 3, wherein: The memory controller (30) is further configured to generate and send an interval adjustment signal based on the inspection result information; The storage chip (20) is further configured to receive the interval adjustment signal, and adjust the time interval between two consecutive ECS command signals based on the interval adjustment signal.
6. The storage system according to claim 5, wherein: The command generating module (201) comprises a first command generating module (2011) and a second command generating module (2012); The first command generating module (2011) is connected to the starting module (26), and is configured to receive the refresh command and intermittently use the next refresh command to generate an ECS command signal; The second command generating module (2012) is connected to the first command generating module (2011), and is configured to receive the ECS command signal and generate an internal command signal based on the ECS command signal; The counting module (202) is specifically configured to increase the address count value by one each time it receives one of the internal command signals.
7. The storage system according to claim 6, wherein: The first command generating module (2011) is specifically configured to receive a preset clock signal and the refresh command, and when the preset clock signal passes through a first number of clock cycles, use the next refresh command to generate an ECS command signal, the clock cycle length of the preset clock signal is controlled by the interval adjustment signal, and / or the first number is controlled by the interval adjustment signal; or, The first command generating module (2011) is specifically configured to receive the refresh command, and to use the next refresh command to generate an ECS command signal every time a second number of refresh commands are received; wherein the second number is controlled by the interval adjustment signal.
8. The storage system according to claim 6 or 7, wherein: The counting module (202) comprises a column counting module (2021), a row counting module (2022) and a block counting module (2023), and the address counting value comprises a column counting value, a row counting value and a block counting value; The column counting module (2021) is connected to the second command generating module (2012), and is configured to receive the internal command signal, and count the internal command signal to generate the column count value; each time one of the internal command signals is received, the column count value is incremented by one; when the column count value reaches a second preset value, a row count signal is output, and the column count value is cleared; The row counting module (2022) is connected to the column counting module (2021), and is configured to receive the row counting signal, count the row counting signal to generate the row counting value; add one to the row counting value each time a row counting signal is received; and output a block counting signal when the row counting value reaches a third preset value, and clear the row counting value; The block counting module (2023) is connected to the row counting module (2022) and is configured to receive the block counting signal and count the block counting signal to generate the block counting value; each time a block counting signal is received, the block counting value is incremented by one; and when the block counting value reaches a fourth preset value, an ECS end mark signal is output; The counting module is further configured to clear the address count value after the storage chip (20) receives the ECS start mark signal; The first preset value is composed of the second preset value, the third preset value and the fourth preset value.
9. The storage system according to any one of claims 2 to 8, wherein: The memory controller (30) is further configured to send first processing information and / or second processing information to the memory chip (20) upon receiving the inspection result information; The first handling information indicates that the storage row corresponding to the maximum error number row address is skipped when writing to the storage array (21), and the second handling information indicates that a redundancy repair process is performed on the storage row corresponding to the maximum error number row address.
10. A memory chip, the memory chip (20) comprising a memory array (21) and a control circuit (40), the memory array (21) being connected to the control circuit (40); The control circuit (40) is configured to perform error checking and clearing ECS operations on the storage array (21); And, after completing this round of ECS operation cycle, generating an ECS end flag signal, and sending the ECS end flag signal to the outside; as well as, An ECS start flag signal is received from the outside, and a new round of ECS operation cycle is entered based on the ECS start flag signal.
11. The memory chip according to claim 10, wherein: The control circuit (40) is specifically configured to generate a plurality of ECS command signals within the ECS operation cycle, and perform an error check and clear ECS operation on a storage unit corresponding to each storage address based on the ECS command signal; After performing error checking and clearing ECS operations on the storage units corresponding to all storage addresses, this round of ECS operations is completed, and check result information is generated and sent; wherein the check result information includes the maximum number of row errors, the address of the row with the maximum number of errors, and the error accumulation value / error row accumulation value; The storage chip (20) is further configured to receive first disposal information or second disposal information from the outside after sending the inspection result information; wherein the first disposal information indicates to skip the storage row corresponding to the maximum error number row address when writing to the storage array (21); and the second disposal information indicates to perform redundant repair processing on the storage row corresponding to the maximum error number row address.
12. The memory chip according to claim 11, wherein: The control circuit (40) comprises an ECS circuit (22), a recording module (24), a first register module (23), a second register module (25) and a start module (26), and the ECS circuit (22) comprises a command generating module (201) and a counting module (202); The command generation module (201) is configured to intermittently utilize a refresh command to generate an ECS command signal within the ECS operation cycle; wherein the utilized refresh command is no longer used to perform a refresh operation; The counting module (202) is connected to the command generating module (201) and is configured to count the ECS command signal to generate an address count value, wherein one address count value indicates one storage address; when the address count value reaches a first preset value, the ECS end mark signal is generated, and the ECS end mark signal is sent to the recording module (24) and the first register module (23); The recording module (24) is connected to the counting module (202) and is configured to store error information; upon receiving the ECS end mark signal, the inspection result information is generated based on the error information, and the inspection result information is sent to the first register module (23); wherein, within the ECS operation cycle, the error information is updated according to the address count value corresponding to each ECS operation and the inspection result of the storage unit corresponding to the address count value; The first register module (23) is connected to the counting module (202) and the recording module (24), and is configured to store the ECS end mark signal and the inspection result information, and in response to a mode register read command received from the outside, send the ECS end mark signal and the inspection result information to the outside; The second storage module (25) is configured to store ECS configuration parameters; The startup module (26) is connected to the second register module (25) and is configured to parse the ECS configuration parameters and generate an ECS startup signal when receiving the ECS start flag signal sent from the outside; The ECS circuit (22) is connected to the start module (26) and is configured to receive the ECS start signal and control the storage chip (20) to enter a new ECS operation cycle based on the ECS start signal; The command generating module (201) comprises a first command generating module (2011) and a second command generating module (2012); The first command generating module (2011) is connected to the starting module (26), and is configured to receive the refresh command and intermittently use the next refresh command to generate an ECS command signal; The second command generating module (2012) is connected to the first command generating module (2011), and is configured to receive the ECS command signal and generate an internal command signal based on the ECS command signal; The counting module (202) is specifically configured to increase the address count value by one each time it receives one of the internal command signals.
13. The memory chip according to claim 12, wherein: The control circuit (40) is further configured to receive an interval adjustment signal, and adjust the time interval between two consecutive ECS command signals based on the interval adjustment signal; The first command generating module (2011) is further configured to receive the refresh command, and to generate an ECS command signal using the next refresh command every time a second number of refresh commands are separated; wherein the second number is controlled by the interval adjustment signal; Alternatively, the first command generating module (2011) is specifically configured to receive a preset clock signal and the refresh command, and when the preset clock signal passes through a first number of clock cycles, use the next refresh command to generate an ECS command signal; wherein the clock cycle length of the preset clock signal is controlled by the interval adjustment signal, and / or the first number is controlled by the interval adjustment signal.
14. The memory chip according to claim 12 or 13, wherein: The counting module (202) comprises a column counting module (2021), a row counting module (2022) and a block counting module (2023), and the address counting value comprises a column counting value, a row counting value and a block counting value; The column counting module (2021) is connected to the second command generating module (2012), and is configured to receive the internal command signal, and count the internal command signal to generate the column count value; each time one of the internal command signals is received, the column count value is incremented by one; when the column count value reaches a second preset value, a row count signal is output, and the column count value is cleared; The row counting module (2022) is connected to the column counting module (2021), and is configured to receive the row counting signal, count the row counting signal to generate the row counting value; add one to the row counting value each time a row counting signal is received; and output a block counting signal when the row counting value reaches a third preset value, and clear the row counting value; The block counting module (2023) is connected to the row counting module (2022) and is configured to receive the block counting signal and count the block counting signal to generate the block counting value; each time a block counting signal is received, the block counting value is incremented by one; and when the block counting value reaches a fourth preset value, an ECS end mark signal is output; The counting module (202) is further configured to clear the address count value after the storage chip (20) receives the ECS start mark signal; The first preset value is composed of the second preset value, the third preset value and the fourth preset value.
15. An error checking and clearing method, applied to a storage system (10), wherein the storage system comprises a memory controller (30) and a storage chip (20), the method comprising: After the storage chip (20) completes the current round of error checking and clearing ECS operation cycle, an ECS end flag signal is generated, and the ECS end flag signal is sent to the memory controller (30); The memory controller (30) generates an ECS start flag signal based on the ECS end flag signal, and sends the ECS start flag signal to the memory chip (20), so that the memory chip (20) enters a new round of ECS operation cycle.
Citation Information
Patent Citations
Refreshing method of dynamic random access memory, memory controller and electronic device
CN112382321A
Semiconductor devices and semiconductor systems including the same
CN112783686A
Method and system for supervising DDR5 memory particle errors, storage medium and equipment
CN115543678A
Semiconductor memory apparatus and operation method of the semiconductor memory apparatus, and memory system having the semiconductor memory apparatus
US20220405167A1
