REFRESH CONTROL CIRCUIT AND CONTROL METHOD THEREOF, AND MEMORY
The refresh control circuit addresses the inefficiencies of row hammer attacks in DRAM by selectively refreshing only the affected data block, reducing unnecessary refresh operations and improving memory performance.
Patent Information
- Application Number
- JP2022562394
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-06-23
- Filing Date
- 2022-07-21
- Publication Date
- 2024-09-02
- Estimated Expiration
- 2042-07-21
AI Technical Summary
Current methods for addressing row hammer attacks in DRAM require unnecessary refresh operations on unrelated word lines, leading to increased resource waste and reduced memory performance.
A refresh control circuit that selectively decodes block and row addresses to target only the affected data block during a hammer refresh operation, reducing the number of unnecessary refreshes and optimizing power consumption.
Reduces refresh current and power consumption by minimizing the refresh of unrelated word lines, thereby enhancing memory performance.
Smart Images

Figure 0007543430000001 
Figure 0007543430000006 
Figure 0007543430000007
Abstract
Description
[Technical field]
[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application is filed based on a Chinese patent application filed with the China Patent Office on June 23, 2022, bearing application number 202210724803.6 and titled "Refresh control circuit and control method thereof, and memory", and claims priority to the Chinese patent application, the entire contents of which are incorporated herein by reference.
[0002] The present invention relates to the field of semiconductor memory technology, and more particularly to a refresh control circuit and a control method thereof, and a memory. [Background technology]
[0003] Row hammer is a type of data attack method for dynamic random access memories (DRAMs), which causes data loss in word lines adjacent to aggressor rows (hereinafter referred to as victim rows) by frequently refreshing word lines that are in close proximity to the aggressor rows. Currently, when row hammer is detected, a refresh operation must be performed on the victim rows to restore the affected data, which is also called a hammer refresh operation. However, the hammer refresh operation must be achieved by relying on a normal refresh operation process, and as a result, unrelated word lines are also refreshed during the hammer refresh process, wasting resources and degrading memory performance. Summary of the Invention [Problem to be solved by the invention]
[0004] The present invention provides a refresh control circuit, a control method thereof, and a memory, which are capable of reducing the amount of refresh of irrelevant word lines in a hammer refresh operation, thereby reducing refresh current and power consumption. [Means for solving the problem]
[0005] The technical solution of the present invention is realized as follows.
[0006] According to a first aspect, an embodiment of the present invention provides a refresh control circuit coupled to a memory array, the refresh control circuit comprising: an address output module configured to output refresh target address signals, the refresh target address signals including a block address signal and a row address signal; a block decode module configured to receive the block address signal, and perform a decoding process on the block address signal to output a first block select signal if the memory array has not been row hammered, or perform a decoding process on the block address signal to output a second block select signal if the memory array has been row hammered, where the first block select signal is used to select a plurality of data blocks from the memory array, and the second block select signal is used to select one data block from the memory array; a row decode module configured to receive the row address signal, perform a decoding process on the row address signal, and output a row select signal, the row select signal being used to select a target refresh word line from a selected data block.
[0007] In some embodiments, the block decoding module comprises a pre-processing module and a decoding processing module, the pre-processing module is configured to receive a first row hammer signal, a refresh instruction signal and the block address signal, and when the first row hammer signal is invalid, perform a first pre-processing on the block address signal based on the refresh instruction signal to obtain a block pre-select signal, or when the first row hammer signal is valid, perform a second pre-processing on the block address signal to obtain the block pre-select signal, the decoding processing module is configured to receive the block pre-select signal and perform a decoding process on the block pre-select signal to obtain the first block select signal or the second block select signal, where when the memory array has not received a row hammer, the first row hammer signal is invalid, and when the memory array has received a row hammer, the first row hammer signal is valid.
[0008] In some embodiments, the block address signal includes a first type signal and a second type signal, the block pre-select signal includes a first signal pair and a second signal pair, the pre-processing module comprises a first processing module and a second processing module, the first processing module is configured to receive the first type signal, perform logic processing on the first type signal, and output the first signal pair, where the first signal pair includes a first type signal and an inverted signal of the first type signal, a level state of the first type signal and a level state of the inverted signal of the first type signal are opposite to each other, and the second processing module is configured to output the first row hammer signal, the refresh and configured to receive a refresh instruction signal and the second type signal, and perform the first pre-processing or the second pre-processing on the second type signal based on the first row hammer signal and the refresh instruction signal to output the second signal pair, where the second signal pair includes a second type signal and an inverted signal of the second type signal, when the first row hammer signal is valid, a level state of the second type signal and a level state of the inverted signal of the second type signal are opposite to each other, and when the first row hammer signal is invalid and the refresh instruction signal is valid, the level signals of the second type signal and the inverted signal of the second type signal are both set to a high level state.
[0009] In some embodiments, the first processing module includes a first NOT gate, an input terminal of the first NOT gate receives the first type signal, and an output terminal of the first NOT gate outputs an inverted signal of the first type signal.
[0010] In some embodiments, the second processing module includes an enable module and a logic module, and the enable module is configured to receive a first row hammer signal and the refresh instruction signal, and output an operation control signal, where when the first row hammer signal is invalid and the refresh instruction signal is valid, the operation control signal is valid, and when the first row hammer signal is valid, the operation control signal is invalid; and the logic module is configured to receive the operation control signal and the second type signal, and when the operation control signal is valid, perform the first pre-processing on the second type signal and output the second signal pair, and when the operation control signal is invalid, perform the second pre-processing on the second type signal and output the second signal pair.
[0011] In some embodiments, the enable module includes a second NOT gate, a first NAND gate, and a third NOT gate, where an input terminal of the second NOT gate receives the first row hammer signal, a first input terminal of the first NAND gate is connected to an output terminal of the second NOT gate, a second input terminal of the first NAND gate receives the refresh instruction signal, an output terminal of the first NAND gate is connected to an input terminal of the third NOT gate, and an output terminal of the third NOT gate is configured to output the operation control signal.
[0012] In some embodiments, the logic module comprises a fourth NOT gate, a second NAND gate, a fifth NOT gate, and a third NAND gate, where the fourth NOT gate receives the operation control signal, a first input terminal of the second NAND gate is connected to an output terminal of the fourth NOT gate, a second input terminal of the second NAND gate is configured to receive the second type signal, an output terminal of the second NAND gate is configured to output an inverted signal of the second type signal, an input terminal of the fifth NOT gate receives the second type signal, a first input terminal of the third NAND gate is connected to an output terminal of the fourth NOT gate, a second input terminal of the third NAND gate is connected to an output terminal of the fifth NOT gate, and an output terminal of the third NAND gate is configured to output a new second type signal.
[0013] In some embodiments, both the first block select signal and the second block select signal include multiple block select sub-signals, and in the first block select signal, multiple of the block select sub-signals are in an enable state and the remaining block select sub-signals are in an disable state to select multiple data blocks from the memory array, and in the second block select signal, one of the block select sub-signals is in an enable state and the remaining block select sub-signals are in an disable state to select one data block from the memory array.
[0014] In some embodiments, the decoding processing module comprises a plurality of decoding sub-modules, each of which is configured to receive a partial signal of the block pre-selection signal, perform a logical operation on the received signal, and output one of the block selection sub-signals, wherein the signals received by different decoding sub-modules are different, and when the logical operation result is a predetermined value, the block selection sub-signal output by the decoding sub-module is in a valid state.
[0015] In some embodiments, the address output module is specifically configured to receive a normal refresh address signal and an activating address signal, and output the normal refresh address signal as the refresh target address signal when the memory array has not received a row hammer, or output the refresh target address signal based on the activating address signal when the memory array has received a row hammer.
[0016] In some embodiments, the address output module includes a control module and a selection module, wherein the control module is configured to receive the activation address signal, a second row hammer signal, and a first control signal, and when the second row hammer signal is valid, perform a calculation process on the activation address signal based on the first control signal to output a victim address signal; and the selection module is configured to receive the normal refresh address signal, the victim address signal, and a second control signal, and when the second control signal is in a first state, output the normal refresh address signal as the address signal to be refreshed, or when the second control signal is in a second state, output the victim address signal as the address signal to be refreshed, wherein the second row hammer signal indicates that the memory array has been subjected to a row hammer.
[0017] In some embodiments, the control module comprises a latch and a calculation module, wherein an input terminal of the latch receives the activation address signal, a clock terminal of the latch receives the second row hammer signal, an output terminal of the latch is connected to an input terminal of the calculation module, a control terminal of the calculation module receives the first control signal, a first input terminal of the selection module receives the normal refresh address signal, a second input terminal of the selection module is connected to an output terminal of the calculation module, a control terminal of the selection module is connected to the second control signal, and an output terminal of the selection module is configured to output the refresh target address signal.
[0018] According to a second aspect, an embodiment of the present invention provides a refresh control method applied to a refresh control circuit, the refresh control circuit being coupled to a memory array, the refresh control method comprising: determining a refresh target address signal, the refresh target address signal including a block address signal and a row address signal; performing a decoding process on the block address signal to obtain a first block selection signal when the memory array is not row hammered, and performing a decoding process on the block address signal to obtain a second block selection signal when the memory array is row hammered, where the first block selection signal is used to select a plurality of data blocks from the memory array, and the second block selection signal is used to select one data block from the memory array; performing a decoding process on the row address signal to obtain a row select signal, the row select signal being used to select a target refresh word line from a selected data block; and performing a refresh process on the target refresh word line.
[0019] According to a third aspect, an embodiment of the present invention provides a memory comprising a refresh control circuit according to the first aspect and a memory array, the refresh control circuit being connected to the memory array. Effect of the Invention
[0020] An embodiment of the present invention provides a refresh control circuit and a control method thereof, as well as a memory, which can reduce the amount of refresh of irrelevant word lines in a hammer refresh operation, thereby reducing refresh current and refresh power consumption, and further improving memory performance. [Brief description of the drawings]
[0021] [Figure 1] FIG. 1 is a schematic diagram of the structure of a memory array. [Diagram 2] 2 is a schematic diagram of the structure of a refresh control circuit according to an embodiment of the present invention; [Diagram 3] FIG. 2 is a schematic diagram of the structure of a block decoding module according to an embodiment of the present invention; [Figure 4] FIG. 2 is a schematic diagram of the structure of a first processing module according to an embodiment of the present invention. [Diagram 5] FIG. 2 is a schematic diagram of the structure of a second processing module according to an embodiment of the present invention. [Figure 6] FIG. 2 is a schematic diagram of the structure of a decoding processing module according to an embodiment of the present invention; [Figure 7] FIG. 2 is a schematic diagram of the structure of another refresh control circuit according to an embodiment of the present invention; [Figure 8] FIG. 2 is a schematic diagram of the structure of a second processing module according to the related art; [Figure 9] 4 is an exemplary flowchart of a refresh control method according to an embodiment of the present invention. [Figure 10] 1 is a schematic diagram of a memory structure according to an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] In the following, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention. As can be understood, the specific embodiments described in this specification are only for describing the relevant application, and do not limit the application. It should be further noted that, for convenience of description, only parts related to this application are shown in the drawings. Unless otherwise defined, all technical and scientific terms used in the present specification have the same meaning as commonly understood by those skilled in the art. The terms used in this specification are only for describing the embodiments of the present invention, and are not intended to limit the present invention. In the following description, the term "several embodiments" refers to a subset of all possible embodiments, and it can be understood that the term "several embodiments" can be the same subset or different subsets of all possible embodiments, which can be combined with each other without conflict. The terms "first / second / third" in the embodiments of the present application are only for distinguishing similar objects, and do not represent a particular order of the objects. It will be understood that "first / second / third" may, in some cases, interchange a particular order or sequence, thereby allowing embodiments of the invention described herein to be practiced in orders other than those shown in the figures or described.
[0023] Dynamic Random Access Memory (DRAM) needs to maintain data in memory cells through refresh operations. In a normal refresh operation, each refresh operation turns on multiple data blocks in a memory array, and further selects a word line from the turned-on data blocks to perform the refresh process. Referring to FIG. 1, a schematic diagram of the structure of a memory array is shown. As shown in FIG. 1, the memory array is divided into data block 0, data block 1, ... data block 7. The address signal in the refresh operation can be represented as RA<15:0>, where RA<15:13> is a block address signal, which is used to select the data block that needs to be turned on, and RA<12:0> is a row address signal, which is used to select the target refresh word line from the turned-on data block. In a normal refresh operation, RA14, RA14B, RA15, and RA15B are all set to high level (Force), where "B" represents an inverted signal. "RA14=0" is expressed as "RA14=1" in circuit decoding, so RA14=1, RA14=0, RA15=1, and RA15=0 can all be considered valid. Take RA<15:13>=000 as an example, data block 0, data block 2, data block 4, and data block 6 all use Ra13B as a block preselection signal, and Ra14 and Ra15 and their inverted signals are set (Forced) to 1, so in fact, data blocks are selected based only on Ra13, and even-level data blocks (data blocks 0, 2, 4, and 6) use Ra13B, so when Ra13=0, even-level data blocks are selected. That is, in each normal refresh operation, the corresponding word line (decoded by RA<12:0>) is selected from the four data blocks to refresh. In particular, in memory arrays with different memory capacities, the number of data blocks and the decoding process may be different, in which case the number of selected data blocks is also different, and FIG. 1 is just one example.
[0024] However, when row hammer is detected, victim row (Victim WL) needs to be refreshed to restore the affected data, and hammer refresh needs to be realized by relying on the normal refresh process. Taking FIG. 1 as an example, assuming that the victim row is the word line of data block 0, the above-mentioned decoding mechanism still causes data block 0, data block 2, data block 4 and data block 6 to be selected, so that some irrelevant word lines are also refreshed in the hammer refresh process, which wastes resources and reduces memory performance.
[0025] An embodiment of the present invention provides a refresh control circuit that reduces the amount of refresh of irrelevant word lines in a hammer refresh operation, thereby reducing the refresh current and refresh power consumption, and further improving the performance of the memory.
[0026] Hereinafter, each embodiment of the present invention will be described in detail with reference to the drawings.
[0027] In one embodiment of the present invention, referring to FIG. 2, a schematic diagram of the structure of a refresh control circuit 10 according to an embodiment of the present invention is shown. The refresh control circuit 10 is connected to a memory array, and as shown in FIG. 2, the refresh control circuit 10 includes: an address output module 11 configured to output a refresh target address signal, the refresh target address signal including a block address signal and a row address signal; a block decoding module 121 configured to receive a block address signal, and perform a decoding process on the block address signal to output a first block selection signal when the memory array is not row hammered, or perform a decoding process on the block address signal to output a second block selection signal when the memory array is row hammered, where the first block selection signal is used to select multiple data blocks from the memory array, and the second block selection signal is used to select one data block from the memory array; and a row decode module 122 configured to receive a row address signal, perform a decoding process on the row address signal, and output a row select signal, which is used to select a target refresh word line from a selected data block.
[0028] It should be noted that the refresh control circuit 10 of the embodiment of the present invention is applied to a dynamic memory and is used to solve the problem of high refresh power consumption in the hammer refresh operation.
[0029] Here, the address output module 11 is configured to output a refresh target address signal, which is used to indicate a word line address that needs to be refreshed. The block decode module 121 and the row decode module 122 together constitute a pre-decode module 12, which is configured to pre-decode the refresh target address signal to obtain a row select signal and a block select signal, which are used to turn on a target refresh word line after undergoing further processing.
[0030] In the embodiment of the present invention, the block selection signal has two types, a first block selection signal and a second block selection signal. In a normal refresh operation (i.e., the memory array does not receive row hammer), the block selection signal is a first block selection signal for selecting multiple data blocks, thereby selecting corresponding word lines from the multiple data blocks to refresh, and in a hammer refresh operation (i.e., the memory array receives row hammer), the block selection signal is a second block selection signal for selecting only one data block, thereby selecting corresponding word lines from one data block to refresh, thereby reducing the amount of refresh of irrelevant word lines, reducing current and power consumption during the hammer refresh process, and improving memory performance.
[0031] It should be noted that the actual meaning of the block address represented by the block address signal can be adjusted according to the actual situation. Specifically, when the selection target is a certain memory bank or half memory bank, the block address signal represents a section obtained by dividing the memory bank in the bit line direction, and as shown in FIG. 1, the upper and lower regions of the address decoding module are both half memory banks, and the two half memory banks constitute one complete bank, and each half memory bank can be divided into eight data blocks. When performing normal refresh, multiple word lines of some sections in the same half bank are refreshed simultaneously, and each section usually has at most one word line. When the selection target is the entire chip, the actual meaning of the block address represented by the block address signal can be a memory bank address, in which case, when performing normal refresh, multiple word lines of some banks in the same chip are refreshed, and each bank usually has at most one word line. Furthermore, when the selection target is the entire chip, the actual meaning represented by the block address signal may include a memory bank address and a section address, in which case, when performing normal refresh, word lines of multiple sections of some banks in the same chip are refreshed, that is, multiple word lines are refreshed simultaneously in any selected bank. In summary, what is represented by the block address signal can be adjusted according to actual needs and subsequent capacity and specification changes, and what is described in this specification is merely exemplary.
[0032] It should be noted that the specific number of data blocks selected by the first block selection signal can be determined according to the actual application scenario. Taking the memory array shown in FIG. 1 as an example, the first block selection signal selects four data blocks each time, but this does not constitute a relevant limitation.
[0033] In some embodiments, as shown in FIG. 3, the block decode module 121: a pre-processing module 21 configured to receive a first row hammer signal, a refresh indication signal and a block address signal, and perform a first pre-processing on the block address signal according to the refresh indication signal to obtain a block pre-selection signal when the first row hammer signal is invalid, or perform a second pre-processing on the block address signal according to the block address signal to obtain a block pre-selection signal when the first row hammer signal is valid; a decoding processing module 22 configured to receive the block pre-selection signal and perform a decoding process on the block pre-selection signal to obtain the first block selection signal or the second block selection signal.
[0034] It should be noted that when the memory array does not receive a row hammer, the first row hammer signal is invalid, and when the memory array receives a row hammer, the first row hammer signal is valid. Furthermore, the refresh instruction signal is used to instruct the execution of a refresh operation.
[0035] In this way, the first row hammer signal is used to distinguish whether the current refresh operation is a normal refresh operation or a hammer refresh operation, and a corresponding pre-processing method is adopted to perform subsequent decoding to obtain the first block selection signal or the second block selection signal, thereby reducing the amount of refresh of unrelated word lines in the hammer refresh operation without affecting the normal refresh operation, and reducing the refresh current and power consumption in the hammer refresh operation.
[0036] In some embodiments, the block address signal includes a first type signal and a second type signal, the first type signal and the second type signal constitute the block address signal, and the block pre-selection signal includes a first signal pair and a second signal pair. a first processing module 211 configured to receive a first type signal, perform logical processing on the first type signal, and output a first signal pair, where the first signal pair includes the first type signal and an inverted signal of the first type signal, and a level state of the first type signal and a level state of the inverted signal of the first type signal are opposite to each other; and a second processing module 212 configured to receive the first row hammer signal, the refresh instruction signal and the second type signal, and perform a first pre-processing or a second pre-processing on the second type signal based on the first row hammer signal and the refresh instruction signal, to output a second signal pair, where the second signal pair includes a second type signal and an inverted signal of the second type signal, when the first row hammer signal is valid, the level state of the second type signal and the level state of the inverted signal of the second type signal are opposite to each other, and when the first row hammer signal is invalid and the refresh instruction signal is valid, the level signals of the second type signal and the inverted signal of the second type signal are both set to a high level state.
[0037] The decoding process of the refresh target address signal will be described in detail below with reference to a specific example. In this example, the refresh target address signal is composed of 16 sub-signals and can be represented as RA<15:0>, where RA<15:13> is a block address signal used to select a data block, and RA<12:0> is a row address signal used to select a word line.
[0038] Referring to FIG. 1, the first type signal is RA <13> , which is processed by the first processing module 211 into a first signal pair (RA13 / RA13B), where RA13 and RA <13> The level status of RA13B and RA <13> The level states are opposite to each other.
[0039] The second type of signal is RA <14> and R.A. <15> , which are processed by the second processing module 212 to become the second signal pairs (RA14 / RA14B, RA15 / RA15B). In a hammer refresh operation, RA14 and RA <14> The level status of RA14B and RA <14> The levels of RA15 and RA <15> The level status of RA15B and RA <15> The level states of RA14, RA14B, RA15, and RA15B are opposite to each other. In a normal refresh operation, RA14, RA14B, RA15, and RA15B are all set to a high level state, which indicates that they are selected. As can be appreciated, in other embodiments, RA14, RA14B, RA15, and RA15B can also be set to other level states to indicate that they are selected.
[0040] In particular, RA13, RA13B, RA14, RA14B, RA15 and RA15B are timing synchronized and therefore jointly perform subsequent decoding.
[0041] First type signal RA <13> It should be understood that the first type signal RA13 and the first type signal RA23 have the same meaning in the circuit, so no additional names are introduced and only symbols are used to distinguish between them. <14> and RA14, R.A. <15> and RA15 are also the same. In addition, in memories with different memory capacities, the number of data blocks in the memory array and the division rules may be different, so the number of data blocks that need to be controlled to be turned on is also different, in which case the data bits of the first type signal and the second type signal need to be adjusted accordingly, and the embodiment of the present invention is merely an example and does not constitute a specific limitation.
[0042] In some embodiments, as shown in FIG. 4, the first processing module 211 includes a first NOT gate, and the input terminal of the first NOT gate receives the first type signal RA <13> and the output terminal of the first NOT gate outputs an inverted signal RA13B of the first type signal.
[0043] It should be noted that the first processing module 211 further includes a first type signal RA <13> By providing a delay device that delays the first type signal RA13 and the inverted first type signal RA13B, it is possible to ensure that the first type signal RA13 and the inverted first type signal RA13B are obtained with synchronized timing.
[0044] It is further noted that in Figure 4, there is only one first type signal, so the number of first NOT gates is one. If there are multiple first type signals, the number of first NOT gates can be multiple to process different first type signals in parallel, or if there are multiple first type signals, there can still be only one first NOT gate, and a delay device processes different first type signals in series, and then another delay device ensures that all the first type signals and the inverted signals of the first type signals are synchronized in timing.
[0045] In some embodiments, as shown in FIG. 5, the second processing module 212 includes: an enable module configured to receive a first row hammer signal RHR and a refresh instruction signal RefreshIP, and output an operation control signal, where when the first row hammer signal RHR is invalid and the refresh instruction signal RefreshIP is valid, the operation control signal is valid, and when the first row hammer signal RHR is valid, the operation control signal is invalid; and a logic module configured to receive an operation control signal and a second type signal, and when the operation control signal is valid, perform a first pre-processing on the second type signal to output a second signal pair, and when the operation control signal is invalid, perform a second pre-processing on the second type signal to output the second signal pair.
[0046] That is, in the process in which the memory array undergoes row hammer, the valid first row hammer signal RHR can disable the refresh instruction signal RefreshIP to obtain an invalid operation control signal, thereby performing a second pre-processing on the second type signal to obtain a second signal pair, and further obtaining a second block decoded signal by decoding, and selecting the word line of only one data block to perform the refresh process, thereby reducing the power consumption of the hammer refresh.
[0047] Similarly, when the number of second type signals is one, the second processing module 212 can include one enable module and one logic module. When the number of second type signals is multiple, as shown in Fig. 5, the enable module and logic module serially process different second type signals, and then another delay device ensures that all second type signals and the inverted signals of the second type signals are synchronized in timing; or when the number of second type signals is multiple, the second processing module 212 can include multiple circuits as shown in Fig. 5, each of which processes one second type signal.
[0048] Due to the diversity of circuit devices, there are many possibilities for the specific configuration of the second processing module, as long as it can realize the above-mentioned circuit logic. The following provides an example of a specific configuration of the second processing module 212.
[0049] In some embodiments, the enable module includes a second NOT gate 301, a first NAND gate 302 and a third NOT gate 303, where an input terminal of the second NOT gate 301 receives a first row hammer signal RHR, a first input terminal of the first NAND gate 302 is connected to an output terminal of the second NOT gate 301, a second input terminal of the first NAND gate 302 receives a refresh instruction signal RefreshIP, an output terminal of the first NAND gate 302 is connected to an input terminal of the third NOT gate 303, and an output terminal of the third NOT gate 303 is used to output an operation control signal.
[0050] In some embodiments, as shown in FIG. 5 , the logic module includes a fourth NOT gate 304, a second NAND gate 305, a fifth NOT gate 306, and a third NAND gate 307, where the fourth NOT gate 304 receives an operation control signal, a first input terminal of the second NAND gate 305 is connected to an output terminal of the fourth NOT gate 304, a second input terminal of the second NAND gate 305 receives a second type signal, an output terminal of the second NAND gate 305 is used for outputting an inverted signal of the second type signal, an input terminal of the fifth NOT gate 306 receives the second type signal, a first input terminal of the third NAND gate 307 is connected to an output terminal of the fourth NOT gate 304, a second input terminal of the third NAND gate 307 is connected to an output terminal of the fifth NOT gate 306, and an output terminal of the third NAND gate 307 is used for outputting a new second type signal.
[0051] It should be noted that the second type signal RA <14> For example, when the first row hammer signal RHR is valid, the operation control signal is invalid, and the RA14B and RA14C output by the second NAND gate 305 are <14> The level states of RA14 and RA15 are opposite to each other, and the level states of RA14 and RA16 are output by the third NAND gate 307. <14> When the first row hammer signal RHR is invalid and the refresh instruction signal RefreshIP is valid, the operation control signal is valid, and the second NAND gate 305 and the third NAND gate 307 both output high level signals, that is, RA14B and RA14 are both set to a high level state.
[0052] In this way, the block pre-selection signals RA13, RA13B, RA14, RA14B, RA15 and RA15B are determined by the pre-processing module 21. In a normal refresh operation, RA14, RA14B, RA15 and RA15B are all set to a high level state. In a hammer refresh operation, in order to accurately select the data block in which the victim row is located, RA14, RA14B, RA15 and RA15B are all not subjected to level setting processing, so that the refresh amount of irrelevant word lines in the hammer refresh operation can be reduced.
[0053] In some embodiments, both the first block select signal and the second block select signal include a plurality of block select sub-signals, wherein the first block select signal has a plurality of block select sub-signals in an active state and the remaining block select sub-signals in an inactive state to select a plurality of data blocks from the memory array, and the second block select signal has one block select sub-signal in an active state and the remaining block select sub-signals in an inactive state to select one data block from the memory array. In other embodiments, the number of active block select sub-signals in the second block select signal can be further controlled to be greater than one and less than the number of active block select sub-signals in the first block select signal.
[0054] Exemplarily, the number of block selection sub-signals may be eight, in which case the first block selection signal and the second block selection signal can both be represented as Region<7:0>. Correspondingly, as shown in Fig. 3 and Fig. 6, the decoding processing module 22 includes a plurality of decoding sub-modules 221 (only one decoding sub-module is marked in Fig. 3 and Fig. 6 for the sake of example). The decoding sub-modules 221 receive partial signals of the block pre-selection signal, and perform logic operations on the received signals to generate one block selection sub-signal (e.g. Region<7:0>). <0> ). It should be understood that the signals received by different decoding sub-modules 221 are different, and the block selection sub-signals output by different decoding sub-modules 221 are different.
[0055] Here, if the logical operation result is a predetermined value, the block selection sub-signal output by the decoding sub-module 221 is in a valid state. Exemplarily, the predetermined value may be 1 (high level signal).
[0056] In some embodiments, as shown in FIG. 6 , the decoding sub-module 221 includes a fourth NAND gate and a sixth NOT gate, where the input terminal of the fourth NAND gate is used to receive a partial signal of the block pre-selection signal, the output terminal of the fourth NAND gate is connected to the input terminal of the sixth NOT gate, and the output terminal of the sixth NOT gate is used to output the block selection sub-signal.
[0057] It should be noted that the specific signal received by each decoding sub-module 221 needs to be performed according to the actual decoding rules, and Fig. 6 is just an example. Assuming that RA<15:13>=000, when no low hammer is received, RA15=RA15B=RA14=RA14B=1, RA13=0, RA13B=1, in this case, Region <0> =Region <2> =Region <4> =Region <6> = 1 (corresponding to a valid state). In other words, when data block 0, data block 2, data block 4, and data block 6 are selected and a low hammer is received, RA15 = 0, RA15B = 1, RA14 = 0, RA14B = 1, RA13 = 0, and RA13B = 1. In this case, Region <0> =1, that is, only data block 0 is selected. As can be seen from this, the refresh control circuit according to the embodiment of the present invention can select only the data block in which the victim row is located when performing hammer refresh, thereby reducing the refresh of unrelated word lines and reducing power consumption.
[0058] In some embodiments, as shown in FIG. 7, the address output module 11 is specifically configured to receive a normal refresh address signal RefRa<15:0> and an activation address signal RaExt<15:0>, and output the normal refresh address signal RefRa<15:0> as the refresh target address signal RA<15:0> when the memory array has not received a row hammer, or output the refresh target address signal RA<15:0> based on the activation address signal RaExt<15:0> when the memory array has received a row hammer.
[0059] It should be noted that the normal refresh address signal RefRa<15:0> refers to the address signal in the normal refresh operation, and the activation address signal RaExt<15:0> refers to the address signal in the activation operation. It should be understood that row hammer refers to the activation times of a certain word line address in a unit time reaching a threshold. That is, when the number of times that the same activation address signal RaExt<15:0> appears in a unit time reaches a threshold, it is confirmed that the memory array is subjected to row hammer, and the activation address signal RaExt<15:0> is also the address signal of the aggressor row. In particular, in the row hammer scenario, the victim row is the adjacent row of the aggressor row, so the refresh target address signal RA<15:0> needs to be further determined according to the activation address signal RaExt<15:0>.
[0060] In some embodiments, as shown in FIG. 7, the address output module 11 includes: a control module configured to receive an activation address signal RaExt<15:0>, a second row hammer signal RHRSeedSample and a first control signal RHRRaCtrl, and when the second row hammer signal RHRSeedSample is valid, perform a calculation process on the activation address signal RaExt<15:0> according to the first control signal RHRRaCtrl, and output a victim address signal RHRRa<15:0>; and a selection module 113 configured to receive a normal refresh address signal RefRa<15:0>, a victim address signal RHRRa<15:0> and a second control signal SelCtrl, and output the normal refresh address signal RefRa<15:0> as the refresh target address signal RA<15:0> when the second control signal SelCtrl is in a first state, or output the victim address signal RHRRa<15:0> as the refresh target address signal RA<15:0> when the second control signal SelCtrl is in a second state. Furthermore, in order to finally determine the target refresh word line, the pre-decoding circuit 12 performs pre-decoding on the refresh target address signal RA<15:0> to obtain a row selection signal (such as Ra210<7:0>, Ra453<7:0>... in FIG. 7) and a block selection signal Region<7:0>.
[0061] Here, the victim address signal RHRRa<15:0> is used to indicate a victim row in the row hammer, the second row hammer signal RHRSeedSample indicates that the memory array has been subjected to row hammer, and the first control signal RHRRaCtrl is used to control the related calculation process. In particular, the second row hammer signal RHRSeedSample, the first control signal RHRRaCtrl, the second control signal SelCtrl, and the above-mentioned first row hammer signal RHR are all related to whether the memory array has been subjected to row hammer, and since the positions of these signals in the circuit are different, the change logic of these signals also needs to consider the timing, and therefore there may not be a fixed logical relationship between them.
[0062] In some embodiments, the control module includes a latch 111 and a calculation module 112, where an input terminal of the latch 111 receives an activation address signal RaExt<15:0>, a clock terminal of the latch 111 receives a second row hammer signal RHRSeedSample, an output terminal of the latch 111 is connected to an input terminal of the calculation module 112, a control terminal of the calculation module 112 receives a first control signal RHRRaCtrl, a first input terminal of the selection module 113 receives a normal refresh address signal RefRa<15:0>, a second input terminal of the selection module 113 is connected to an output terminal of the calculation module 112, a control terminal of the selection module 113 is connected to a second control signal SelCtrl, and an output terminal of the selection module 113 is used to output a refresh target address signal RA<15:0>.
[0063] In this way, when the second row hammer signal RHRSeedSample is valid, the latch 111 latches the activation address signal RaExt<15:0> and outputs the hammer address signal RHRSeedRa<15:0>, while when the first control signal RHRRaCtrl is valid, the calculation module 112 calculates the victim address signal RHRRa<15:0> according to the hammer address signal RHRSeedRa<15:0>. Here, the latch 111 further includes a reset terminal, and performs a reset operation when receiving a reset signal ResetN.
[0064] It should be noted that the activation address signal RaExt<15:0> may be a row address signal that is accessed the most or relatively frequently and can cause the Row Hammer effect, or it may be a newly received activation address signal after the Row Hammer effect occurs, in which case the newly received activation address signal is used as the row address signal that causes the Row Hammer effect.
[0065] 7, the selection module 113 further includes a third input terminal, and the third input terminal of the selection module 113 is connected to the activation address signal RaExt<15:0>. Correspondingly, when the second control signal SelCtrl is in a third state, the selection module 113 can output the activation address signal RaExt<15:0>, and can perform a task in a special case.
[0066] In the embodiment of the present invention, "valid" or "invalid" is distinguished according to the level state of a signal. For example, a signal being valid can refer to the signal being in a high level state, and a signal being invalid can refer to the signal being in a low level state, or a signal being valid can refer to the signal being in a low level state, and a signal being invalid can refer to the signal being in a high level state, which depends on the actual application scenario, as long as it can comply with the corresponding circuit logic and perform the corresponding circuit function.
[0067] In summary, the embodiment of the present invention provides a refresh control circuit, which selects only the data block where the victim row is located in the hammer refresh operation, thereby reducing the current and power consumption of the hammer refresh. Referring to Figure 8, a schematic diagram of the structure of the second processing module is shown. As shown in Figure 8, a plurality of data blocks can be selected by setting some block selection signals and their inverted signals (RA14, RA14B, RA15, RA15B) to high level signals through the refresh instruction signal RefreshIP, and then a target refresh word line can be selected from the plurality of data blocks to perform a refresh operation. In an embodiment of the present invention, as shown in FIG. 5, an enable module is added to the second processing module 212, and a first row hammer signal is introduced to identify whether the current refresh operation is a hammer refresh operation. A valid first row hammer signal is used to protect the victim row address, that is, the valid first row hammer signal can disable the refresh instruction signal RefreshIP, and release the control of some block selection signals of the refresh instruction signal RefreshIP so that all block selection signals and their inverted signals retain their original control logic, thereby accurately decode the data block in which the victim row is located, and only refresh the victim row, thereby reducing the hammer refresh current.
[0068] In another embodiment of the present invention, refer to Figure 9, which shows an exemplary flowchart of a refresh control method according to an embodiment of the present invention. As shown in Figure 9, the method includes the following steps:
[0069] In step S401, a refresh target address signal is determined, and the refresh target address signal includes a block address signal and a row address signal.
[0070] In step S402, if the memory array has not received a row hammer, a decoding process is performed on the block address signal to obtain a first block selection signal; if the memory array has received a row hammer, a decoding process is performed on the block address signal to obtain a second block selection signal, where the first block selection signal is used to select multiple data blocks from the memory array, and the second block selection signal is used to select one data block from the memory array.
[0071] In step S403, a decoding process is performed on the row address signal to obtain a row select signal, which is used to select a target refresh word line from the selected data block.
[0072] In step S404, a refresh process is performed on the target refresh word line.
[0073] It should be noted that the refresh control method according to the embodiment of the present invention is applied to the above-mentioned refresh control circuit 10, and the refresh control circuit 10 is connected to the memory array. In this way, when the memory array receives row hammer, a target refresh word line is selected from only one data block to perform the refresh process, thereby reducing the refresh amount of irrelevant word lines, reducing the refresh current and power consumption during the hammer refresh process, and improving the performance of the memory.
[0074] In some embodiments, step S402 may specifically include the following steps:
[0075] A first row hammer signal and a refresh instruction signal are determined, where when the memory array does not receive a row hammer, the first row hammer signal is invalid, and when the memory array receives a row hammer, the first row hammer signal is valid, and when the first row hammer signal is invalid, a first pre-processing is performed on the block address signal based on the refresh instruction signal to obtain a block pre-selection signal, or when the first row hammer signal is valid, a second pre-processing is performed on the block address signal to obtain a block pre-selection signal, and a decoding process is performed on the block pre-selection signal to obtain a first block selection signal or a second block selection signal.
[0076] In some embodiments, the block address signal includes a first type signal and a second type signal, and the block preselect signal includes a first signal pair and a second signal pair, where (1) the first signal pair includes a first type signal and an inverted signal of the first type signal, and a level state of the first type signal and a level state of the inverted signal of the first type signal are opposite to each other, and (2) the second signal pair includes a second type signal and an inverted signal of the second type signal, and when the first row hammer signal is valid, a level state of the second type signal and a level state of the inverted signal of the second type signal are opposite to each other, and when the first row hammer signal is invalid and the refresh indication signal is valid, the level signals of the second type signal and the inverted signal of the second type signal are both set to a high level state.
[0077] In some embodiments, both the first block select signal and the second block select signal include multiple block select sub-signals, and in the first block select signal, multiple block select sub-signals are in an enable state and the remaining block select sub-signals are in an disable state to select multiple data blocks from the memory array, and in the second block select signal, one block select sub-signal is in an enable state and the remaining block select sub-signals are in an disable state to select one data block from the memory array.
[0078] In some embodiments, determining the refresh target address signal comprises the following steps.
[0079] A normal refresh address signal and an activation address signal are received, and if the memory array has not received a row hammer, a normal refresh address signal is output as the refresh target address signal, or if the memory array has received a row hammer, a refresh target address signal is output based on the activation address signal.
[0080] It should be noted that when the memory array undergoes row hammer, the activation address signal is used to indicate the aggressor row in the row hammer, and the refresh target address signal is used to indicate the victim row in the row hammer, so in this scenario, the refresh target address signal needs to be calculated based on the activation address signal.
[0081] An embodiment of the present invention provides a refresh control method, which, when a memory array receives a row hammer, selects a target refresh word line from only one data block to perform a refresh process, thereby reducing the amount of refresh of unrelated word lines, reducing the current and power consumption during the hammer refresh process, and improving memory performance.
[0082] In another embodiment of the present invention, referring to Fig. 10, a schematic diagram of a structure of a memory 50 according to an embodiment of the present invention is shown. As shown in Fig. 10, the memory 50 includes the above-mentioned refresh control circuit 10 and a memory array 501, and the refresh control circuit 10 is connected to the memory array 501.
[0083] In the case of memory 50, when the memory array is subjected to row hammer, the refresh control circuit 10 can select a target refresh word line from only one data block to perform the refresh process, thereby reducing the amount of refresh of unrelated word lines, reducing the current and power consumption during the hammer refresh process, and improving the performance of the memory.
[0084] The above are only preferred embodiments of the present invention, and do not limit the scope of protection of the present invention. It should be noted that in the embodiments of the present invention, "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, whereby a process, method, item or apparatus including a set of elements not only includes those elements, but also includes other elements not expressly listed, or includes the inherent elements of these processes, methods, items or apparatus. Unless otherwise limited, an element limited by the phrase "includes" does not exclude the presence of other similar elements in the process, method, item or apparatus including the element. The above order of the embodiments of the present invention does not represent the superiority or inferiority of the embodiments, but is for convenience of description. The methods disclosed in some method embodiments provided in the present invention can be arbitrarily combined without conflict to obtain new method embodiments. The features disclosed in some product embodiments provided in the present invention can be arbitrarily combined without conflict to obtain new product embodiments. The features disclosed in some method or device embodiments provided in the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments. The above is only a specific embodiment of the present invention, and the protection scope of the present invention is not limited thereto, and any modifications or replacements that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims. [Industrial Applicability]
[0085] An embodiment of the present invention provides a refresh control circuit and a control method thereof, and a memory, which can reduce the amount of refresh of irrelevant word lines in a hammer refresh operation, thereby reducing refresh current and refresh power consumption, and further improving memory performance.
Claims
1. a refresh control circuit coupled to the memory array, comprising: an address output module configured to output refresh target address signals, the refresh target address signals including a block address signal and a row address signal; a block decode module configured to receive the block address signal, and perform a decoding process on the block address signal to output a first block select signal if the memory array has not been row hammered, or perform a decoding process on the block address signal to output a second block select signal if the memory array has been row hammered, where the first block select signal is used to select a plurality of data blocks from the memory array, and the second block select signal is used to select one data block from the memory array; a row decode module configured to receive the row address signal, perform a decoding process on the row address signal, and output a row select signal, the row select signal being used to select a target refresh word line from a selected data block.
2. The block decoding module includes: a pre-processing module configured to receive a first row hammer signal, a refresh indication signal and the block address signal, and perform a first pre-processing on the block address signal according to the refresh indication signal to obtain a block pre-selection signal when the first row hammer signal is invalid, or perform a second pre-processing on the block address signal according to the block address signal to obtain the block pre-selection signal when the first row hammer signal is valid; a decoding processing module configured to receive the block pre-selection signal and perform a decoding process on the block pre-selection signal to obtain the first block selection signal or the second block selection signal; When the memory array is not subjected to a row hammer, the first row hammer signal is invalid, and when the memory array is subjected to a row hammer, the first row hammer signal is valid.
2. The refresh control circuit of claim 1.
3. the block address signals include a first type signal and a second type signal, and the block preselect signals include a first signal pair and a second signal pair; The pre-processing module includes: a first processing module configured to receive the first type signal, perform logical processing on the first type signal, and output the first signal pair, the first signal pair including a first type signal and an inverted signal of the first type signal, and a level state of the first type signal and a level state of the inverted signal of the first type signal are opposite to each other; a second processing module configured to receive the first row hammer signal, the refresh instruction signal, and the second type signal, and perform the first pre-processing or the second pre-processing on the second type signal based on the first row hammer signal and the refresh instruction signal, and output the second signal pair; the second signal pair includes a second type signal and an inverted signal of the second type signal, and when the first row hammer signal is valid, the level states of the second type signal and the inverted signal of the second type signal are opposite to each other, and when the first row hammer signal is invalid and the refresh instruction signal is valid, the level signals of the second type signal and the inverted signal of the second type signal are both set to a high level state; 3. The refresh control circuit of claim 2.
4. the first processing module includes a first NOT gate, an input terminal of the first NOT gate receives the first type signal, and an output terminal of the first NOT gate outputs an inverted signal of the first type signal; 4. The refresh control circuit according to claim 3.
5. The second processing module is an enable module configured to receive a first row hammer signal and the refresh instruction signal and output an operation control signal, where the operation control signal is valid when the first row hammer signal is invalid and the refresh instruction signal is valid, and the operation control signal is invalid when the first row hammer signal is valid; a logic module configured to receive the operation control signal and the second type signal, and, if the operation control signal is valid, perform the first pre-processing on the second type signal to output the second signal pair, and, if the operation control signal is invalid, perform the second pre-processing on the second type signal to output the second signal pair.
4. The refresh control circuit according to claim 3.
6. the enable module includes a second NOT gate, a first NAND gate, and a third NOT gate; an input terminal of the second NOT gate receives the first row hammer signal, a first input terminal of the first NAND gate is connected to an output terminal of the second NOT gate, a second input terminal of the first NAND gate receives the refresh instruction signal, an output terminal of the first NAND gate is connected to an input terminal of the third NOT gate, and an output terminal of the third NOT gate is used to output the operation control signal; 6. The refresh control circuit according to claim 5.
7. the logic module includes a fourth NOT gate, a second NAND gate, a fifth NOT gate, and a third NAND gate; the fourth NOT gate receives the operation control signal, a first input terminal of the second NAND gate is connected to an output terminal of the fourth NOT gate, a second input terminal of the second NAND gate receives the second type signal, and an output terminal of the second NAND gate is used to output an inverted signal of the second type signal; an input terminal of the fifth NOT gate receives the second type signal, a first input terminal of the third NAND gate is connected to an output terminal of the fourth NOT gate, a second input terminal of the third NAND gate is connected to an output terminal of the fifth NOT gate, and an output terminal of the third NAND gate is used to output a new second type signal; 6. The refresh control circuit according to claim 5.
8. both the first block select signal and the second block select signal include a plurality of block select sub-signals; a first block select signal having a plurality of the block select sub-signals in an active state and remaining block select sub-signals in an inactive state for selecting a plurality of data blocks from the memory array; In order to select one data block from the memory array, in the second block selection signal, one of the block selection sub-signals is in an active state and the remaining of the block selection sub-signals is in an inactive state.
3. The refresh control circuit of claim 2.
9. The decoding processing module comprises a plurality of decoding sub-modules; the decoding sub-modules are configured to receive partial signals of the block pre-selection signal, and perform a logical operation on the received signals to output one of the block selection sub-signals, and the signals received by different decoding sub-modules are different; If the logical operation result is a predetermined value, the block selection sub-signal output by the decoding sub-module is in a valid state; 9. The refresh control circuit of claim 8.
10. The address output module is specifically configured to receive a normal refresh address signal and an activation address signal, and output the normal refresh address signal as the refresh target address signal when the memory array is not subjected to row hammer, or output the refresh target address signal according to the activation address signal when the memory array is subjected to row hammer.
2. The refresh control circuit of claim 1.
11. The address output module includes: a control module configured to receive the activation address signal, a second row hammer signal, and a first control signal, and when the second row hammer signal is valid, perform a calculation on the activation address signal based on the first control signal to output a victim address signal; a selection module configured to receive the normal refresh address signal, the victim address signal, and a second control signal, and to output the normal refresh address signal as the refresh target address signal when the second control signal is in a first state, or to output the victim address signal as the refresh target address signal when the second control signal is in a second state; the second row hammer signal indicates that the memory array has been subjected to a row hammer; 11. The refresh control circuit of claim 10.
12. the control module comprises a latch and a calculation module; an input terminal of the latch receives the activation address signal, a clock terminal of the latch receives the second row hammer signal, an output terminal of the latch is connected to an input terminal of the computing module, and a control terminal of the computing module receives the first control signal; A first input terminal of the selection module receives the normal refresh address signal, a second input terminal of the selection module is connected to an output terminal of the calculation module, a control terminal of the selection module is connected to the second control signal, and an output terminal of the selection module is used for outputting the refresh target address signal; 12. The refresh control circuit of claim 11.
13. 1. A refresh control method applied to a refresh control circuit, the refresh control circuit being connected to a memory array, the refresh control method comprising: determining a refresh target address signal, the refresh target address signal including a block address signal and a row address signal; performing a decoding process on the block address signal to obtain a first block selection signal when the memory array is not row hammered, and performing a decoding process on the block address signal to obtain a second block selection signal when the memory array is row hammered, the first block selection signal being used to select a plurality of data blocks from the memory array, and the second block selection signal being used to select one data block from the memory array; performing a decoding process on the row address signal to obtain a row select signal, the row select signal being used to select a target refresh word line from a selected data block; and performing a refresh process on the target refresh word line.
14. A memory comprising a refresh control circuit according to any one of claims 1 to 12 and a memory array, the refresh control circuit being connected to the memory array.
Citation Information
Patent Citations
Memory device and data refresh method thereof
JP2019125405A
Refresh command control for host assist of row hammer mitigation
JP2020166832A
Refresh control circuit and method for semiconductor memory device
US20120163111A1
Semiconductor memory device and memory system having the same
US20190333573A1
Semiconductor device performing row hammer refresh operation
US20200211634A1
