Refresh control circuit and memory
By designing a refresh control circuit in memory, and using refresh counters and reset circuits to achieve protection refresh of row hammers, the problem of row hammer vulnerability in memory is solved, and data retention capabilities and protection flexibility are improved.
Patent Information
- Application Number
- CN202310562796.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2043-05-16
AI Technical Summary
As the memory size is reduced and the integration is improved, interference between adjacent memory units leads to row hammering vulnerabilities. The existing technology is difficult to effectively prevent error flips of storage unit data, and the automatic refresh solution is not flexible enough, which increases the number of refresh commands and Total duration.
Design a refresh control circuit, including a refresh counter, a reset circuit and a control circuit, by counting the row activation window signal and the refresh window signal, reset is performed when the counting result reaches the preset number, and the counting result is within the preset range. Output the protection refresh window signal to perform hammer protection refresh during the effective level period of the refresh window signal. It supports setting preset times and ranges to adjust the protection refresh frequency.
It realizes flexible and reliable row hammer protection refresh, improves the data retention ability and protection flexibility of the memory, reduces unnecessary protection processing, and improves the overall performance of the memory.
Smart Images

Figure CN119028395A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to memory technology, and in particular to a refresh control circuit and a memory. Background Art
[0002] With the development of memory technology, memories are widely used in various fields. For example, dynamic random access memory (DRAM) is widely used.
[0003] In practical applications, as the size of memory becomes smaller and smaller and the integration becomes higher and higher, interference between adjacent memory cells may cause row hammer (RH) vulnerability. Specifically, RH vulnerability means that when a certain memory cell of the memory is repeatedly read and written, the data in other memory cells may be flipped. Therefore, it is necessary to provide an effective refresh control scheme to control the execution of RH protection operation to avoid erroneous flipping of memory cells in the memory. Summary of the invention
[0004] Embodiments of the present application provide a refresh control circuit and a memory.
[0005] According to some embodiments, the first aspect of the present application provides a refresh control circuit, including: a refresh counter, which receives an activation command, a row activation window signal and a refresh window signal, and is used to count the pulses of the row activation window signal within the effective level period of the refresh window signal and within the effective level period of the enable signal, and output the counting result; and, in response to a periodic reset signal, perform a counting reset; wherein the enable signal is generated based on the activation command and the periodic reset signal; a reset circuit, wherein the input end of the reset circuit is connected to the output end of the refresh counter, and the output end of the reset circuit is connected to the reset end of the refresh counter, and is used to output a periodic reset signal when the counting result currently output by the refresh counter reaches a preset number of times; a control circuit, wherein the input end of the control circuit is connected to the output end of the refresh counter, and is used to output a protection refresh window signal according to the counting result currently output by the refresh counter; wherein, when the counting result is within a preset range, the protection refresh window signal is at a valid level.
[0006] In some embodiments, a refresh counter includes: an enable circuit, a detection circuit, a pulse generating circuit and a counter; an enable circuit, receiving an activation command and a periodic reset signal, for generating an enable signal based on the activation command and the periodic reset signal; wherein the activation command controls the starting time of the effective level of the enable signal, and the periodic reset signal controls the ending time of the effective level of the enable signal; a detection circuit, receiving an enable signal, a row activation window signal and a refresh window signal, for detecting whether the pulse of the row activation window signal is within the effective level period of the refresh window signal and within the effective level period of the enable signal; if so, outputting a pulse of the row activation window signal; a pulse generating circuit, connected to the output end of the detection circuit, for outputting a valid counting clock in response to the arrival of a pulse of the row activation window signal output by the detection circuit; a clock end of the counter is connected to the output end of the pulse generating circuit, and a reset end of the counter is connected to the reset circuit, for accumulating counts in response to the effective counting clock and outputting counting results; and, performing a counting reset in response to the periodic reset signal.
[0007] In some embodiments, the detection circuit includes: a first AND gate; the first input terminal of the first AND gate receives a refresh window signal, the second input terminal of the first AND gate receives a row activation window signal, the third input terminal of the first AND gate is connected to the output terminal of the enable circuit, and the output terminal of the first AND gate is connected to the pulse generating circuit.
[0008] In some embodiments, the enabling circuit includes: a first NOT gate, a second NOT gate, a first NAND gate and a second NAND gate; the input end of the first NOT gate receives an activation command, and the output end of the first NOT gate is connected to the first input end of the first NAND gate; the input end of the second NOT gate receives a periodic reset signal, and the output end of the second NOT gate is connected to the first input end of the second NAND gate; the second input end of the first NAND gate is connected to the output end of the second NAND gate, and the output end of the first NAND gate is connected to the third input end of the first AND gate; the second input end of the second NAND gate is connected to the output end of the first NAND gate.
[0009] In some embodiments, a pulse generating circuit includes: a third NOT gate, a delay unit and a second AND gate; the first input end of the second AND gate is connected to the output end of the detection circuit, and the second input end of the second AND gate is connected to the output end of the delay unit; the input end of the third NOT gate is connected to the output end of the detection circuit, and the output end of the third NOT gate is connected to the input end of the delay unit, and the delay time of the delay unit is used to control the pulse width of the counting clock; the output end of the second AND gate is connected to the clock end of the counter as the output end of the pulse generating circuit.
[0010] In some embodiments, the counter includes: multiple stages of first triggers; the clock terminal of the first stage first trigger is connected to the output terminal of the pulse generating circuit, and the clock terminals of other first triggers are connected to the inverting output terminal of the previous stage first trigger; the input terminal of each first trigger is connected to the inverting output terminal of the first trigger, and the value outputted by the in-phase output terminal of each stage first trigger constitutes the output of the counter, which is a binary representation of the counting result; the reset terminal of each first trigger is connected to the output terminal of the reset circuit.
[0011] In some embodiments, the reset circuit includes: a reset generation circuit and an output circuit; the reset generation circuit is connected to the output end of the refresh counter and receives a period setting signal, and is used to output an initial reset signal to the output circuit when the counting result output by the refresh counter reaches a preset number of times corresponding to the period setting signal; the input end of the output circuit is connected to the output end of the reset generation circuit, and the output circuit is used to output the initial reset signal as a period reset signal in response to the end of the pulse of the row activation window signal during the effective level period of the refresh window signal.
[0012] In some embodiments, the period setting signal includes two bits, and the preset number includes four values, which are respectively recorded as a first number, a second number, a third number, and a fourth number.
[0013] In some embodiments, the reset generation circuit includes: a cycle decoding circuit, the cycle decoding circuit receives a cycle setting signal, and is used to output a selection signal for a first number, a selection signal for a second number, a selection signal for a third number, and a selection signal for a fourth number according to the cycle setting signal; a sub-decoder corresponding to each number; each sub-decoder receives at least one bit of the counting result, and is used to output a flag signal of the number when the value currently represented by the at least one received bit is consistent with the number corresponding to the sub-decoder; a third AND gate corresponding to each number; each third AND gate receives a selection signal for the corresponding number and a flag signal for the corresponding number; an OR operation unit, the input end of the OR operation unit is respectively connected to the output ends of all the third AND gates, and the output end of the OR operation unit is used to output an initial reset signal.
[0014] In some embodiments, the cycle decoding circuit includes: a first NOR gate, a first input terminal of the first NOR gate receives a bit of the cycle setting signal, a second input terminal of the first NOR gate receives another bit of the cycle setting signal, and the first NOR gate is used to output a selection signal for the first number; a fourth NOR gate and a second NOR gate, an input terminal of the fourth NOR gate is connected to the first input terminal of the first NOR gate, an output terminal of the fourth NOR gate is connected to the first input terminal of the second NOR gate, a second input terminal of the second NOR gate is connected to the second input terminal of the first NOR gate, and the second NOR gate is used to output a selection signal for the second number; a fifth NOR gate and a third NOR gate, the first input end of the third NOR gate is connected to the first input end of the first NOR gate, the input end of the fifth NOR gate is connected to the second input end of the first NOR gate, the output end of the fifth NOR gate is connected to the second input end of the third NOR gate, and the third NOR gate is used to output a selection signal for the third number; a third NAND gate and a sixth NOR gate, the first input end of the third NAND gate is connected to the first input end of the first NOR gate, the second input end of the third NAND gate is connected to the second input end of the first NOR gate, the output end of the third NAND gate is connected to the input end of the sixth NOR gate, and the sixth NOR gate is used to output a selection signal for the fourth number.
[0015] In some embodiments, the sub-decoder corresponding to the first number includes a fourth AND gate; the input end of the fourth AND gate receives the 3rd bit and the 2nd bit of the counting result respectively, and the output end of the fourth AND gate is used to output the flag signal of the first number; the sub-decoder corresponding to the second number includes a fifth AND gate; the input end of the fifth AND gate receives the 4th bit and the 3rd bit of the counting result respectively, and the output end of the fifth AND gate is used to output the flag signal of the second number; the sub-decoder corresponding to the third number includes a sixth AND gate; the input end of the sixth AND gate receives the 5th bit and the 2nd bit of the counting result respectively, and the output end of the sixth AND gate is used to output the flag signal of the third number; the sub-decoder corresponding to the fourth number includes a seventh AND gate; the input end of the seventh AND gate receives the 5th bit and the 4th bit of the counting result respectively, and the output end of the seventh AND gate is used to output the flag signal of the fourth number.
[0016] In some embodiments, the output circuit includes: a seventh NOT gate, an input end of the seventh NOT gate receiving a row activation window signal; an eighth AND gate, a first input end of the eighth AND gate receiving a refresh window signal, and a second input end of the eighth AND gate connected to an output end of the seventh NOT gate; a second trigger, an input end of the second trigger connected to an output end of a reset generation circuit, an output end of the second trigger connected to a reset end of a refresh counter, and a clock end of the second trigger connected to an output end of the eighth AND gate.
[0017] In some embodiments, the preset range is 4 to 6.
[0018] In some embodiments, the control circuit includes: a first multi-input AND gate, a second multi-input AND gate, a third multi-input AND gate and a first multi-input OR gate; the first multi-input AND gate has multiple input terminals, and the multiple input terminals of the first multi-input AND gate respectively receive the inverted signal of the first bit, the inverted signal of the second bit and the third bit of the counting result; the second multi-input AND gate has multiple input terminals, and the multiple input terminals of the second multi-input AND gate respectively receive the first bit, the inverted signal of the second bit and the third bit of the counting result; the third multi-input AND gate has multiple input terminals, and the multiple input terminals of the third multi-input AND gate respectively receive the inverted signal of the first bit, the second bit and the third bit of the counting result; the first input terminal of the first multi-input OR gate is connected to the output terminal of the first multi-input AND gate, the second input terminal of the first multi-input OR gate is connected to the output terminal of the second multi-input AND gate, the third input terminal of the first multi-input OR gate is connected to the output terminal of the third multi-input AND gate, and the output terminal of the first multi-input OR gate is used to output a protection refresh window signal.
[0019] According to some embodiments, the second aspect of the present application provides a memory, including: an instruction decoder, a refresh operation module, a storage block control module and a refresh control circuit as described above; the instruction decoder is used to parse and generate activation commands and refresh instructions according to external instructions; the refresh operation module is connected to the instruction decoder, and is used to output a refresh window signal and a row activation window signal in response to the refresh instruction; the refresh control circuit is connected to the instruction decoder, the refresh operation module and the storage block control module, and is used to output a protection refresh window signal according to the activation command, the refresh window signal and the row activation window signal; the storage block control module is connected to the refresh control circuit and the refresh operation module, and is used to perform a refresh in response to the signal output by the refresh operation module, and to perform a row hammer protection refresh in response to the protection refresh window signal.
[0020] The refresh control circuit and memory provided in the embodiments of the present application include a refresh counter, a reset circuit, and a control circuit. The refresh counter counts the pulses of the row activation window signal within the effective level period of the refresh window signal and the enable signal, and outputs the counting result. When the counting result reaches a preset number of times, the reset circuit instructs the refresh counter to reset, and when the counting result is within a preset range, the control circuit outputs a valid protection refresh window signal to perform a row hammer protection refresh within the effective level period of the protection refresh window signal. The above scheme can realize row hammer protection refresh, and based on the support for setting a preset number of times and a preset range in this scheme, a certain number of refreshes can be selected in each round of preset number of refreshes to perform row hammer protection refresh, so that while realizing row hammer protection refresh, the execution frequency of protection refresh can be adjusted to improve the flexibility of row hammer protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the embodiments of the present application.
[0022] Figure 1 An example diagram of a memory architecture according to an embodiment;
[0023] Figure 2 A structural diagram of a storage unit according to an embodiment of the present invention;
[0024] Figure 3 An example situation where hammering occurs;
[0025] Figure 4 is a structural schematic diagram of an exemplary refresh control circuit;
[0026] Figure 5 is a timing diagram of different signals of an example;
[0027] Figure 6 is a timing diagram of an example;
[0028] Figure 7 A schematic diagram of the structure of a refresh counter of an example;
[0029] Figure 8 A schematic diagram of the structure of a refresh counter of an example;
[0030] Fig. 9 A schematic diagram of the structure of a refresh counter of an example;
[0031] Fig.10 is a timing diagram of an example;
[0032] Fig.11 A schematic diagram of the structure of a counter of an example;
[0033] Fig.12 is an example diagram of the counting process;
[0034] Fig.13 is a schematic diagram of a reset circuit of an example;
[0035] Fig.14 is a schematic structural diagram of an exemplary periodic decoding circuit;
[0036] Fig.15 is a schematic diagram of the structure of a sub-decoder of an example;
[0037] Fig.16 is a schematic diagram of the structure of an exemplary control circuit;
[0038] Fig.17 A diagram showing an example structure of a memory device.
[0039] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0040] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.
[0041] The terms "including" and "having" in this application are used to express an open-ended inclusive meaning, and mean that there may be other elements / components / etc. in addition to the listed elements / components / etc.; the terms "first" and "second" are used only as marks or distinctions, and are not intended to limit the order or quantity of their objects. In addition, the different elements and regions in the drawings are only schematically shown, and are therefore not limited to the sizes or distances shown in the drawings.
[0042] The technical solution is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0043] The technical solution is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.
[0044] Figure 1 FIG. 1 is an example diagram of a memory architecture shown in an embodiment, such as Figure 1 As shown, taking DRAM as an example, it includes data input / output buffer, row decoder, column decoder, sense amplifier and storage array. Among them, the data input / output buffer belongs to the peripheral area circuit, and the sense amplifier, row decoder, column decoder and storage array belong to the array area circuit. The storage array is mainly composed of word lines, bit lines and storage cells. The word lines in the storage array extend in the row direction, and the bit lines in the storage array extend in the column direction. The intersection of the word lines and the bit lines is the storage cell of the storage array.
[0045] Each storage unit is used to store one bit of data. Figure 2 As shown, Figure 2This is a structural example diagram of a memory cell according to an embodiment, and the memory cell is mainly composed of a transistor switch M and a capacitor C. The capacitor is used to store data, and the transistor switch is used to turn off or on according to the selected state.
[0046] A certain storage cell can be activated by controlling the word line and the bit line to access the storage cell. Take the read scenario as an example: when the data in the storage cell needs to be read, the word line of the row where the storage cell is located can be selected through the row decoder, and accordingly, the transistor M in the diagram is turned on, and the state of the capacitor C at this time can be sensed by sensing and amplifying the bit line signal. For example, if the bit data stored in the storage cell is 1, then after the transistor M is turned on, 1 will be read from the bit line of the storage cell, and vice versa. In addition, take the write scenario as an example: when bit data needs to be written to a certain storage cell, such as writing 1. The word line of the row where the storage cell is located can be selected through the row decoder, and the corresponding transistor M in the diagram is turned on, and by setting the logic level of the bit line to 1, the capacitor C is charged, that is, 1 is written to the storage cell. Conversely, if 0 is to be written, the logic level of the bit line is set to 0, so that the capacitor C is discharged, that is, 0 is written to the storage cell.
[0047] Combined with the above, it can be seen that when the processor needs to read data from the memory, it will first activate the row address where the data is located, read the row of data under the row address into the sense amplifier, and then activate the column address where the data is located, read the data under the column address from the sense amplifier and feed it back to the processor. At the same time, in order to ensure that data is not lost due to data reading, after reading the data, the data in the sense amplifier needs to be written back to the storage unit. In recent years, with the higher demand for computer storage in production and life, equipment manufacturers hope to store more data without changing the size of the circuit board area. Therefore, the density of the storage unit can only be made larger and larger, and the interval between adjacent storage units is getting smaller and smaller, which may cause mutual interference between each other. For example, if the number of read and write times for the same address is large enough, it may cause the bits of adjacent rows to flip, that is, the originally stored 0 becomes 1, or the originally stored 1 becomes 0.
[0048] Further integration Figure 3 For example, Figure 3 For example, a hammer strike occurs when Figure 3As shown in the figure, when an attacker hammers a specific row of the memory, such as hammering the row filled with shade in the figure, the data in the memory cells near the row may be flipped. This is because, with the increasing manufacturing precision of DRAM, the components are getting smaller and smaller at the physical level, and electromagnetic interference is prone to occur between adjacent memory cells. This situation makes it possible for reading and writing a single area of the memory to interfere with adjacent areas, causing current to flow into or out of adjacent memory cells. If a large number of reads and writes are repeated, it is possible to change the data in adjacent memory cells. For example, in the adjacent row of the row filled with shade in the figure, that is, the affected row (Victim Row), part of the data in the adjacent row is flipped, such as the data in the third and fifth columns, which is flipped from 1 to 0.
[0049] In view of the above phenomenon, in some example solutions, in order to prevent RH attacks, the memory industry has deployed various solutions collectively referred to as target row refresh (TRR), the basic principle of which is to set a threshold for the number of activation times of the memory row, and refresh the detected target row when the number of activation times exceeds the threshold. As an example, the specific approach is to embed the row address detected with RH risk into the automatic refresh (Auto-Refresh). In some examples, RH protection refresh is embedded in each automatic refresh. In the above scheme, since each automatic refresh needs to perform RH protection refresh, it is not flexible enough, resulting in a significant increase in the number of commands and total duration required for refreshing the entire storage array, and higher requirements are placed on the data retention capability of the memory. Specifically, combined with the working principle of the aforementioned memory, it can be seen that data storage is actually achieved by storing a certain charge in the capacitor in the storage unit. For example, the charge on the capacitor indicates that the stored data is 1, and the absence of charge indicates that the stored data is 0. In practical applications, since the charge on the capacitor will be lost over time, the automatic refresh is to retain the stored data, and it is set to replenish the charge of the capacitor in each storage unit of the memory at intervals to maintain the charge on the capacitor in the state corresponding to the data stored in the storage unit. The specific process of refreshing includes reading out the stored data and rewriting it. The data retention capacity of the memory is the ability of the memory cell to stably maintain a certain charge before the charge is replenished.
[0050] In practical applications, considering the instability of the manufacturing process, the data retention capability and performance of the memory are different, so it is necessary to provide a more flexible and reliable RH protection solution. Some aspects of the embodiments of the present application involve the above considerations. The following is an example introduction of the solution in combination with some embodiments.
[0051] Figure 4 FIG. 1 is a schematic diagram of a refresh control circuit as an example. Figure 4As shown, the refresh control circuit includes: a refresh counter 11, a reset circuit 12 and a control circuit 13;
[0052] A refresh counter 11 receives an activation command ACT CMD, a row activation window signal tRAS window and a refresh window signal tRFC window, and is used to count pulses of the row activation window signal tRAS window within an effective level period of the refresh window signal tRFC window and within an effective level period of the enable signal, and output a counting result; and, in response to a period reset signal RST_D, performs a counting reset; wherein the enable signal is generated based on the activation command ACT CMD and the period reset signal RST_D;
[0053] A reset circuit 12, wherein the input end of the reset circuit 12 is connected to the output end of the refresh counter 11, and the output end of the reset circuit 12 is connected to the reset end of the refresh counter 11, and is used to output a periodic reset signal RST_D when the count result currently output by the refresh counter 11 reaches a preset number of times;
[0054] The control circuit 13 has an input end connected to the output end of the refresh counter 1, and is used to output a protection refresh window signal RH window according to the counting result currently output by the refresh counter 11; wherein, when the counting result is within a preset range, the protection refresh window signal RH window is at a valid level.
[0055] In practical applications, the circuit provided in this embodiment can be applied to various memories. As an example, it can be applied to, including but not limited to, double data rate synchronous dynamic random access memory (DDR for short).
[0056] Specifically, the specific process of refreshing includes reading and writing data, and each refreshing process needs to be executed in conjunction with corresponding instructions. As an example, Figure 5 The following is a timing diagram of different signals as an example. Figure 5As shown, EN is the enable signal, ACT CMD is the activation command, PRE CMD is the precharge command, REF CMD is the refresh command, tRFC window is the refresh window signal, and tRAS window is the row activation window signal. Specifically, tRFC (Refresh Cycle Time) is the refresh time. Specifically, after the refresh command is issued, the memory will refresh all storage cells in the storage array, and the entire refresh process is carried out in the effective level period of the refresh window signal tRFC window. tRAS is the row activation time, and the pulse width of tRAS depends on the time between the activation operation and the precharge operation. Combined with the above, the specific processing of refresh includes reading and writing data, that is, each refresh requires row activation and precharge, so each pulse of tRASwindow in the effective level period of tRFC window represents a refresh. The figure takes the effective level as a high level as an example.
[0057] Among them, the enable signal responds to the arrival of the activation command and begins to enter the valid level period. In actual applications, there are many scenarios for performing row activation and precharging, such as but not limited to automatic refresh, self-refresh, and normal reading and writing, which all require row activation and precharging. Therefore, in order to improve the efficiency of row hammering protection and avoid unnecessary protection processing, in this embodiment, the pulses of the row activation window signal that are both in the valid level period of the refresh window signal and in the valid level period of the enable signal are specifically detected to filter out row activation operations that are obviously not row hammering situations. Figure 5 As shown in the figure, the first pulse in tRASwindow is not in the effective level period of tRFC window, so it is not counted. For example, a pulse of the row activation window signal is in the effective level period of the refresh window signal, but not in the effective level period of the enable signal. Since the effective level period of the enable signal has not yet started, the activation command has not been received before (usually obtained by decoding in response to external instructions). The current row activation operation may be automatic refresh or self-refresh, not a row hammering situation, so there is no need to perform protection refresh, so such pulses are not counted.
[0058] Combined with the scenario example: for the pulses in the row activation window signal tRAS window, the refresh counter 11 counts the pulses that are simultaneously located in the effective level period of the refresh window signal tRFC window and the effective level period of the enable signal EN. When the number of such pulses reaches a certain number, the protection refresh process is performed. The object and specific processing process of the protection refresh can refer to the relevant scheme, which will not be described in detail here. Therefore, when the counting result output by the refresh counter 11 falls within the preset range, the control circuit 13 outputs the protection refresh window signal RH window to timely perform the row hammer protection refresh operation. In this embodiment, a reset circuit 12 is also provided for outputting a periodic reset signal to the refresh counter 11 when the counting result output by the refresh counter 11 reaches a preset number of times, so as to reset the refresh counter 11. That is to say, in the process of the refresh counter 11 counting the pulse number of the tRAS window signal within the valid level period of the tRFC window signal and the EN signal, when the control circuit 13 detects that the current number of refreshes falls within the preset range, it switches a certain number of refreshes to protection refreshes by outputting a valid RH window signal until the number of refreshes counted by the refresh counter 11 reaches the preset number, and then responds to the RST_D signal output by the reset circuit 12 to reset to 0 and enter the next round of counting.
[0059] In combination with the above scheme, the frequency of row hammer protection refresh can be flexibly adjusted by setting the values of the preset number of times and the preset range. For example, with every 6 counting cycles, the 5th and 6th refreshes in each cycle are set as protection refreshes, then the preset number of times can be set to 6, and the preset range can be set to 4 to 6, that is, in one example, the preset range is 4 to 6. Accordingly, when the counting result is 4 to 6, the control circuit 13 outputs a valid RH window signal, and when the counting result is 6, the reset circuit 12 outputs a RST_D signal, and the refresh counter 11 restarts counting. As an example, refer to Figure 5 The timing example diagram shown in the figure takes every six refreshes as a counting cycle, and the 5th and 6th refreshes in each counting cycle are protection refreshes as an example. Among them, CNT output is the counting result, and RST_D signal is the cycle reset signal.
[0060] For another example, every 12 refreshes can be set as a counting cycle, and the 5th and 6th refreshes in each cycle can be set as protection refreshes. Then the preset number can be set to 12, and the preset range can be set to 4 to 6. Accordingly, when the counting result is 4 to 6, the control circuit 13 outputs a valid RH window signal, and when the counting result is 12, the reset circuit 12 outputs a RST_D signal, and the refresh counter 11 restarts counting. As an example, Figure 6A timing diagram of an example is shown in FIG. Figure 6 As shown in the figure, every 12 refreshes are regarded as a counting cycle, and the 5th and 6th refreshes in each counting cycle are protection refreshes as an example. Through the above example comparison, it can be known that based on the scheme provided by this embodiment, the frequency of protection refresh can be flexibly adjusted by setting the preset number of times and the preset range, thereby improving the flexibility and reliability of row hammer protection. It should be noted that the above is only an example, and in actual applications, the preset number of times and the preset range can be set according to the situation of the memory, and they are not limited here.
[0061] Specifically, the refresh counter 11 is used to count the pulses of the tRAS window signal that are simultaneously in the valid level period of the tRFC window signal and the valid level period of the EN signal, and the implementation circuit thereof is not limited. In one example, Figure 7 A schematic diagram of a refresh counter is shown in FIG. Figure 7 As shown, the refresh counter 11 includes: an enabling circuit 21, a detection circuit 22, a pulse generating circuit 23 and a counter 24;
[0062] The enabling circuit 21 receives an activation command ACT CMD and a periodic reset signal RST_D, and is used to generate an enabling signal EN based on the activation command ACTCMD and the periodic reset signal RST_D; wherein the activation command ACT CMD controls the starting time of the effective level of the enabling signal EN, and the periodic reset signal RST_D controls the ending time of the effective level of the enabling signal EN;
[0063] The detection circuit 22 receives the enable signal EN, the row activation window signal tRAS window and the refresh window signal tRFC window, and is used to detect whether the pulse of the row activation window signal tRAS window is located within the effective level period of the refresh window signal tRFC window and within the effective level period of the enable signal EN; if so, outputs the pulse of the row activation window signal tRAS window;
[0064] The pulse generating circuit 23 is connected to the output end of the detection circuit 22, and is used to output a valid counting clock CLK in response to the arrival of the pulse of the row activation window signal tRAS window output by the detection circuit 22;
[0065] The clock terminal of the counter 24 is connected to the output terminal of the pulse generating circuit 23, and the reset terminal of the counter 24 is connected to the reset circuit 12, for accumulating counts in response to the effective count clock CLK and outputting count results; and performing count reset in response to the periodic reset signal RST_D.
[0066] Specifically, the enabling circuit 21 outputs the EN signal based on the ACT CMD signal and the RST_D signal. In one example, the starting time of the effective level period of the EN signal corresponds to the effective edge (such as the rising edge) of the ACT CMD signal, and the ending time of the effective level period of the EN signal corresponds to the effective edge (such as the rising edge) of the RST_D signal. Optionally, before the RST_D signal arrives, if there are multiple ACT CMD signal pulses, the starting time of the effective level period of the EN signal is controlled based on the effective edge of the first ACT CMD signal. The "corresponding" here refers to timing alignment, but the alignment here is not limited to complete alignment, because the signal delay and timing error also need to be considered. Afterwards, the detection circuit 22 detects whether the pulse of the tRAS window signal is located in both the effective level period of the EN signal and the effective level period of the tRFC window signal. If this condition is met, the pulse of the tRAS window signal is output. Correspondingly, after the pulse generating circuit 23 receives the pulse output by the detecting circuit 22, it generates a pulse of the counting clock CLK. Correspondingly, the counter 24 accumulates 1 in response to the pulse of the counting clock CLK, thereby realizing counting of the number of refresh times corresponding to the pulse of the row activation window signal which is located in both the valid level period of the refresh window signal and the valid level period of the enable signal.
[0067] The enabling circuit 21 is used to generate an enabling signal EN, and its implementation structure is not limited. In one example, Figure 8 A schematic diagram of a refresh counter is shown in FIG. Figure 8 As shown, the enabling circuit 21 includes: a first NOT gate 211, a second NOT gate 212, a first NAND gate 213 and a second NAND gate 214;
[0068] An input terminal of the first NOT gate 211 receives an activation command ACT CMD, and an output terminal of the first NOT gate 211 is connected to a first input terminal of the first NAND gate 213;
[0069] The input end of the second NOT gate 212 receives the periodic reset signal RST_D, and the output end of the second NOT gate 212 is connected to the first input end of the second NAND gate 214;
[0070] The second input terminal of the first NAND gate 213 is connected to the output terminal of the second NAND gate 214 , and the output terminal of the first NAND gate 213 is connected to the detection circuit 22 ; the second input terminal of the second NAND gate 214 is connected to the output terminal of the first NAND gate 213 .
[0071] Specifically, the first NAND gate 213 and the second NAND gate 214 constitute an SR trigger structure based on the NAND gate, the first input end of the first NAND gate 213 is the set end of the SR trigger, the second input end of the second NAND gate is the reset end of the SR trigger, and both are low level valid. For example, first, the pulse (high level) of the activation command ACT CMD arrives, and the low level signal is output through the inversion of the first NOT gate 211, the set end of the SR trigger is 0 (valid), and the SR trigger outputs a high level EN signal, that is, the effective level period of the EN signal begins. Next, the pulse of the activation command ACT CMD ends (turns to a low level), and after the inversion of the first NOT gate 212, the set end of the SR trigger is 1 (invalid). At this time, the counting result has not reached the preset number of times, so the periodic reset signal RST_D is low level, and after the inversion of the second NOT gate 212, a high level signal is output, and the reset end of the SR trigger is also 1 (invalid), and the SR trigger maintains the state of the current output signal, that is, maintains the output of the high level EN signal. During the effective level period of the EN signal, the counter 24 counts the pulses of the tRAS window signal within the effective level period of the tRFC window signal until the counting result reaches a preset number of times, and the reset circuit 12 outputs a high-level RST_D signal. Correspondingly, after the inversion of the second NOT gate 212, the reset end of the SR flip-flop is 0 (effective), and the SR flip-flop outputs a low-level EN signal, that is, the effective level period of the EN signal ends, thereby generating the enable signal EN.
[0072] It should be noted that the above example is only a possible implementation method. In actual applications, the enabling circuit can also be implemented by other circuits. For example, an SR trigger structure based on a NOR gate can also be used to generate an enabling signal EN whose start time of the effective level period corresponds to the ACT CMD signal and whose end time corresponds to the RST_D signal. The specific implementation method of the enabling circuit is not limited here.
[0073] In this example, the enabling circuit is composed of conventional circuits such as a NOT gate and a NAND gate, thereby realizing the generation of an enabling signal to execute a subsequent refresh control scheme. In addition, the conventional circuit is used in this example to facilitate process preparation, further simplify the circuit, and reduce costs.
[0074] Specifically, based on the EN signal, the tRAS window signal and the tRFC window signal, the detection circuit 22 selects pulses that are simultaneously located in the effective level period of the EN signal and the tRFC window signal from the pulses of the tRAS window signal for output, and its implementation structure is not limited. In one example, Figure 8 As shown, the detection circuit 22 includes: a first AND gate 221;
[0075] A first input terminal of the first AND gate 221 receives the refresh window signal tRFC window, a second input terminal of the first AND gate 221 receives the row activation window signal tRAS window, a third input terminal of the first AND gate 221 is connected to the output terminal of the enable circuit 21, and an output terminal of the first AND gate 221 is connected to the pulse generating circuit 23.
[0076] It should be noted that the figure only shows an example of a combined implementation, excluding other possible implementations. For example, when the enabling circuit 21 adopts other implementation circuits, the implementation circuit of the detection circuit 22 shown in the figure can also be adopted. As an example, taking the specific structure of the enabling circuit 21 in the above example and the detection circuit 22 including the first AND gate 221 as an example of a combined implementation, the third input terminal of the first AND gate 221 is connected to the output terminal of the first NAND gate 213 in the enabling circuit 21.
[0077] Specifically, the first AND gate 221 outputs a high-level signal only when all inputs of the first AND gate 221 are at a high level. Taking the effective level of the EN signal and the tRFC window signal as a high level as an example, when a high-level pulse of the tRAS window signal arrives, if the EN signal and the tRFC window signal are both at a high level at this time, that is, they are within the effective level period of the EN signal and the tRFC window signal, the first AND gate 221 outputs a high-level pulse, which is equivalent to outputting the pulse, so as to count the pulse based on the pulse generating circuit 23 and the counter 24. If any one of the EN signal and the tRFC window signal is at a low level, the first AND gate 221 always outputs a low-level signal, that is, the pulse is ignored and not output, and the subsequent counter 24 does not count the pulse.
[0078] In this example, the detection circuit is composed of an AND gate, so as to select and output the pulses of the row activation window signal that are simultaneously in the effective level period of the enable signal and the refresh window signal, so as to execute the subsequent refresh control scheme. In addition, the conventional circuit is used in this example, which is convenient for process preparation, can further simplify the circuit and reduce the cost.
[0079] Subsequently, in response to the pulse of the tRAS window signal output by the detection circuit 22, the pulse generating circuit 23 generates a pulse of a counting clock to instruct the counter 24 to accumulate the count. Specifically, the specific structure of the pulse generating circuit is not limited. In one example, Fig. 9 A schematic diagram of a refresh counter is shown in FIG. Fig. 9 As shown, the pulse generating circuit 23 includes: a third NOT gate 231, a delay unit 232 and a second AND gate 233;
[0080] A first input terminal of the second AND gate 233 is connected to the output terminal of the detection circuit 22 , and a second input terminal of the second AND gate 233 is connected to the output terminal of the delay unit 232 ;
[0081] The input end of the third NOT gate 231 is connected to the output end of the detection circuit 22, and the output end of the third NOT gate 231 is connected to the input end of the delay unit 232. The delay time of the delay unit 232 is used to control the pulse width of the counting clock CLK.
[0082] The output terminal of the second AND gate 233 is connected to the clock terminal of the counter 24 as the output terminal of the pulse generating circuit 23 .
[0083] Wherein, the delay time length of the delay unit 232 can be set as needed, and accordingly, the pulse width of the pulse signal of the generated counting clock CLK is consistent with the delay time length. In practical applications, the delay time length can be set to a smaller value to save power consumption. In conjunction with the circuit example, initially, the detection circuit 22 does not output the pulse of the tRAS window signal, that is, the detection circuit 22 continuously outputs a low level, and the first input end of the second AND gate 233 is 0. In this stage, the low level output by the detection circuit 22 is inverted and outputs a high level through the third non-gate 231, and the high level reaches the second input end of the second AND gate 233 after the delay of the delay unit 232. That is, the first input end of the second AND gate 233 is 0, the second input end of the second AND gate 233 is 1, and the second AND gate 233 outputs a low level.
[0084] Afterwards, when the detection circuit 22 detects a pulse of the row activation window signal that is simultaneously within the valid level period of the enable signal and the refresh window signal, the pulse is output. When outputting the pulse, the output of the detection circuit 22 flips from a low level to a high level, and accordingly, the first input terminal of the second AND gate 233 receives a high level signal. At this time, the third NOT gate 231 also receives the high level signal output by the detection circuit 22, and outputs a low level signal after inversion, but the low level signal needs to be delayed by the delay unit 232 before it can reach the second AND gate 233. Therefore, before the low level output by the third NOT gate 231 reaches the second input terminal of the second AND gate 233, the first input terminal and the second input terminal of the second AND gate 233 are both 1, and the output of the second AND gate 233 flips to a high level until the low level output by the third NOT gate 231 reaches the second input terminal of the second AND gate 233, and the output of the second AND gate 233 flips to a low level again, completing the output of a counting clock pulse. Combined with the example of the diagram, Fig.10 is an exemplary timing diagram, which shows the input terminal of the third NOT gate 231, such as Fig. 9 Point A in the figure, and the output end of the third NOT gate 231, such as Fig. 9 Point B in the figure, and the second input terminal of the second AND gate 233, that is, Fig. 9Point C in FIG. 1 and the timing waveform of the counting clock CLK. The specific structure of the delay unit is not limited, for example, it may include an even number of inverters connected in series.
[0085] In this example, the pulse generating circuit is composed of an AND gate, a NOT gate, and a delay unit, so as to realize a pulse output counting clock in response to a row activation window signal to execute a subsequent refresh control scheme. In addition, the conventional circuit is used in this example to facilitate process preparation, further simplify the circuit, and reduce costs.
[0086] In response to the counting clock output by the pulse generating circuit 23, the counter 24 accumulates the count once. The specific structure of the counter is not limited. In one example, Fig.11 A schematic diagram of the structure of a counter is shown in FIG. Fig.11 As shown, the counter 24 includes: a multi-stage first trigger 241;
[0087] The clock end of the first-stage first trigger 241 is connected to the output end of the pulse generating circuit 23, and the clock ends of other first triggers 241 are connected to the inverting output end of the first trigger 241 of the previous stage; the input end of each first trigger 241 is connected to the inverting output end of the first trigger 241, and the value outputted by the in-phase output end of each stage of the first trigger 241 constitutes the output CNT<…> of the counter, which is a binary representation of the counting result; the reset end of each first trigger 241 is connected to the output end of the reset circuit 12.
[0088] In order to facilitate the understanding of the scheme, Fig.12 For example: Fig.12 2 is an example diagram of the counting process. In practical applications, the number of first triggers can be determined as needed. For example, when the preset number is set to 12, five first triggers can be set. Fig.12 Taking the five-stage first trigger as an example, the output of the first-stage first trigger is the first bit CNT of the counting result. <0> The output of the first trigger of the second stage is the second bit CNT of the counting result. <1> The output of the first trigger of the third stage is the third bit CNT of the counting result. <2> The output of the first trigger of the fourth stage is the 4th bit CNT of the counting result. <3> The output of the first flip-flop of the fifth stage is the fifth bit CNT of the counting result. <4> .
[0089] Initially, the counting clock CLK is at a low level, and the in-phase output terminal of each first trigger 241 outputs 0, CNT <4> ~CNT <0> is 00000, indicating that the counting result is 0. At the same time, the inverting output terminal of each first trigger 241 outputs 1, and accordingly, the input terminal of each first trigger 241 is 1. Later, when the first pulse of the counting clock CLK arrives, in response to the rising edge of the first counting clock pulse, the first-stage first trigger 241 outputs the signal at the input terminal (which is 1 at this time) to the in-phase output terminal. At this time, the CNT output of the in-phase output terminal of the first-stage first trigger 241 is <0> is 1, the inverting output terminal outputs 0, and the input terminal is 0; the signal at the clock terminal of the second-stage first flip-flop 241 flips to 0 (falling edge), and the input and output states of the second-stage first flip-flop 241 are not updated. The output CNT of the entire counter 24 <4> ~CNT <0> Updated to 00001, representing a count result of 1.
[0090] Afterwards, when the second pulse of the counting clock CLK arrives, in response to the rising edge of the second counting clock pulse, the first trigger 241 of the first stage outputs the signal of the input end (which is 0 at this time) to the in-phase output end. At this time, the CNT <0> The output of the inverting output terminal is updated to 0, and the output of the inverting output terminal is flipped to 1, generating a rising edge; the clock terminal of the second-stage first flip-flop 241 receives the rising edge, the output of the inverting output terminal of the second-stage first flip-flop 241 is updated to 1, and the inverting output terminal is flipped to 0, generating a falling edge; the input and output states of the third-stage first flip-flop 241 are not updated. The output CNT of the entire counter 24 <4> ~CNT <0> Updated to 0010, the characterization count result is 2.
[0091] Based on the above principle, by analogy, the multi-stage first trigger is used to count in response to the pulse of the counting clock and output the binary representation of the counting result. Until the reset end of each first trigger 241 receives the periodic reset signal RST_D, the output of all first triggers 241 is reset to 0, returning to the initial state, the in-phase output end of each stage of the first trigger 241 outputs 0, and the counter 24 starts counting again.
[0092] In this example, the counter is composed of a plurality of first triggers, so as to realize counting and outputting the counting result in response to the counting clock, so as to execute the subsequent refresh control scheme. In addition, the conventional circuit is adopted in this example, which is convenient for process preparation, can further simplify the circuit and reduce the cost.
[0093] In this embodiment, the periodic reset signal RST_D is used to control the number of refreshes in a single counting cycle. The periodic reset signal RST_D is generated by the reset circuit 12, and the specific structure of the reset circuit is not limited. In one example, Fig.13FIG. 1 is a schematic diagram of a reset circuit as an example. Fig.13 As shown, the reset circuit 12 includes: a reset generation circuit 31 and an output circuit 32;
[0094] The reset generation circuit 31 is connected to the output terminal of the refresh counter 11 and receives the period setting signal TM<…>, and is used to output the initial reset signal RST_T to the output circuit 32 when the count result output by the refresh counter 11 reaches the preset number of times corresponding to the period setting signal TM<…>;
[0095] The input end of the output circuit 32 is connected to the output end of the reset generation circuit 31, and the output circuit 32 is used to output the initial reset signal RST_T as a periodic reset signal RST_D in response to the end of the pulse of the row activation window signal tRAS window during the effective level period of the refresh window signal tRFC window.
[0096] In combination with the scenario example, when it is necessary to set a preset number of times, that is, the upper limit value of the count of a single counting cycle, a cycle setting signal TM<…> can be input to the refresh control circuit. The cycle setting signal may include at least one bit, and its data length may be determined as needed. For example, assuming that two counting cycles are provided, for example, 6 or 12, that is, the refresh control circuit supports every 6 refreshes as a counting cycle, or every 12 refreshes as a counting cycle, then the cycle setting signal may include one bit. Different counting cycles are represented based on different values of this one bit. For example, when the cycle setting signal is 0, each counting cycle is set to include 6 refreshes, and when the cycle setting signal is 1, each counting cycle is set to include 12 refreshes.
[0097] Specifically, the reset generation circuit 31 determines the number of refreshes included in the corresponding single counting cycle according to the current cycle setting signal, that is, the above-mentioned preset number, and outputs the initial reset signal RST_T when the count result output by the current refresh counter 11 reaches the preset number. Afterwards, after receiving the initial reset signal RST_T, the output circuit 32 does not output it directly, but waits until the pulse of the last row activation window signal tRAS window counted in the current count result ends, and then outputs the received initial reset signal RST_T as the cycle reset signal RST_D, thereby resetting the refresh counter.
[0098] The purpose of this design is to accurately control the effective level period of the protection refresh window signal and improve the reliability of the protection refresh. For example, it is assumed that the number of refreshes in a single counting cycle is 6, and the RH protection refresh is performed at the 5th and 6th refreshes in each counting cycle. In combination with the above example, the preset number is set to 6, and the preset range is set to 4 to 6. The refresh counter 11 counts in response to the pulses of the tRAS window signal that are simultaneously in the effective level period of the tRFC window signal and the EN signal. In response to the clock pulse of the counting clock CLK corresponding to the 4th refresh, the counter 24 outputs a count result of 4, which falls within the preset range. Correspondingly, the control circuit 13 starts to output a valid protection refresh window signal, and the refresh performed within the effective level period of the protection refresh window signal is the RH protection refresh. That is, the next 5th refresh is the RH protection refresh, and the pulse of the tRAS window signal generated in the 5th refresh is counted again by the refresh counter 11, and the output count result is updated to 5, which still falls within the preset range, and the control circuit 13 maintains the output of the valid protection refresh window signal. Until the sixth refresh, it is still within the effective level period of the protection refresh window signal, so the sixth refresh is also the RH protection refresh. At the same time, the refresh counter 11 responds to the arrival of the pulse of the tRAS window signal corresponding to the sixth refresh, and the output count result is updated to 6. At this time, the count result reaches the preset number of times, and the reset generation circuit 31 generates an initial reset signal RST_T, but in order to ensure that the sixth refresh is normally executed as a protection refresh (the protection refresh needs to be performed based on the effective level period of the protection refresh window signal), the output circuit 32 does not output the initial reset signal RST_T first, but waits until this refresh is stable, that is, when the pulse of the tRAS window signal corresponding to the sixth refresh ends, and then outputs it as a periodic reset signal RST_D to the refresh counter 11 for reset, thereby ensuring that the RH protection refresh can be reliably executed.
[0099] In one example, the cycle setting signal includes two bits, and the preset number includes four values, which are respectively recorded as the first number, the second number, the third number, and the fourth number. For example, the preset number of values can be 6, 12, 18, and 24. Specifically, the cycle setting device includes two bits, which can realize four values of 00, 01, 10, and 11, corresponding to the four values of the preset number of times. This example supports the selection and setting of the preset number of times through the cycle setting signal, so as to flexibly adjust the refresh number of a single counting cycle, so as to realize flexible adjustment of the execution frequency of the RH protection refresh.
[0100] Specifically, for the case where a preset number of times is supported, the reset generation circuit needs to determine the current preset number of times according to the current cycle setting signal, so as to instruct the refresh counter to reset when the counting result reaches the preset number of times. Fig.13 As shown, the reset generation circuit 31 includes:
[0101] The cycle decoding circuit 311 receives the cycle setting signal TM<…> and is used to output a first number selection signal RH_0, a second number selection signal RH_1, a third number selection signal RH_2 and a fourth number selection signal RH_3 according to the cycle setting signal TM<…>;
[0102] A sub-decoder 312 corresponding to each number; each sub-decoder 312 receives at least one bit of the counting result, and is used to output a flag signal of the number when the value currently represented by the at least one received bit is consistent with the number corresponding to the sub-decoder 312;
[0103] A third AND gate 313 corresponding to each number; each third AND gate 313 receives a selection signal of a corresponding number and a flag signal of a corresponding number;
[0104] The OR operation unit 314 has its input terminal connected to the output terminals of all the third AND gates 313 , and its output terminal is used to output the initial reset signal RST_T.
[0105] As an example, the flag signal for the first count in the figure is CNT_M, the flag signal for the second count is CNT_N, the flag signal for the third count is CNT_O, and the flag signal for the fourth count is CNT_P. Among them, the flag signal of the count effectively indicates that the current counting result is consistent with the count, and the selection signal of the count effectively indicates that the count is currently selected. It can be understood that for any preset count, only when the count is selected and the current count result reaches the count, the count reset needs to be performed, that is, the reset generation circuit outputs the initial reset signal. Taking the high level as an example, the third AND gate is set to detect whether the above reset condition is currently met. In the example in the figure, for each preset number of times, a corresponding third AND gate 313 is set. Taking the preset number of times including four values as an example, four third AND gates are set, wherein the third AND gate receiving the first number of flag signal CNT_M and the selection signal RH_0 is the third AND gate corresponding to the first number, the third AND gate receiving the second number of flag signal CNT_N and the selection signal RH_1 is the third AND gate corresponding to the second number, the third AND gate receiving the third number of flag signal CNT_O and the selection signal RH_2 is the third AND gate corresponding to the third number, and the third AND gate receiving the fourth number of flag signal CNT_P and the selection signal RH_3 is the third AND gate corresponding to the fourth number. By performing AND logic operations on the flag signal and the selection signal, it is detected whether the current counting result reaches the currently selected number, thereby achieving accurate and timely reset.
[0106] For the OR operation unit, as long as any third AND gate outputs a valid level, an initial reset signal is output. Optionally, the OR operation unit is used to perform an OR logic operation on the output signals of the third AND gates corresponding to all times, and its specific structure is not limited. For example, the OR operation unit may include at least one OR gate, and the number of OR gates may be determined according to the number of third AND gates, that is, the number of preset times. For example, when the number of preset times is small, the OR operation unit may include a multi-input OR gate implementation. For example, if the preset number has two values, the OR operation unit may include an OR gate; if the preset number has three values, the OR operation unit may include a three-input OR gate. When the number of preset times is large, the OR operation unit may also be implemented by a multi-level OR gate unit. For example, as shown in the example, for the case where the above-mentioned preset number has four values, the OR operation unit 314 can be implemented as a two-level OR gate unit, and each level of the OR gate unit includes at least one OR gate 315. Fig.13 As shown, the first-stage OR gate unit includes a plurality of (for example, two) OR gates 315, and the input ends of the plurality of OR gates 315 respectively receive the outputs of the third AND gates 313, and the second-stage OR gate unit includes an OR gate 315, which receives the outputs of the plurality of OR gates in the previous-stage OR gate unit. The output end of the OR gate of the second-stage OR gate unit is used to output the initial reset signal RST_T.
[0107] Specifically, the cycle decoding circuit is used to output a selection signal for each number of times. The selection signal for the number of times selected by the cycle setting signal is valid, and the selection signals for other numbers of times are invalid. In one example, Fig.14 FIG. 1 is a schematic diagram of a structure of an exemplary cycle decoding circuit, such as Fig.14 As shown, the cycle decoding circuit 311 includes:
[0108] A first NOR gate 41, a first input terminal of which receives a bit TM of a period setting signal <0> The second input terminal of the first NOR gate 41 receives another bit TM of the cycle setting signal <1> , the first NOR gate 41 is used to output the first selection signal RH_0;
[0109] A fourth NOT gate 42 and a second NOR gate 43, wherein the input end of the fourth NOT gate 42 is connected to the first input end of the first NOR gate 41, the output end of the fourth NOT gate 42 is connected to the first input end of the second NOR gate 43, the second input end of the second NOR gate 43 is connected to the second input end of the first NOR gate 41, and the second NOR gate 43 is used to output a selection signal RH_1 of the second number;
[0110] A fifth NOT gate 44 and a third NOR gate 45, wherein a first input terminal of the third NOR gate 45 is connected to a first input terminal of the first NOR gate 41, an input terminal of the fifth NOT gate 44 is connected to a second input terminal of the first NOR gate 41, an output terminal of the fifth NOT gate 44 is connected to a second input terminal of the third NOR gate 45, and the third NOR gate 45 is used to output a third selection signal RH_2;
[0111] A third NAND gate 46 and a sixth NAND gate 47, wherein the first input terminal of the third NAND gate 46 is connected to the first input terminal of the first NOR gate 41, the second input terminal of the third NAND gate 46 is connected to the second input terminal of the first NOR gate 41, the output terminal of the third NAND gate 46 is connected to the input terminal of the sixth NAND gate 47, and the sixth NAND gate 47 is used to output the fourth selection signal RH_3.
[0112] It should be noted that the figure only shows that the period setting signal includes two bits TM <0> and TM <1> The preset times include four values as examples. In practical applications, the specific structure of the cycle decoding circuit can be designed according to actual conditions and is not limited to the examples in the figure. Specifically, the cycle setting signal 00 indicates the first number is selected, the cycle setting signal 01 indicates the second number is selected, the cycle setting signal 10 indicates the third number is selected, and the cycle setting signal 11 indicates the fourth number is selected.
[0113] Combined with the structure shown in the figure, an example is given: when the cycle setting signal TM<1:0> is 00, the TM received by the first NOR gate 41 <0> and TM <1> are all 0, the first NOR gate 41 outputs 1, that is, the selection signal of the first number is valid; in the signal received by the second NOR gate 43, TM <0> The inverted signal is 1, TM <1> is 0, so the second NOR gate outputs 0, that is, the selection signal of the second number is invalid; similarly, at this time, one input signal of the third NOR gate 45 is 1, so the third NOR gate 45 outputs 0, that is, the selection signal of the third number is invalid; the TM received by the third NAND gate 46 <0> and TM <1> are all 0, the third NAND gate 46 outputs 1, which is inverted by the sixth NOT gate 47 and outputs 0, that is, the fourth selection signal is invalid. When the cycle setting signal TM<1:0> is 10, the TM received by the first NOR gate 41 <0> is 0, TM <1> is 1, the first NOR gate 41 outputs 0, that is, the selection signal of the first number is invalid; in the signal received by the second NOR gate 43, TM <0> The inverted signal is 1, TM <1> is 1, so the second NOR gate outputs 0, that is, the selection signal of the second number is invalid; in the signal received by the third NOR gate 45, TM <0> The inverted signal is 0, TM <1> The inverted signal of is 0, so the third NOR gate 45 outputs 1, that is, the selection signal of the third number is valid; the TM received by the third NAND gate 46 <0> Bit 0, TM <1> is 1, the third NAND gate 46 outputs 1, which is inverted by the sixth NOT gate 47 and outputs 0, that is, the selection signal of the fourth time is invalid.
[0114] In this example, the cycle decoding circuit is composed of a NOT gate, a NOR gate, and a NAND gate, so as to output a selection signal for each number of times according to the cycle setting signal to execute a subsequent refresh control scheme. In addition, the conventional circuit is used in this example to facilitate process preparation, further simplify the circuit, and reduce costs.
[0115] Each sub-decoder is used to output a flag signal of a preset number of times when the counting result reaches a corresponding preset number of times. In one example, Fig.15 is a schematic diagram of the structure of an exemplary sub-decoder, such as Fig.15 As shown:
[0116] The sub-decoder corresponding to the first count includes a fourth AND gate 51; the input ends of the fourth AND gate 51 receive the third bit CNT of the counting result respectively. <2> and the 2nd bit CNT <1> , the output terminal of the fourth AND gate 51 is used to output the first count mark signal CNT_M;
[0117] The sub-decoder corresponding to the second number includes a fifth AND gate 52; the input ends of the fifth AND gate 52 receive the fourth bit CNT of the counting result respectively. <3> and the 3rd bit CNT <2> , the output terminal of the fifth AND gate 52 is used to output the flag signal CNT_N of the second number;
[0118] The sub-decoder corresponding to the third number includes a sixth AND gate 53; the input ends of the sixth AND gate 53 receive the fifth bit CNT of the counting result respectively. <4> and the 2nd bit CNT <1> , the output end of the sixth AND gate 53 is used to output the third number mark signal CNT_O;
[0119] The sub-decoder corresponding to the fourth number includes a seventh AND gate 54; the input ends of the seventh AND gate 54 receive the fifth bit CNT of the counting result respectively. <4> and the 4th bit CNT <3> The output terminal of the seventh AND gate 54 is used to output the flag signal CNT_P of the fourth number.
[0120] It should be noted that the input signals of each sub-decoder in the figure are exemplified by the first number being 6, the second number being 12, the third number being 18, and the fourth number being 24. The figure is only an example and does not exclude other possible implementation methods. For example, the preset number of times may also be set to other values.
[0121] Combined with the example in the figure, the first digit of the counting result is CNT <0> , the second position is CNT <1> , the third position is CNT <2> , the 4th position is CNT <3> , the 5th is CNT <4> Taking the current count result as 5 as an example, the corresponding CNT<4:0> is 00101. Taking the high level as an example, the CNT<4:0> received by the fourth AND gate 51 is <2> 1. CNT <1> is 0, so the fourth AND gate 51 outputs 0, and the first count flag signal CNT_M is invalid. <3> is 0, so the fifth AND gate 52 outputs 0, and the second count flag signal CNT_N is invalid. Similarly, the sixth AND gate 53 and the seventh AND gate 54 both have an input CNT <4> It is 0, so both output 0, and the flag signals of the third and fourth times are also invalid.
[0122] Let's take the counting result reaching different preset times as an example: for example, taking the counting result as 6, the corresponding CNT <4> ~CNT <0> is 00110. The CNT <2> 1. CNT <1> is 1, so the fourth AND gate 51 outputs 1, and the first count flag signal CNT_M is valid. <3> is 0, so the fifth AND gate 52 outputs 0, and the second count flag signal CNT_N is invalid. Similarly, the sixth AND gate 53 and the seventh AND gate 54 both have an input CNT <4> is 0, so both output 0, and the flag signals of the third and fourth times are also invalid. In this example, the current counting result reaches the first number, but whether the reset generation circuit outputs the initial reset signal depends on whether the first number is the currently selected number. Assuming that the first number is the currently selected number, for example, the aforementioned cycle setting signal is 00, then the selection signal of the first number is also valid, then the reset generation circuit will output the initial reset signal, and the corresponding refresh counter will be reset to 0 at the end of the 6th pulse of the tRASwindow signal. Assuming that the currently selected preset number is 12, even if the flag signal of the first number is valid, since the selection signal of the first number is invalid, the reset generation circuit does not output the initial reset signal, the refresh counter is not reset, and continues to count.
[0123] For example, if the count result is 12, the corresponding CNT <4> ~CNT <0> is 01100. The CNT <2> 1. CNT <1> is 0, so the fourth AND gate 51 outputs 0, and the first count flag signal CNT_M is invalid. <3> =1, CNT <2> is 1, so the fifth AND gate 52 outputs 1, and the second count flag signal CNT_N is valid. The sixth AND gate 53 and the seventh AND gate 54 both have an input CNT <4> is 0, so both output 0, and the flag signals of the third and fourth times are invalid. Similarly, the reset generation circuit also needs to detect whether the selection signal of the second number is valid to determine whether to output the initial reset signal.
[0124] In this example, the sub-decoding circuit is composed of an AND gate, so as to output a flag signal of each number according to the current counting result to execute the subsequent refresh control scheme. In addition, the conventional circuit is used in this example, which is convenient for process preparation, can further simplify the circuit and reduce the cost.
[0125] The reset generation circuit 31 of the above example can output the initial reset signal timely and on time according to the counting result and the currently selected preset number of times. Subsequently, when the output circuit 32 waits for the end of the current pulse of the tRAS window signal, it outputs the initial reset signal as a periodic reset signal. In one example, Fig.13 As shown, the output circuit 32 includes:
[0126] A seventh NOT gate 321, an input terminal of the seventh NOT gate 321 receives a row activation window signal tRAS window;
[0127] an eighth AND gate 322, wherein a first input terminal of the eighth AND gate 322 receives a refresh window signal tRFC window, and a second input terminal of the eighth AND gate 322 is connected to an output terminal of the seventh NOT gate 321;
[0128] The second trigger 323 , the input end of the second trigger 323 is connected to the output end of the reset generation circuit 31 , the output end of the second trigger 323 is connected to the reset end of the refresh counter 11 , and the clock end of the second trigger 323 is connected to the output end of the eighth AND gate 322 .
[0129] Specifically, the second trigger 323 responds to the rising edge, and the seventh NOT gate 321 is used to invert the tRAS window signal. It can be seen that the rising edge of a pulse in the row activation window signal tRAS window is inverted to obtain a falling edge, and the falling edge is inverted to obtain a rising edge. Therefore, it is assumed that when the reset generation circuit 31 responds to the arrival of the pulse (rising edge) of the tRAS window signal that meets the reset condition and outputs the initial reset signal RST_T, it is in the valid level period of the tRFC window signal at this time, so the first input terminal of the eighth AND gate 322 receives a high level, and the output signal of the eighth AND gate is consistent with the signal at the second input terminal. Therefore, at this time, the signal received at the clock terminal of the second trigger 323 is the falling edge of the pulse rising edge of the tRAS window signal after inversion, and the second trigger 323 does not output the periodic reset signal RST_D. Until the end of the pulse, that is, the tRASwindow signal has a falling edge, it is inverted by the seventh NOT gate 321 to obtain a rising edge, triggering the second trigger 323 to output the periodic reset signal RST_D. Refer to Figure 5 or Figure 6 The timing example shows that the counting result is reset after the last pulse of the refreshed tRAS window signal in each counting cycle. Correspondingly, the counting result after reset is not within the preset range, and the effective period of the RHwindow signal ends. It should be noted that in actual applications, considering the signal delay and circuit reliability, signal delay can be appropriately added. For example, the periodic reset signal RST_D in the figure is output after a certain period of time after the sixth pulse of the tRAS window signal in the counting cycle ends.
[0130] In this example, the output circuit is composed of a NOT gate, an AND gate, and a trigger, so as to output a period reset signal at the end of the last pulse of the tRASwindow signal within the counting cycle to execute the subsequent refresh control scheme. In addition, the conventional circuit is used in this example to facilitate process preparation, further simplify the circuit, and reduce costs.
[0131] In this embodiment, the control circuit is used to output a protection refresh window signal when the counting result falls within a preset range, so as to perform RH protection refresh within the protection refresh window signal. In one example, Fig.16 FIG. 1 is a schematic diagram of a control circuit of an example. Fig.16 As shown, the control circuit 13 includes: a first multi-input AND gate 131, a second multi-input AND gate 132, a third multi-input AND gate 133 and a first multi-input OR gate 134;
[0132] The first multi-input AND gate 131 has a plurality of input terminals, and the plurality of input terminals of the first multi-input AND gate 131 respectively receive the inverted signal CNTB of the first bit of the counting result. <0> , the second bit inversion signal CNTB <1> And the third bit CNT <2> ;
[0133] The second multi-input AND gate 132 has a plurality of input terminals, and the plurality of input terminals of the second multi-input AND gate 132 respectively receive the first bit CNT of the counting result. <0> , the second bit inversion signal CNTB <1> And the third bit CNT <2> ;
[0134] The third multi-input AND gate 133 has a plurality of input terminals, and the plurality of input terminals of the third multi-input AND gate 133 respectively receive the inverted signal CNTB of the first bit of the counting result. <0> , the second bit CNT <1> And the third bit CNT <2> ;
[0135] A first input terminal of the first multi-input OR gate 134 is connected to an output terminal of the first multi-input AND gate 131, a second input terminal of the first multi-input OR gate 134 is connected to an output terminal of the second multi-input AND gate 132, a third input terminal of the first multi-input OR gate 134 is connected to an output terminal of the third multi-input AND gate 133, and an output terminal of the first multi-input OR gate 134 is used to output a protection refresh window signal RH window.
[0136] It should be noted that the illustrated situation is based on an example of a preset range of 4 to 6, but other possible implementations are not excluded. For example, other preset ranges of value intervals may also be set. Figure 5 or Figure 6In the example, the control circuit outputs a valid RH window signal in response to the count result being within the preset range. The timing sequence shown in the figure is only an example. In actual applications, considering the signal delay and circuit reliability, a signal delay can be appropriately added. For example, the valid level period of the RHwindow signal in the figure starts after a certain period of time after the count result is updated to 4.
[0137] Combined with the example in the figure, the first digit of the counting result is CNT <0> , the second position is CNT <1> , the third position is CNT <2> , the 4th position is CNT <3> , the 5th is CNT <4> . Taking the current count result as 3 as an example, the corresponding CNT <4> ~CNT <0> is 00011, accordingly, the CNTB received by the first multi-input AND gate 131 <0> 、CNTB <1> and CNT <2> are all 0, so the first multi-input AND gate 131 outputs 0. At the same time, among the input signals received by the second multi-input AND gate 132, CNTB <1> and CNT <2> is 0, so the second multi-input AND gate 132 outputs 0. Among the input signals received by the third multi-input AND gate 133, CNT <2> is 0, so the third multi-input AND gate 133 outputs 0. Correspondingly, the RH window signal output by the first multi-input OR gate 134 is 0, indicating that the RH window signal is invalid at this time, that is, the RH protection refresh is not performed.
[0138] Let's take the example of counting results falling into the preset range: for example, if the counting result is 4, the corresponding CNT <4> ~CNT <0> is 00100. Accordingly, the CNTB received by the first multi-input AND gate 131 is <0> 、CNTB <1> and CNT <2> are all 1, so the first multi-input AND gate 131 outputs 1. At the same time, among the input signals received by the second multi-input AND gate 132, CNT <0> is 0, so the second multi-input AND gate 132 outputs 0. Among the input signals received by the third multi-input AND gate 133, CNT <1> is 0, so the third multi-input AND gate 133 outputs 0. Correspondingly, the RH window signal output by the first multi-input OR gate 134 is 1, indicating that the RH window signal is valid at this time, and the RH protection refresh is performed during the valid period. For example, if the count result is 5, the corresponding CNT <4> ~CNT <0> is 00101. The CNTB received by the first multi-input AND gate 131 <0> is 0, so the first multi-input AND gate 131 outputs 0. At the same time, among the input signals received by the second multi-input AND gate 132, CNT <0> 、CNTB <1> and CNT <2> are all 1, so the second multi-input AND gate 132 outputs 1. Among the input signals received by the third multi-input AND gate 133, CNTB <0> and CNT <1> is 0, so the third multi-input AND gate 133 outputs 0. Correspondingly, the RH window signal output by the first multi-input OR gate 134 is still 1 and remains valid.
[0139] For example, if the count result is 6, the corresponding CNT <4> ~CNT <0> is 00110. The CNTB received by the first multi-input AND gate 131 <1> is 0, so the first multi-input AND gate 131 outputs 0. At the same time, among the input signals received by the second multi-input AND gate 132, CNTB <1> is 0, so the second multi-input AND gate 132 outputs 0. Among the input signals received by the third multi-input AND gate 133, CNTB <0> 、CNT <1> and CNT <2> are all 1, so the third multi-input AND gate 133 outputs 1. Correspondingly, the RH window signal output by the first multi-input OR gate 134 is still 1 and remains valid. It should be noted that, in combination with the above example, when the counting result is 6, the reset circuit 12 will be triggered to reset the count at the end of the pulse of the tRAS window signal of the current refresh (this is the 6th refresh in this round of counting cycle). It can be understood that after the counting result is reset to 00000, the control circuit 13 will output an invalid RH window signal, and the refresh counter 11 will count again.
[0140] Through the control circuit of the above example, when the current counting result is within the preset range, a valid RH window signal can be output in time, and by implementing conventional devices such as AND gates and OR gates, the circuit and process can be further simplified and the cost can be reduced.
[0141] The refresh control circuit provided in this embodiment includes a refresh counter, a reset circuit, and a control circuit. The refresh counter counts the pulses of the row activation window signal within the effective level period of the refresh window signal and the enable signal, and outputs the counting result. When the counting result reaches a preset number of times, the reset circuit instructs the refresh counter to reset, and when the counting result is within a preset range, the control circuit outputs a valid protection refresh window signal to perform row hammer protection refresh within the effective level period of the protection refresh window signal. The above scheme can realize row hammer protection refresh, and based on the support of setting a preset number of times and a preset range in this scheme, a certain number of refreshes can be selected in each round of preset number of refreshes to perform row hammer protection refresh, so that while realizing row hammer protection refresh, the execution frequency of protection refresh can be adjusted to improve the flexibility of row hammer protection.
[0142] Fig.17 A structural example diagram of a memory is shown as follows: Fig.17 As shown, the memory includes: an instruction decoder 1, a refresh operation module 2, a storage block control module 3 and a refresh control circuit 4 as in any of the previous examples;
[0143] The instruction decoder 1 is used to parse and generate an activation command ACT CMD and a refresh command REF CMD according to an external instruction; the refresh operation module 2 is connected to the instruction decoder 1 and is used to output a refresh window signal tRFCwindow and a row activation window signal tRAS window in response to the refresh command REF CMD;
[0144] The refresh control circuit 4 is connected to the instruction decoder 1, the refresh operation module 2 and the storage block control module 3, and is used to output the protection refresh window signal RH window according to the activation command ACT CMD, the refresh window signal tRFC window and the row activation window signal tRAS window;
[0145] The storage block control module 3 is connected to the refresh control circuit 4 and the refresh operation module 2, and is used to perform refresh in response to the signal output by the refresh operation module 2, and to perform row hammer protection refresh in response to the protection refresh window signal RH window.
[0146] In combination with the scheme of the above-mentioned embodiment, DRAM is taken as an example: Based on the above-mentioned scheme, the instruction decoder 1 parses the activation command ACT CMD and the refresh instruction REF CMD according to the external instruction, such as the instruction issued by the processor, and the refresh instruction is transmitted to the refresh operation module 2. At the same time, the instruction decoder 1 also transmits the activation command ACT CMD to the refresh control circuit 4. The refresh operation module 2 generates some window signals representing refresh parameters according to the refresh instruction REF CMD, such as the refresh window signal tRFC window and the row activation window signal tRAS window. The storage block control module 3 performs refresh based on the window signal output by the refresh operation module 2. During this period, when the refresh performed by the storage block control module 3 in the effective level period of the RH window signal output by the refresh control circuit 4 is switched to RH protection refresh. Among them, the refresh control circuit 4 includes a refresh counter, a reset circuit and a control circuit.
[0147] The reset circuit is used to set the counting cycle, and the refresh counter is used to count the number of refreshes performed during the validity period of the enable signal according to the counting cycle. Reset is performed at the end of each counting cycle, and the control circuit outputs a valid RH window signal when the counting result reaches a preset range.
[0148] In the memory provided in this embodiment, the refresh control circuit includes a refresh counter, a reset circuit, and a control circuit. The refresh counter counts the pulses of the row activation window signal within the effective level period of the refresh window signal and the enable signal, and outputs the counting result. When the counting result reaches a preset number of times, the reset circuit instructs the refresh counter to reset, and when the counting result is within a preset range, the control circuit outputs a valid protection refresh window signal to perform row hammer protection refresh within the effective level period of the protection refresh window signal. The above scheme can realize row hammer protection refresh, and based on the support of setting a preset number of times and a preset range in this scheme, a certain number of refreshes can be selected in each round of preset number of refreshes to perform row hammer protection refresh, so that while realizing row hammer protection refresh, the execution frequency of protection refresh can be adjusted to improve the flexibility of row hammer protection.
[0149] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only.
[0150] It will be appreciated that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
Claims
1. A refresh control circuit, characterized in that: include: A refresh counter receives an activation command, a row activation window signal and a refresh window signal, and is used to count pulses of the row activation window signal within an effective level period of the refresh window signal and within an effective level period of the enable signal, and output a counting result; and, in response to a period reset signal, performs a count reset; wherein the enable signal is generated based on the activation command and the periodic reset signal; A reset circuit, wherein the input end of the reset circuit is connected to the output end of the refresh counter, and the output end of the reset circuit is connected to the reset end of the refresh counter, and is used to output the period reset signal when the count result currently output by the refresh counter reaches a preset number of times; A control circuit, wherein the input end of the control circuit is connected to the output end of the refresh counter, and is used to output a protection refresh window signal according to a counting result currently output by the refresh counter; wherein, when the counting result is within a preset range, the protection refresh window signal is at a valid level.
2. The refresh control circuit according to claim 1, characterized in that: The refresh counter comprises: an enabling circuit, a detection circuit, a pulse generating circuit and a counter; The enabling circuit receives the activation command and the periodic reset signal, and is used to generate the enabling signal based on the activation command and the periodic reset signal; wherein the activation command controls the starting time of the effective level of the enabling signal, and the periodic reset signal controls the ending time of the effective level of the enabling signal; The detection circuit receives the enable signal, the row activation window signal and the refresh window signal, and is used to detect whether the pulse of the row activation window signal is located within the effective level period of the refresh window signal and within the effective level period of the enable signal; if so, outputs the pulse of the row activation window signal; The pulse generating circuit is connected to the output terminal of the detection circuit and is used to output a valid counting clock in response to the arrival of the pulse of the row activation window signal output by the detection circuit; The clock end of the counter is connected to the output end of the pulse generating circuit, and the reset end of the counter is connected to the reset circuit, for accumulating counts in response to a valid counting clock and outputting counting results; and performing count reset in response to the periodic reset signal.
3. The refresh control circuit according to claim 2, characterized in that: The detection circuit comprises: a first AND gate; The first input end of the first AND gate receives the refresh window signal, the second input end of the first AND gate receives the row activation window signal, the third input end of the first AND gate is connected to the output end of the enable circuit, and the output end of the first AND gate is connected to the pulse generating circuit.
4. The refresh control circuit according to claim 3, characterized in that: The enabling circuit comprises: a first NOT gate, a second NOT gate, a first NAND gate and a second NAND gate; The input end of the first NOT gate receives the activation command, and the output end of the first NOT gate is connected to the first input end of the first NAND gate; The input end of the second NOT gate receives the periodic reset signal, and the output end of the second NOT gate is connected to the first input end of the second NAND gate; The second input terminal of the first NAND gate is connected to the output terminal of the second NAND gate, the output terminal of the first NAND gate is connected to the third input terminal of the first AND gate; the second input terminal of the second NAND gate is connected to the output terminal of the first NAND gate.
5. The refresh control circuit according to claim 2, characterized in that: The pulse generating circuit comprises: a third NOT gate, a delay unit and a second AND gate; The first input end of the second AND gate is connected to the output end of the detection circuit, and the second input end of the second AND gate is connected to the output end of the delay unit; The input end of the third NOT gate is connected to the output end of the detection circuit, the output end of the third NOT gate is connected to the input end of the delay unit, and the delay time length of the delay unit is used to control the pulse width of the counting clock; The output terminal of the second AND gate is connected to the clock terminal of the counter as the output terminal of the pulse generating circuit.
6. The refresh control circuit according to claim 2, characterized in that: The counter comprises: a plurality of first triggers; The clock end of the first trigger of the first stage is connected to the output end of the pulse generating circuit, and the clock ends of other first triggers are connected to the inverting output end of the first trigger of the previous stage; the input end of each first trigger is connected to the inverting output end of the first trigger, and the value output by the inverting output end of the first trigger of each stage constitutes the output of the counter, which is a binary representation of the counting result; the reset end of each first trigger is connected to the output end of the reset circuit.
7. The refresh control circuit according to claim 1, characterized in that: The reset circuit comprises: a reset generation circuit and an output circuit; The reset generation circuit is connected to the output end of the refresh counter and receives a period setting signal, and is used to output an initial reset signal to the output circuit when the count result output by the refresh counter reaches the preset number of times corresponding to the period setting signal; The input end of the output circuit is connected to the output end of the reset generation circuit, and the output circuit is used to output the initial reset signal as the periodic reset signal in response to the end of the pulse of the row activation window signal during the effective level period of the refresh window signal.
8. The refresh control circuit according to claim 7, characterized in that: The period setting signal includes two bits, and the preset number includes four values, which are respectively recorded as a first number, a second number, a third number and a fourth number.
9. The refresh control circuit according to claim 8, characterized in that: The reset generation circuit comprises: a cycle decoding circuit, the cycle decoding circuit receiving the cycle setting signal, and configured to output a selection signal for the first number of times, a selection signal for the second number of times, a selection signal for the third number of times, and a selection signal for the fourth number of times according to the cycle setting signal; A sub-decoder corresponding to each number; each sub-decoder receives at least one bit of the counting result, and is used to output a flag signal of the number when the value currently represented by the at least one received bit is consistent with the number corresponding to the sub-decoder; A third AND gate corresponding to each number; each third AND gate receives a selection signal corresponding to the number and a flag signal corresponding to the number; An OR operation unit, wherein the input end of the OR operation unit is respectively connected to the output ends of all the third AND gates, and the output end of the OR operation unit is used to output the initial reset signal.
10. The refresh control circuit according to claim 9, characterized in that: The cycle decoding circuit comprises: a first NOR gate, wherein a first input terminal of the first NOR gate receives one bit of the period setting signal, a second input terminal of the first NOR gate receives another bit of the period setting signal, and the first NOR gate is used to output a selection signal of the first number of times; a fourth NOT gate and a second NOR gate, wherein the input end of the fourth NOT gate is connected to the first input end of the first NOR gate, the output end of the fourth NOT gate is connected to the first input end of the second NOR gate, the second input end of the second NOR gate is connected to the second input end of the first NOR gate, and the second NOR gate is used to output the second number of selection signals; a fifth NOT gate and a third NOR gate, wherein the first input terminal of the third NOR gate is connected to the first input terminal of the first NOR gate, the input terminal of the fifth NOT gate is connected to the second input terminal of the first NOR gate, the output terminal of the fifth NOT gate is connected to the second input terminal of the third NOR gate, and the third NOR gate is used to output a selection signal of the third number; A third NAND gate and a sixth NAND gate, wherein the first input terminal of the third NAND gate is connected to the first input terminal of the first NOR gate, the second input terminal of the third NAND gate is connected to the second input terminal of the first NOR gate, the output terminal of the third NAND gate is connected to the input terminal of the sixth NAND gate, and the sixth NAND gate is used to output the selection signal of the fourth number of times.
11. The refresh control circuit according to claim 9, characterized in that: The sub-decoder corresponding to the first number of times includes a fourth AND gate; the input end of the fourth AND gate receives the third bit and the second bit of the counting result respectively, and the output end of the fourth AND gate is used to output the flag signal of the first number of times; The sub-decoder corresponding to the second number of times includes a fifth AND gate; the input end of the fifth AND gate receives the 4th bit and the 3rd bit of the counting result respectively, and the output end of the fifth AND gate is used to output the flag signal of the second number of times; The sub-decoder corresponding to the third digit includes a sixth AND gate; the input end of the sixth AND gate receives the 5th bit and the 2nd bit of the counting result respectively, and the output end of the sixth AND gate is used to output a flag signal of the third digit; The sub-decoder corresponding to the fourth number includes a seventh AND gate; the input end of the seventh AND gate receives the 5th bit and the 4th bit of the counting result respectively, and the output end of the seventh AND gate is used to output the flag signal of the fourth number.
12. The refresh control circuit according to claim 7, characterized in that: The output circuit comprises: a seventh NOT gate, wherein an input end of the seventh NOT gate receives the row activation window signal; an eighth AND gate, wherein a first input terminal of the eighth AND gate receives the refresh window signal, and a second input terminal of the eighth AND gate is connected to an output terminal of the seventh NOT gate; A second trigger, wherein the input end of the second trigger is connected to the output end of the reset generation circuit, the output end of the second trigger is connected to the reset end of the refresh counter, and the clock end of the second trigger is connected to the output end of the eighth AND gate.
13. The refresh control circuit according to any one of claims 1 to 12, characterized in that: The preset range is 4 to 6.
14. The refresh control circuit according to claim 13, characterized in that: The control circuit comprises: a first multi-input AND gate, a second multi-input AND gate, a third multi-input AND gate and a first multi-input OR gate; The first multi-input AND gate has a plurality of input terminals, and the plurality of input terminals of the first multi-input AND gate respectively receive the inverted signal of the first bit, the inverted signal of the second bit, and the third bit of the counting result; The second multi-input AND gate has a plurality of input terminals, and the plurality of input terminals of the second multi-input AND gate respectively receive the first bit, the inverted signal of the second bit, and the third bit of the counting result; The third multi-input AND gate has a plurality of input terminals, and the plurality of input terminals of the third multi-input AND gate respectively receive the inverted signal of the first bit, the second bit, and the third bit of the counting result; The first input terminal of the first multi-input OR gate is connected to the output terminal of the first multi-input AND gate, the second input terminal of the first multi-input OR gate is connected to the output terminal of the second multi-input AND gate, the third input terminal of the first multi-input OR gate is connected to the output terminal of the third multi-input AND gate, and the output terminal of the first multi-input OR gate is used to output the protection refresh window signal.
15. A memory, characterized in that: include: An instruction decoder, a refresh operation module, a storage block control module, and a refresh control circuit as claimed in any one of claims 1 to 14; The instruction decoder is used to parse and generate an activation command and a refresh instruction according to an external instruction; the refresh operation module is connected to the instruction decoder and is used to output the refresh window signal and the row activation window signal in response to the refresh instruction; The refresh control circuit is connected to the instruction decoder, the refresh operation module and the storage block control module, and is used to output a protection refresh window signal according to the activation command, the refresh window signal and the row activation window signal; The storage block control module is connected to the refresh control circuit and the refresh operation module, and is used to perform refresh in response to the signal output by the refresh operation module, and to perform row hammer protection refresh in response to the protection refresh window signal.
Citation Information
Patent Citations
Refresh control circuit and method for semiconductor memory device
CN102655022A
Refresh address generation circuit
CN114822633A
Firmware refresh circuit and server
CN213876701U
Apparatus and method for self-refreshing dynamic random access memory cells
US20070171750A1
Systems, methods, and apparatuses for performing refresh operations
US20170162253A1
