Refresh control circuit and memory

By designing the refresh control circuit in the memory and using counting and indication signals to determine the refresh type, the problem of row hammer vulnerability in the memory is solved, effective protection is achieved when the refresh management function is turned off, and the design and circuit area are simplified.

WO2024217293A1PCT designated stage expired Publication Date: 2024-10-24RUILI INTEGRATED CIRCUIT CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/086714
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-19
Filing Date
2024-04-09
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

As memory size shrinks and integration increases, interference between adjacent memory cells leads to row hammering vulnerabilities, and it is difficult for existing technologies to effectively prevent erroneous flipping of memory cell data, especially when the refresh management function is turned off.

Method used

A refresh control circuit is designed, including a control circuit, a counting circuit and an indication circuit. It determines whether to perform regular refresh or refresh management refresh by judging the validity of the indication signal. The counting circuit is used to count the number of consecutive refresh requests, and when the Reset and restart counting when setting the upper limit value to achieve hammer protection.

Benefits of technology

When the refresh management function is turned off, the refresh frequency can be flexibly adjusted to protect against line hammering, simplifying the design difficulty and circuit area, and avoiding the need to design dedicated circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024086714_24102024_PF_FP_ABST
    Figure CN2024086714_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a refresh control circuit and a memory. The refresh control circuit comprises a control circuit, a counting circuit, and an indication circuit. When a refresh management function is disabled, if the indication circuit currently outputs an invalid indication signal, the control circuit outputs a full-block or same-block conventional refresh request according to an address command signal, and if the indication signal is valid, the control circuit outputs a full-block or same-block refresh management refresh request according to the received address command signal; the counting circuit calculates the number of accumulated same-block refreshes continuously output by the control circuit, and performs resetting in response to the counting result reaching a set upper limit value or the full-block refresh request; and the indication circuit is used for outputting the valid indication signal if the counting result is within a preset range, or otherwise, outputs the invalid indication signal. The present solution can achieve row hammer protection.
Need to check novelty before this filing date? Find Prior Art

Description

Refresh control circuit and memory

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 19, 2023, with application number 202310436851.X and application name “Refresh Control Circuit and Memory”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to memory technology, and in particular to a refresh control circuit and a memory. Background Art

[0003] With the development of memory technology, memory is widely used in various fields. For example, dynamic random access memory (DRAM) is widely used.

[0004] In practical applications, as memory sizes become smaller and their integration becomes higher, interference between adjacent memory cells can lead to row hammer (RH) vulnerabilities. Specifically, RH vulnerabilities occur when a memory cell is repeatedly read and written, potentially causing data in other memory cells to flip. Therefore, it is necessary to provide an effective refresh control scheme to control the execution of RH protection operations, such as refresh management (RFM) refresh, to prevent erroneous flips in memory cells.

[0005] Summary of the Invention

[0006] Embodiments of the present application provide a refresh control circuit and a memory.

[0007] According to some embodiments, the first aspect of the present application provides a refresh control circuit, including: a control circuit, a counting circuit and an indication circuit; the control circuit is connected to the output end of the indication circuit, and is used to, when the refresh management function is turned off, if the indication circuit currently outputs an invalid indication signal, then output a full-block regular refresh request or a same-block regular refresh request according to the received address command signal; if the indication circuit currently outputs a valid indication signal, then output a full-block refresh management refresh request or a same-block refresh management refresh request according to the received address command signal; the counting circuit is connected to the output end of the control circuit, and is used to count the cumulative number of times the control circuit continuously outputs the same-block regular refresh request and the same-block refresh management refresh request, and output the counting result; and, in response to the current counting result reaching a set upper limit value, or the control circuit outputs a full-block regular refresh request or a full-block refresh management refresh request, perform a reset and restart the counting; the indication circuit is connected to the output end of the counting circuit, and is used to output a valid indication signal if the current counting result is within a preset range, otherwise, output an invalid indication signal.

[0008] In some embodiments, the control circuit is also used to output a full-block regular refresh request, a same-block regular refresh request, a full-block refresh management refresh request, or a same-block refresh management refresh request according to the received address command signal when the refresh management function is turned on; wherein the address command information includes a first address command and a second address command; wherein different level states of the first address command respectively represent a regular refresh type and a refresh management refresh type, and different level states of the second address command respectively represent a full-block refresh type and a same-block refresh type.

[0009] In some embodiments, the control circuit includes: a first control sub-circuit, which receives a mode register instruction, a first address command and an indication signal, and is used to detect whether the refresh management function is turned on according to the mode register instruction, and output a first signal in combination with the first address command and the indication signal; wherein, if the refresh management function is turned on, a first signal consistent with the first address command is output; if the refresh management function is turned off, a first signal representing a conventional refresh type is output in response to a currently invalid indication signal, and a first signal representing a refresh management refresh type is output in response to a currently valid indication signal; a transmission circuit, which receives a second address command, and is used to delay the second address command for a predetermined period of time and output it as a second signal; a decoding circuit, which is connected to the first control sub-circuit and the transmission circuit, and is used to receive the first signal and the second signal, and output a corresponding type of refresh request in response to the refresh instruction according to the level status of the first signal and the second signal.

[0010] In some embodiments, the first control subcircuit includes: a first NOT gate, a first NAND gate, a second NOT gate, a second NAND gate and a first AND gate; the first input end of the first NAND gate receives an indication signal; the input end of the first NOT gate receives a mode register instruction, the output end of the first NOT gate is connected to the second input end of the first NAND gate, and the output end of the first NAND gate is connected to the first input end of the first AND gate; the first input end of the second NAND gate receives the mode register instruction; the input end of the second NOT gate receives a first address command, the output end of the second NOT gate is connected to the second input end of the second NAND gate, and the output end of the second NAND gate is connected to the second input end of the first AND gate; the output end of the first AND gate is used to output a first signal; wherein, a high level of the mode register instruction indicates that the refresh management function is turned on, and a low level of the mode register instruction indicates that the refresh management function is turned off; a high level of the indication signal indicates that the indication signal is valid, and a low level of the indication signal indicates that the indication signal is invalid.

[0011] In some embodiments, the transmission circuit includes: an even number of third NOT gates and a first buffer connected in series; the input end of the first third NOT gate receives the second address command, the output end of the last third NOT gate is connected to the input end of the first buffer, and the output end of the first buffer is used to output the second signal.

[0012] In some embodiments, the decoding circuit includes: a first trigger, wherein the input terminal of the first trigger receives the first signal, the in-phase output terminal of the first trigger is used to output the first sub-signal, the inverting output terminal of the first trigger is used to output the second sub-signal, and the clock terminal of the first trigger receives a refresh instruction; a second trigger, wherein the input terminal of the second trigger receives the second signal, the in-phase output terminal of the second trigger is used to output the third sub-signal, the inverting output terminal of the second trigger is used to output the fourth sub-signal, and the clock terminal of the second trigger receives the refresh instruction; a second buffer, wherein the input terminal of the second buffer receives the refresh instruction, and the second buffer is used to delay the refresh instruction and then output it; a first multi-input AND gate, wherein the input terminals of the first multi-input AND gate are respectively connected to the second sub-signal and the inverting output terminal of the second trigger. The first multi-input AND gate is used to output a full-block refresh management refresh request; the second multi-input AND gate, the input ends of the second multi-input AND gate are respectively connected to the first sub-signal, the fourth sub-signal and the output end of the second buffer, and the second multi-input AND gate is used to output a full-block regular refresh request; the third multi-input AND gate, the input ends of the third multi-input AND gate are respectively connected to the first sub-signal, the third sub-signal and the output end of the second buffer, and the third multi-input AND gate is used to output a same-block regular refresh request; the fourth multi-input AND gate, the input ends of the fourth multi-input AND gate are respectively connected to the second sub-signal, the third sub-signal and the output end of the second buffer, and the fourth multi-input AND gate is used to output a same-block refresh management refresh request.

[0013] In some embodiments, the counting circuit includes: a counting clock circuit, a reset circuit and a multi-stage third flip-flop corresponding to the binary bit; the counting clock circuit is connected to the control circuit, and is used to output the counting clock when a regular refresh request for the same block is received, or when the current indication signal is valid and a refresh management refresh request for the same block is received; the clock end of the first-stage third flip-flop is connected to the output end of the counting clock circuit, and the clock ends of the other third flip-flops are connected to the inverting output end of the third flip-flop of the previous stage; the input end of each third flip-flop is connected to the inverting output end of the third flip-flop, and the value outputted by the inverting output end of each stage of the third flip-flop constitutes the output of the counting circuit, which is a binary representation of the counting result; the input end of the reset circuit is connected to the output end of the control circuit and the multi-stage third flip-flop, and is used to output a reset signal when a regular refresh request for the entire block or a refresh management refresh request for the entire block is received, or when the counting result is an upper limit value; the output end of the reset circuit is connected to the reset end of each stage of the third flip-flop.

[0014] In some embodiments, the counting clock circuit includes: a second AND gate and a first OR gate; the first input end of the first OR gate receives a regular refresh request for the same block, the second input end of the first OR gate is connected to the output end of the second AND gate, the output end of the first OR gate serves as the output end of the counting clock circuit, and is connected to the clock end of the first-stage third trigger; the first input end of the second AND gate receives a refresh management refresh request for the same block, and the second input end of the second AND gate receives an indication signal.

[0015] In some embodiments, the reset circuit includes: a second OR gate, a third OR gate and a fifth multi-input AND gate; the first input end of the second OR gate receives a full-block refresh management refresh request, and the second input end of the second OR gate receives a full-block regular refresh request; the fifth multi-input AND gate has multiple input ends for receiving multiple first input signals and performing AND logic operations; the multiple first input signals correspond to multiple bits of the upper limit value, if any bit in the upper limit value is a high level, the corresponding first input signal is the corresponding bit of the counting result, if any bit in the upper limit value is a low level, the corresponding first input signal is the inverted signal of the corresponding bit of the counting result; the first input end of the third OR gate is connected to the output end of the second OR gate, the second input end of the third OR gate is connected to the output end of the fifth multi-input AND gate, and the output end of the third OR gate is used to output a reset signal.

[0016] In some embodiments, the preset range is 16 to 20.

[0017] In some embodiments, the indication circuit includes: a sixth multi-input AND gate, the sixth multi-input AND gate having multiple input terminals, respectively receiving the inverted signal of the 1st bit, the inverted signal of the 2nd bit, the signal of the 3rd bit, the inverted signal of the 4th bit, and the signal of the 5th bit in the current counting result; a seventh multi-input AND gate, the seventh multi-input AND gate having multiple input terminals, respectively receiving the inverted signal of the 3rd bit, the inverted signal of the 4th bit, and the signal of the 5th bit in the current counting result; a fourth OR gate, the first input terminal of the fourth OR gate is connected to the output terminal of the sixth multi-input AND gate, the second input terminal of the fourth OR gate is connected to the output terminal of the seventh multi-input AND gate, and the output terminal of the fourth OR gate is used to output an indication signal.

[0018] According to some embodiments, the second aspect of the present application provides a memory, including: a row hammer refresh operation module and a refresh control circuit as in the previous example; the row hammer refresh operation module is connected to the refresh control circuit, and is used to perform a row hammer refresh in response to a same-block refresh management refresh request output by the refresh control circuit.

[0019] The refresh control circuit and memory provided in the embodiments of the present application include a control circuit, a counting circuit, and an indication circuit. When the refresh management function is disabled, the control circuit determines whether to execute a regular refresh or an RFM refresh based on the validity of an indication signal. The validity of the indication signal is determined by the indication circuit based on the cumulative number of consecutive regular refresh requests and RFM refresh requests for the same block output by the counting circuit. With the above scheme, when the refresh management function is disabled, the corresponding type of refresh request is output based on the received address command signal according to the status of the indication signal, thereby enabling RH protection operation even when the refresh management function is disabled. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] 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.

[0021] FIG1 is a diagram illustrating an exemplary architecture of a memory according to an embodiment;

[0022] FIG2 is a structural diagram of a storage unit according to an embodiment;

[0023] FIG3 is an example of a hammering situation;

[0024] FIG4 is a schematic structural diagram of an exemplary refresh control circuit;

[0025] FIG5 is a structural diagram of an exemplary control circuit;

[0026] FIG6 is a structural diagram of a first control sub-circuit according to an example;

[0027] FIG7 is a structural diagram of an exemplary control circuit;

[0028] FIG8 is a structural diagram of an exemplary decoding circuit;

[0029] FIG9 is a structural diagram of an exemplary counting circuit;

[0030] FIG10 is a structural diagram of an exemplary reset circuit;

[0031] FIG11 is a structural diagram of an exemplary indicating circuit;

[0032] FIG12 is an example of a refresh request counter;

[0033] FIG13 is a diagram showing an exemplary structure of a memory.

[0034] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0035] Exemplary embodiments are described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatuses and methods consistent with certain aspects of the present application.

[0036] The terms "including" and "having" in this application are intended to convey an open-ended, inclusive meaning and indicate that additional elements / components / etc. may be present in addition to the listed elements / components / etc. The terms "first" and "second" are used solely for identification or distinction and do not limit the order or quantity of the elements and regions. Furthermore, the various elements and regions in the drawings are schematic illustrations only and are not limited to the sizes or distances shown.

[0037] The technical solution is described in detail below with specific embodiments. 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 with reference to the accompanying drawings.

[0038] The technical solution is described in detail below with specific embodiments. 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 with reference to the accompanying drawings.

[0039] FIG1 is a diagram illustrating an example of a memory architecture according to an embodiment. As shown in FIG1 , using DRAM as an example, the memory array includes a data input / output buffer, a row decoder, a column decoder, a sense amplifier, and a memory array. The data input / output buffer belongs to the peripheral circuit area, while the sense amplifier, row decoder, column decoder, and memory array belong to the array circuit area. The memory array primarily consists of word lines, bit lines, and memory cells. The word lines in the memory array extend in the row direction, while the bit lines in the memory array extend in the column direction. The intersection of the word lines and bit lines constitutes the memory cells of the memory array.

[0040] Each memory cell is used to store one bit of data. As shown in Figure 2, which illustrates an exemplary structure of a memory cell according to one embodiment, the memory cell primarily comprises a transistor switch M and a capacitor C. The capacitor is used to store data, and the transistor switch is used to switch on or off depending on the selected state.

[0041] A memory cell can be activated by controlling the word line and the bit line to achieve access to the memory cell. Take the read scenario as an example: when it is necessary to read the data in the memory cell, the word line of the row where the memory cell is located can be selected through the row decoder. Correspondingly, 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 memory cell is 1, then after the transistor M is turned on, 1 will be read from the bit line of the memory cell, and vice versa. In addition, take the write scenario as an example: when it is necessary to write bit data to a memory cell, such as writing 1. The word line of the row where the memory cell is located can be selected through the row decoder. The transistor M in the diagram is turned on accordingly, and by setting the logic level of the bit line to 1, the capacitor C is charged, that is, 1 is written to the memory 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 memory cell.

[0042] Based on 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, the data in the sense amplifier needs to be written back to the storage unit after reading the data. 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 storage cells can only be increased, and the spacing between adjacent storage cells is getting smaller and smaller, which may cause mutual interference between them. 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.

[0043] Further examples are given in conjunction with Figure 3, which is an example of a row hammering situation. As shown in Figure 3, 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, the data in the adjacent memory cells may be changed. 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.

[0044] In response to the above phenomenon, some example solutions are equipped with a special row hammer protection (RH protection) solution. Specifically, the memory monitors the number of times a row is activated, and when the number reaches the set value, the rows near the row are refreshed. Taking double-rate synchronous dynamic random access memory (DDR) as an example, in order to better protect data and achieve RH protection, DDR5 / LPDDR5 introduces a refresh management function (RFM feature). Simply put, when the refresh management function is turned on, the central processing unit (CPU) will send some additional refresh commands to the DRAM after detecting that a certain storage block (bank) of the DRAM has received too many activation commands, namely refresh management refresh requests (RFM refresh requests). The corresponding DRAM responds to the refresh management refresh request and performs the additional refresh required for RH protection, namely refresh management refresh (RFM refresh). Among them, the refresh management refresh request is further divided into the full block refresh management refresh request (RFM AB) and the same block refresh management refresh request (RFM SB). The difference between the two is whether the refresh object is all storage blocks (Bank) of all storage groups (Bank Group) or a certain storage block of all storage groups.

[0045] In practical applications, you can choose to enable or disable the refresh management function. However, regardless of whether the refresh management function is enabled, the memory should implement RH protection for data security and stability. Some aspects of the embodiments of this application address the above considerations. The following describes the solution with examples in conjunction with some embodiments.

[0046] FIG4 is a schematic structural diagram of an exemplary refresh control circuit. As shown in FIG4 , the refresh control circuit includes: a control circuit 11, a counting circuit 12, and an indication circuit 13;

[0047] The control circuit 11 is connected to the output end of the indication circuit 13 and is configured to output a full-block normal refresh request (REF AB request) or a same-block normal refresh request (REF SB request) according to the received address command signal CA<…> if the indication circuit 13 currently outputs an invalid indication signal FLAG when the refresh management function is disabled; and output a full-block refresh management refresh request (RFM AB request) or a same-block refresh management refresh request (RFM SB request) according to the received address command signal CA<…> if the indication circuit 13 currently outputs a valid indication signal FLAG.

[0048] The counting circuit 12 is connected to the output terminal of the control circuit 11 and is configured to count the cumulative number of times the control circuit 11 continuously outputs the REF SB request and the RFM SB request and output the count result; and, in response to the current count result reaching a set upper limit value or the control circuit 11 outputting the REF AB request or the RFM AB request, perform a reset and restart the counting;

[0049] The indication circuit 13 is connected to the output terminal of the counting circuit 12 and is configured to output a valid indication signal FLAG if the current counting result is within a preset range, and output an invalid indication signal FLAG otherwise.

[0050] In practical applications, the circuit provided in this embodiment can be applied to various memories. For example, it can be applied to, but not limited to, double data rate synchronous dynamic random access memory (DDR).

[0051] Among them, the REF request is used to request the memory to perform a regular refresh. The regular refresh mentioned here includes the refresh that the memory needs to perform in order to achieve normal retention of data. Specifically, combined with the working principle of the aforementioned memory, it can be seen that data storage is actually achieved by storing a certain amount of charge on the capacitor in the storage unit. For example, the presence of charge on the capacitor indicates that the stored data is 1, and the absence of charge indicates that the stored data is 0. In actual applications, since the charge on the capacitor will be lost over time, in order to retain the stored data, 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. This process is called regular refresh. The specific processing process of regular refresh includes reading out the stored data and rewriting it.

[0052] Based on the refresh granularity, REF refresh further includes REF AB refresh and REF SB refresh. Similarly, the difference between the two lies in whether the regular refresh targets all memory blocks of all memory bank groups or a specific memory block of all memory bank groups. It can be seen that the granularity of same-block refresh, such as same-block regular refresh and same-block refresh management refresh, is smaller than that of full-block refresh, such as full-block regular refresh and full-block refresh management refresh.

[0053] Combined with the scenario example: When the refresh management function (RFM) is turned off, the memory first performs a normal refresh, that is, the control circuit 11 outputs a REF AB request or a REF SB request according to the address command signal CA<…>. At the same time, the counting circuit 12 counts the number of consecutive executions of REF SB refresh. When the number of consecutive executions of REF SB refresh is within a preset range, the indication circuit 13 outputs a valid indication signal FLAG; accordingly, when the indication signal FLAG is valid, the control circuit 11 outputs an RFM AB request or an RFM SB request according to the address command signal CA<…>. At the same time, the counting circuit 12 continues to accumulate the number of consecutive executions of RFM SB refresh based on the previous counting result of the consecutive execution of REF SB refresh, until the counting result reaches the set upper limit value, and then resets to 0. Accordingly, the indication circuit 13 outputs an invalid indication signal FLAG, and the memory performs a normal refresh again.

[0054] In combination with the above scheme, the frequency of RFM SB refresh can be flexibly adjusted when the refresh management function is turned off. For example, taking the example of executing a group of same-block refresh management refresh after every four groups of same-block regular refreshes, the starting value of the preset range can be set to the sum of the number of four groups of same-block regular refreshes. Taking the example of each group of same-block regular refreshes including four same-block regular refreshes, it can be seen that the total number of refreshes of the four groups of same-block regular refreshes is 16, so the starting value of the preset range can be set to 16. The end value of the preset range can be set according to the number of refreshes required for each group of same-block refresh management refreshes. For example, if each group of same-block refresh management refreshes is also set to include four same-block refresh management refreshes, the end value of the preset range can be set to 20. That is, in one example, the preset range is 16 to 20. Accordingly, when the counting result is 16 to 20, the indication circuit 13 outputs a valid indication signal. Furthermore, an upper limit value can be set as needed. After the refresh management refresh of the same block is completed, the counting result is reset, the counting circuit 12 is controlled to enter the next counting round, and the corresponding indication circuit 13 again outputs an invalid indication signal. The memory performs a normal refresh of the entire block or the same block according to the received address command signal. In combination with the above example, the upper limit value can be set to 20.

[0055] In conjunction with the above solution, when the refresh management function is disabled, RFMSB refresh can be executed promptly based on the actual memory refresh status and the flexibly adjustable RH protection frequency. This allows for timely and effective RH protection even when the refresh management function is disabled. Furthermore, the solution of this embodiment cleverly utilizes the circuitry originally used to generate RFMSB requests. When the RFM function is disabled, this circuitry is reused to generate refresh requests for RH protection. This means that a single RH control circuit can be shared for both REFSB and RFMSB, eliminating the need for dedicated circuitry specifically for RH protection. This significantly simplifies the design difficulty and complexity of the RH protection and saves circuit area.

[0056] In another scenario, when the refresh management function is enabled, the refresh control circuit may also respond to the address command information issued by the processor, parse the address command signal, and perform the corresponding refresh. That is, in one example, the control circuit 11 is further configured to output a REF AB request, a REF SB request, an RFM AB request, or an RFM SB request according to the received address command signal CA<…> when the refresh management function is enabled;

[0057] Among them, the address command information includes a first address command and a second address command; among them, different level states of the first address command respectively represent the regular refresh type and the refresh management refresh type, and different level states of the second address command respectively represent the full block refresh type and the same block refresh type.

[0058] In one example, the first address command is CA9, and the second address command is CA10. As an example, the mapping relationship between the address command and the refresh type is shown in Table 1. Table 1 is an example of address commands corresponding to different refresh types, where H represents a high level, L represents a low level, and V represents an arbitrary value. RIR is the Refresh Interval Rate Indicator, which is used to indicate whether REF CMD is sent at a frequency of one times or two times. The values ​​of the remaining parameters can refer to the relevant technology. Referring to Table 1, when a refresh needs to be performed, the chip select (CS) signal is in a low level state (L), and the states of the address commands CA0 to CA5 are shown in Table 1, indicating that a refresh is required. Among them, CA9 and CA10 are used to indicate the type of refresh, and CA9 in different level states is used to indicate whether this refresh is a regular refresh or a refresh management refresh, and CA10 in different level states is used to indicate whether this refresh is a full block refresh or a same block refresh. In one example, combined with the example in the table below, CA9 can be set to a low level to indicate RFM refresh, and not to a low level to indicate REF refresh; setting CA10 to a low level indicates full block refresh, and a high level indicates same block refresh. Therefore, based on the status of CA9 and CA10 in the currently received address command signal, the refresh type of this refresh can be determined. For example, when CA9 is low and CA10 is high, it means that the type of this refresh is RFM refresh of the same block. In addition, as shown in Table 1, CA6 and CA7 are used for same block refresh (such as RFM SB refresh or REF SB refresh) to indicate the Bank that needs to be refreshed. Combined with the example in the table below, assuming that the high level is valid, when CA6 is high and CA7 is low in the received address command information, it means that the Bank that needs to be refreshed in the same block is BA0. Among them, the signal of CA8 can be any value.

[0059] Table 1

[0060] By parsing the address command signal, the specific type of refresh can be determined and the corresponding refresh request can be output, so that when the refresh management function is turned on, the memory responds to the instructions issued by the processor and performs the corresponding type of refresh, thereby realizing RH protection when the refresh management function is turned on.

[0061] The control circuit outputs a corresponding type of refresh request in response to the address command signal according to whether the current refresh management function is enabled and whether the indication signal is valid. The specific implementation circuit is not limited. In one example, FIG5 is a structural diagram of an example control circuit. As shown in FIG5, the control circuit 11 includes:

[0062] The first control sub-circuit 21 receives a mode register instruction MRS<…>, a first address command CA9, and an indication signal FLAG, and is configured to detect whether the refresh management function is enabled according to the mode register instruction MRS<…>, and output a first signal in combination with the first address command CA9 and the indication signal FLAG. If the refresh management function is enabled, the first signal consistent with the first address command CA9 is output; if the refresh management function is disabled, the first signal indicating a normal refresh type is output in response to the currently invalid indication signal FLAG, and the first signal indicating a refresh management refresh type is output in response to the currently valid indication signal FLAG.

[0063] The transmission circuit 22 receives the second address command CA10 and is configured to delay the second address command CA10 for a predetermined time and output the delayed signal as a second signal.

[0064] The decoding circuit 23 is connected to the first control sub-circuit 21 and the transmission circuit 22, and is used to receive the first signal and the second signal, and in response to the refresh instruction REF CMD, output a corresponding type of refresh request according to the level status of the first signal and the second signal.

[0065] Among them, refresh requests include but are not limited to REF AB request, REF SB request, RFM AB request and RFM SB request. It should be noted that the first address command is CA9 and the second address command is CA10 in the figure. This is only an example. In actual application, the first address command and the second address command can be determined according to the memory type and model, and can also be other address command signals. Among them, whether the refresh management function is enabled can be determined by reading the data in the mode register. For example, in the mode register MRS58 <0> Different values ​​are defined in the _ ... <0> Write 0 in the MRS58 when the refresh management function is turned on. <0> Write 1 in. The first control sub-circuit 21 can then <0> The data read from the READ_MODE function determines whether the refresh management function is enabled.

[0066] It can be understood that when the refresh management function is enabled, the memory responds to the RFM command issued by the processor and performs an RFM refresh to implement RH protection. Therefore, the first control subcircuit 21 can directly transmit the received first address command to the decoding circuit 23 for decoding. Specifically, in this example, when the refresh management function is enabled, the first control subcircuit 21 outputs a first signal with a level consistent with the first address command. The term "consistent" herein refers to a consistent level and does not limit the signals to being identical in timing, as delays in signal generation and transmission must also be considered in practical applications. Referring to the structure of Figure 5 , when the refresh management function is enabled, if CA9 received by the first control subcircuit 21 is high, the output first signal is a high signal; otherwise, the output first signal is a low signal. In this case, the first control subcircuit 21 essentially performs the function of signal transmission. When the refresh management function is disabled, the processor does not instruct the memory to perform the RFM refresh required for RH protection. Therefore, the first control subcircuit 21 outputs the first signal based on whether the indication signal FLAG generated by the indication circuit 13 based on the count result of the counting circuit 12 is valid. Specifically, when there is no need to perform RFM refresh, the indication signal FLAG is in an invalid state, and the first control sub-circuit 21 outputs a first signal representing a regular refresh type, for example, the level state of the first signal is a high level at this time. However, when it is necessary to perform RFM refresh, the indication circuit 13 will output a valid indication signal FLAG, and accordingly, the first control sub-circuit 21 will output a first signal representing a refresh management refresh type in response to the valid indication signal FLAG, for example, the level state of the first signal is a low level at this time. In other words, this regular refresh is replaced by a refresh management refresh through the above operation, so that the decoding circuit outputs an RFM refresh request based on the first signal, thereby realizing RH protection when the refresh management function is turned off.

[0067] Specifically, the second address command is used to indicate whether the refresh target is the entire block or the same block, and does not affect whether the current refresh is a regular refresh or a refresh management refresh. Therefore, the transmission circuit 22 only needs to transmit the second address command to the decoding circuit 23. Considering the timing matching between the first signal and the second signal, a transmission circuit is provided on the transmission path of the second signal to delay the second address command for a certain period of time before outputting it as the second signal to the decoding circuit 23. As an example, the delay parameter of the transmission circuit can be determined based on the timing delay between the first signal and the first address command to match the timing between the first signal and the second signal. This prevents the subsequent decoding circuit from outputting erroneous decoding results due to input signal timing mismatches, thereby improving the accuracy of refresh control.

[0068] The implementation circuits of the first control sub-circuit, the transmission circuit, and the decoding circuit are not limited. As an example, FIG6 is a structural diagram of an exemplary first control sub-circuit. As shown in FIG6, the first control sub-circuit 21 includes: a first NOT gate 211, a first NAND gate 212, a second NOT gate 213, a second NAND gate 214, and a first AND gate 215;

[0069] The first input terminal of the first NAND gate 212 receives the indication signal FLAG; the input terminal of the first NOT gate 211 receives the mode register instruction MRS<…>, the output terminal of the first NOT gate 211 is connected to the second input terminal of the first NAND gate 212, and the output terminal of the first NAND gate 212 is connected to the first input terminal of the first AND gate 215;

[0070] A first input terminal of the second NAND gate 214 receives the mode register instruction MRS<…>; an input terminal of the second NOT gate 213 receives the first address command CA9, an output terminal of the second NOT gate 213 is connected to a second input terminal of the second NAND gate 214, and an output terminal of the second NAND gate 214 is connected to a second input terminal of the first AND gate 215;

[0071] The output end of the first AND gate 215 is used to output a first signal; wherein, the mode register instruction MRS<…> is a high level indicating that the refresh management function is turned on, and the mode register instruction MRS<…> is a low level indicating that the refresh management function is turned off; the indication signal FLAG is a high level indicating that the indication signal is valid, and the indication signal FLAG is a low level indicating that the indication signal is invalid.

[0072] Specifically, the first control subcircuit 21 plays a transmission role when the refresh management function is turned on, that is, the output level state is consistent with the first address command. When the refresh management function is turned off, if the indication signal is invalid, the output level state represents the first signal of the conventional refresh type; if the indication signal is valid, the output level state represents the first signal of the refresh management refresh type.

[0073] 6 , when the refresh management function is enabled, i.e., MRS<…> is 1, MRS<…> passes through the inversion of the first NOT gate 211 (level state is 0) and reaches the second input of the first NAND gate 212. Since the input to the second input of the first NAND gate 212 is 0, the input signal at the first input, i.e., the indication signal, is shielded. Regardless of whether the level state of the indication signal is 1 or 0, the first NAND gate 212 outputs 1, i.e., the first input of the first AND gate is 1 at this time, and the level state of the first signal depends on the level state of the second input of the first AND gate. At this time, the refresh management function is enabled, MRS<…> is 1, i.e., the first input of the second NAND gate 214 is 1, so the level state of the first input of the second NAND gate 214, i.e., the level state of the first address command CA9, can be reflected in the output of the second NAND gate. For example, if the first address command is 1, then after being inverted by the second NOT gate 213, the value is 0. The second input terminal of the second NAND gate 214 is 0, and after the NAND operation is performed by the second NAND gate 214, the first signal output is 1, which is consistent with the level state of the first address command CA9. Conversely, if the first address command CA9 is 0, then after being inverted by the second NOT gate 213, the value is 1. The second input terminal of the second NAND gate 214 is 1, and after the NAND operation is performed by the second NAND gate 214, the first signal output is 0, which is still consistent with the level state of the first address command CA9.

[0074] Still referring to the structure of FIG6 , when the refresh management function is turned off, that is, MRS<…> is 0, MRS<…> passes through the inversion of the first NOT gate 211 (the level state is 1) and reaches the second input terminal of the first NAND gate 212. Since the input of the second input terminal of the first NAND gate 212 is 1, the input signal at the first input terminal, that is, the level state of the indication signal FLAG, can be reflected in the output of the first NAND gate 212. For example, if the indication signal is invalid (0), the first input terminal of the first NAND gate 212 is 0, and the first NAND gate 212 outputs 1 after performing a NAND operation. For the second NAND gate 214, the signal at the first input terminal, that is, the MRS<…> signal, is 0, so the second NAND gate 214 outputs 1, and accordingly, the first AND gate 215 performs an AND operation on the input signal and outputs the first signal as 1. It should be noted that in the above example, although the first address command is shielded at the second NAND gate 214, it can be understood that when the refresh management function is disabled, the refreshes indicated by the processor are all regular refreshes. Therefore, combined with the example in Table 1 above, it can be seen that the first address command is not 0, for example, it is 1, so the first AND gate 215 outputs a first signal of 1, and the level states of the two are consistent. For another example, if the indication signal is valid (1), the first input of the first NAND gate 212 is 1, and MRS<...> is 1 after being inverted by the first NOT gate 211, that is, the second input of the first NAND gate 212 is 1. After the first NAND operation, the first NAND gate 212 outputs 0, which reaches the first input of the first AND gate 215. At this time, the signal at the second input of the first AND gate 215, that is, the signal output by the second NAND gate 214, is shielded, and the first AND gate 215 outputs 0, indicating the refresh management refresh type. It should be noted that when decoding based on the first signal and the second signal, the decoding circuit 23 may refer to the mapping relationship between the first address command and the second address command and the refresh type. For example, decoding may still be performed with reference to Table 1. That is to say, in essence, when the refresh management function is turned off and the indication signal is valid, the level state of the first address command is modified and replaced and then input to the decoding circuit, so that the modified and replaced signal represents the refresh management refresh. Accordingly, the decoding circuit outputs an RFM type refresh request to implement RH protection. The solution of this embodiment reuses the circuit that generates the RFM SB request. When the RFM function is turned off, a refresh request for RH protection is generated. There is no need to design a dedicated circuit specifically for RH protection, thereby further simplifying the design difficulty and complexity of RH and saving circuit area.

[0075] Specifically, the transmission circuit 22 delays the second address command and transmits it as the second signal to the decoding circuit to match the timing of the first signal and the second signal. In one example, FIG7 is a structural example diagram of a control circuit of an example. As shown in FIG7 , the transmission circuit 22 includes: an even number of third NOT gates 221 and a first buffer 222 connected in series; the input end of the first third NOT gate 221 receives the second address command CA10, and the output end of the last third NOT gate 221 is connected to the input end of the first buffer 222, and the output end of the first buffer 222 is used to output the second signal. Among them, the number of third NOT gates can be determined according to the required delay. The figure takes two third NOT gates as an example. In this example, the transmission circuit is composed of NOT gates and buffers to match the timing of the first signal and the second signal, and is implemented by conventional devices, which can further simplify the circuit and process and reduce costs.

[0076] In one example, FIG8 is a structural diagram of an exemplary decoding circuit. As shown in FIG8 , the decoding circuit 23 includes:

[0077] A first flip-flop 231, wherein an input terminal of the first flip-flop 231 receives a first signal, a non-inverting output terminal of the first flip-flop 231 is used to output a first sub-signal CA9T, an inverting output terminal of the first flip-flop 231 is used to output a second sub-signal CA9B, and a clock terminal of the first flip-flop 231 receives a refresh instruction REF CMD;

[0078] a second flip-flop 232 , wherein an input terminal of the second flip-flop 232 receives the second signal, a non-inverting output terminal of the second flip-flop 232 is used to output the third sub-signal CA10T, an inverting output terminal of the second flip-flop 232 is used to output the fourth sub-signal CA10B, and a clock terminal of the second flip-flop receives a refresh instruction REF CMD;

[0079] A second buffer 233, where an input end of the second buffer 233 receives a refresh command REF CMD, and the second buffer 233 is used to delay and then output the refresh command REF CMD;

[0080] a first multi-input AND gate 234 , wherein input terminals of the first multi-input AND gate 234 are respectively connected to the second sub-signal CA9B, the fourth sub-signal CA10B, and the output terminal of the second buffer 233 , and the first multi-input AND gate 234 is configured to output an RFM AB request;

[0081] a second multi-input AND gate 235 , wherein input terminals of the second multi-input AND gate 235 are respectively connected to the first sub-signal CA9T, the fourth sub-signal CA10B, and the output terminal of the second buffer 233 , and the second multi-input AND gate 235 is configured to output a REF AB request;

[0082] a third multi-input AND gate 236 , wherein input terminals of the third multi-input AND gate 236 are respectively connected to the first sub-signal CA9T, the third sub-signal CA10T, and the output terminal of the second buffer 233 , and the third multi-input AND gate 236 is configured to output a REF SB request;

[0083] The fourth multi-input AND gate 237 has its input terminals connected to the second sub-signal CA9B, the third sub-signal CA10T and the output terminal of the second buffer 233 . The fourth multi-input AND gate 236 is used to output the RFM SB request.

[0084] Specifically, the figure uses the first address command CA9 and the second address command CA10 as an example. In this example, corresponding multi-input AND gates are set for each type of refresh. For example, the first multi-input AND gate corresponds to RFM AB refresh, the second multi-input AND gate corresponds to REF AB refresh, the third multi-input AND gate corresponds to REF SB refresh, and the fourth multi-input AND gate corresponds to RFM SB refresh. The input of each multi-input AND gate can be determined according to the signal level state corresponding to the refresh type corresponding to itself. The signal level state can be determined with reference to the mapping relationship shown in Table 1. For example, the signal representing RFM AB refresh (composed of CA9 and CA10 in Table 1) is 00, the signal representing REF AB refresh is 10, the signal representing REF SB refresh is 11, and the signal representing RFM SB refresh is 01. The decoding circuit 23 outputs the corresponding refresh request based on the signal composed of the current first signal and the second signal. For example, when the first signal is 1 and the second signal is 0, the first sub-signal is 1, the second sub-signal is 0, the third sub-signal is 0, and the fourth sub-signal is 1. Correspondingly, for the first multi-input AND gate, its input signals are the second sub-signal and the fourth sub-signal, that is, 0 and 1. After the AND operation is performed by the first multi-input AND gate, 0 is output, indicating that this refresh is not the full block refresh management refresh request RFM AB; for the second multi-input AND gate, its input signals include the first sub-signal and the fourth sub-signal, that is, 1 and 1. After the AND operation is performed by the second multi-input AND gate, 1 is output, that is, a valid full block regular refresh request REF AB is output.

[0085] The delay parameter of the second buffer 233 can be determined based on the delay of the first flip-flop 231 and the second flip-flop 232 to match the timing of the signals input to each multi-input AND gate, thereby avoiding output errors caused by timing misalignment. It should be noted that the decoding circuit operates in response to the refresh instruction. That is, the decoding circuit samples information of the first signal and the second signal in response to the refresh instruction, and transmits the sampled information and the delay-matched refresh instruction to each multi-input AND gate for operation, thereby avoiding decoding errors caused by timing misalignment.

[0086] In this example, the decoding circuit is composed of a trigger, a buffer, and a multi-input AND gate, so as to accurately output the corresponding refresh request according to the first signal and the second signal, realize RH protection, and is implemented by conventional devices, which can further simplify the circuit and process and reduce costs.

[0087] Specifically, the indication signal is used to instruct the control circuit whether to perform RFM refresh when the refresh management function is turned off. That is, the frequency of occurrence of the valid indication signal determines the frequency of the RFM refresh, and the length of the valid period window of a single indication signal determines the number of times the RFM refresh is performed continuously each time. As an example, in actual applications, taking into account the type and standard of the memory, for example, based on the relevant standards, every 4 RFM SB refresh requests are defined as a group, and by outputting a group of requests, the refresh of all banks of the memory is completed, thereby completing an RFM SB refresh of the memory. Therefore, in order to ensure the regularity and integrity of the instructions, the number of times the RFM refresh is performed continuously each time is set to 4 times, and one group of refreshes in every 5 groups of REF SB refreshes is replaced with an RFM SB refresh. In one example, the last group of refreshes in every 5 groups of REF SB refreshes is replaced with an RFM SB refresh, that is, the group of refreshes after every 4 groups of REF SB refreshes is an RFM SB refresh.

[0088] In order to output the RFMSB request in a timely manner according to the refresh strategy, a counting method is used to indicate when to switch to the RFMSB request. In one example, FIG9 is a structural diagram of an exemplary counting circuit. As shown in FIG9, the counting circuit 12 includes: a counting clock circuit 31, a reset circuit 32, and a multi-stage third flip-flop 33 corresponding to the binary bit;

[0089] The counting clock circuit 31 is connected to the control circuit 11 and is used to output the counting clock CK when receiving a REF SB request or when the current indication signal FLAG is valid and an RFM SB request is received;

[0090] The clock terminal of the first-stage third flip-flop 33 is connected to the output terminal of the counting clock circuit 31, and the clock terminals of the other third flip-flops 33 are connected to the inverting output terminal of the third flip-flop 33 of the previous stage; the input terminal of each third flip-flop 33 is connected to the inverting output terminal of the third flip-flop 33, and the value CNT<...> output by the non-inverting output terminal of each stage of the third flip-flop 33 constitutes the output of the counting circuit 12, which is a binary representation of the counting result;

[0091] The input end of the reset circuit 32 is connected to the output end of the control circuit 11 and the multi-stage third trigger 33, and is used to output a reset signal when a REF AB request or an RFM AB request is received, or when the counting result is an upper limit value; the output end of the reset circuit 32 is connected to the reset end of each stage of the third trigger 33.

[0092] The number of third flip-flops 33 can be determined according to the upper limit of the count. For example, when the upper limit is 20, the corresponding binary representation contains five bits, and five third flip-flops can be set accordingly. Optionally, six third flip-flops can also be set. The figure takes the setting of five levels of third flip-flops as an example. The results output by the in-phase output terminal of each third flip-flop are CNT <0> ~CNT <4> , forming a binary representation of the counting result, the results output by the inverting output terminal of each third trigger are CNTB <0> ~CNTB <4> . Specifically, the counting clock circuit 31 is used to provide the counting clock CK. In order to realize the frequency of the aforementioned memory performing RFM SB refresh and the number of requests in each group of RFM SB requests, the counting clock outputs the counting clock only when it receives the REF SB request and the RFM SB request, so as to instruct each third trigger to perform cumulative counting. In other words, the count value output by the counting clock circuit 31 reflects the number of REF SB refreshes and RFM SB refreshes. In combination with the above content, in order to ensure the integrity of the CMD command and to ensure that the memory can accurately identify which four REF SB refresh requests form a group of requests, during the counting process, if a full block refresh request is received, such as an RFM AB request or a REF AB request, the counting is interrupted and the count is reset, such as returning to zero.

[0093] Taking the example of executing one RFMSB refresh for every four REFSB refreshes, when the refresh management function is disabled, MRS<…> is 0. Based on the above example, it can be seen that the first address command is masked, and a normal refresh is initially executed. Therefore, for example, if the first control subcircuit 21 maintains an output of 1, whether the refresh is for the entire block or the same block depends on the second address command. In short, the initial refresh may be a REFSB refresh or a REF AB refresh. If a REFSB refresh has not been executed, the count result of the REFSB refresh and RFMSB refresh is 0, which is not within the range of 16 to 20. The indication circuit outputs an invalid indication signal, that is, FLAG is 0 at this time. If the processor instructs to execute a REF SB refresh, the control circuit 11 decodes the address command signal and outputs a REF SB request. Accordingly, the counter clock circuit 31 responds to the REF SB request output by the control circuit 11 by outputting a pulse signal as the count clock CK. Each third flip-flop continues counting, and so on, until 16 consecutive REF SB refreshes have been executed. When the count result reaches 16, the indication circuit 13 begins outputting a valid indication signal. During this counting process, the count result represents the number of consecutive REF SB refreshes currently being executed. During this counting period, the count is reset whenever the control circuit 11 outputs a REF SB request.

[0094] After the indication circuit 13 outputs a valid indication signal, the control circuit 11 outputs an RFM AB request or an RFM SB request according to the second address command. If the control circuit 11 outputs an RFM AB request, considering that the refresh range of RFM AB is wider, there is no need to perform an RFM SB refresh, so the execution count is reset. Accordingly, the indication circuit 13 again outputs an invalid indication signal and no longer performs an RFM SB refresh. If the control circuit 11 outputs an RFM SB request, the counting clock circuit 31 responds to the request by outputting a counting clock. Accordingly, the third flip-flop 33 accumulates the current RFM SB refresh, that is, the count result is updated from 16 plus 1 to 17, and so on, until a set of RFM SB requests is executed, that is, four consecutive RFM SB refreshes are executed, and the count result is updated to 20, reaching the upper limit of 20. Then, the reset circuit 32 resets the third flip-flop 33, the count result is reset to 0, the indication circuit 13 outputs an invalid indication signal, and the memory begins regular refresh again, repeating the cycle.

[0095] In one example, as shown in Figure 9, the counting clock circuit 31 includes: a second AND gate 311 and a first OR gate 312; the first input of the first OR gate 312 receives a REF SB request, the second input of the first OR gate 312 is connected to the output of the second AND gate 311, and the output of the first OR gate 312 serves as the output of the counting clock circuit 31 and is connected to the clock terminal of the first-stage third flip-flop 33; the first input of the second AND gate 311 receives an RFM SB request, and the second input of the second AND gate 311 receives an indication signal FLAG. In this example, a counting clock circuit is formed based on AND gates and OR gates, thereby providing a counting clock for counting the number of refreshes in the same block. This is implemented using conventional components, further simplifying the circuit and process, and reducing costs.

[0096] In order to achieve the reset in the aforementioned situation, in one example, FIG10 is a structural diagram of an exemplary reset circuit. As shown in FIG10 , the reset circuit 32 includes: a second OR gate 321, a third OR gate 322, and a fifth multi-input AND gate 323;

[0097] The first input terminal of the second OR gate 321 receives the RFM AB request, and the second input terminal of the second OR gate 321 receives the REF AB request;

[0098] The fifth multi-input AND gate 323 has multiple input terminals for receiving multiple first input signals and performing an AND logic operation; the multiple first input signals correspond to multiple bits of the upper limit value. If any bit of the upper limit value is at a high level, the corresponding first input signal is the corresponding bit of the counting result; if any bit of the upper limit value is at a low level, the corresponding first input signal is the inverted signal of the corresponding bit of the counting result.

[0099] A first input of the third OR gate 322 is connected to the output of the second OR gate 321 , a second input of the third OR gate 322 is connected to the output of the fifth multi-input AND gate 323 , and an output of the third OR gate 322 is used to output a reset signal.

[0100] It should be noted that the signal input to the fifth multi-input AND gate 323 in the figure is based on an upper limit of 20. This figure is only an example and does not exclude other possible implementations. For example, the upper limit can also be set to other values. Specifically, the first input signal input to the fifth multi-input AND gate 323 in the figure is based on the CNT corresponding to each bit of the counting result. <4> ~CNT <0> For example, the upper limit value is 20, and its binary representation is 10100. Specifically, the fifth bit of the upper limit value is 1, so the corresponding first input signal is CNT <4> ; The 4th bit of the upper limit value is 0, so the corresponding first input signal is CNT <3> (is 0) the inverted signal CNTB <3> ; The third bit of the upper limit value is 1, so the corresponding first input signal is CNT <2> ; Similarly, the other two first input signals are CNT <1> and CNT <0> Based on the above, it can be seen that only when the data composed of the output results of each third flip-flop is 10100, the fifth multi-input AND gate 323 outputs a valid reset signal, i.e., 1, thereby achieving timely execution of count reset when the count result reaches the upper limit value.

[0101] The counting circuit of the above example includes a counting clock circuit, a reset circuit and a multi-stage trigger, so as to accurately count the number of REF SB refreshes and the continuous refresh times of REF SB refreshes, and reset in time when the counting result reaches the upper limit value, and reset in time when the full block refresh is detected during the counting process, thereby providing accurate counting results for the indication circuit.

[0102] Correspondingly, the indication circuit 13 outputs an indication signal based on the counting result. In one example, FIG11 is a structural diagram of an exemplary indication circuit. As shown in FIG11 , the indication circuit 13 includes:

[0103] a sixth multi-input AND gate 41 having a plurality of input terminals for respectively receiving the inverted signal of the first bit, the inverted signal of the second bit, the signal of the third bit, the inverted signal of the fourth bit, and the signal of the fifth bit in the current counting result;

[0104] a seventh multi-input AND gate 42 having a plurality of input terminals for respectively receiving the inverted signal of the third bit, the inverted signal of the fourth bit, and the signal of the fifth bit in the current counting result;

[0105] The fourth OR gate 43 has a first input connected to the output of the sixth multi-input AND gate 41 , a second input connected to the output of the seventh multi-input AND gate 42 , and an output of the fourth OR gate 43 for outputting the indication signal FLAG.

[0106] 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 fifth position is CNT <4> Taking the current count result as 15 as an example, the corresponding CNT <4> ~CNT <0> The value of 01111 is 01111. Accordingly, the inverted signal of the third bit, the inverted signal of the fourth bit, and the signal of the fifth bit in the counting result received by the seventh multi-input AND gate 42 are all 0. Therefore, the seventh multi-input AND gate 42 outputs 0, and the corresponding third AND gate 44 outputs 0. Simultaneously, the inverted signal of the first bit, the inverted signal of the second bit, the inverted signal of the fourth bit, and the signal of the fifth bit in the counting result received by the sixth multi-input AND gate 41 are all 0. Therefore, the sixth multi-input AND gate 41 outputs 0. Accordingly, the indication signal output by the fourth OR gate 43 is 0, indicating that the indication signal is invalid.

[0107] Let's take the example of counting results falling into the preset range: for example, if the counting result is 16, the corresponding CNT <4> ~CNT <0> is 10000. The CNT <2> =0, and the rest of the inputs are 1, so the sixth multi-input AND gate 41 outputs 0. The seventh multi-input AND gate 42 receives the inverted signal CNTB of the third bit in the counting result. <2> , the 4th bit inverted signal CNTB <3> And the 5th signal CNT <4> are all 1, so the seventh multi-input AND gate 42 outputs 1. Correspondingly, the fourth OR gate 43 outputs 1, indicating that the indication signal is valid; for example, if the counting result is 17, the corresponding CNT <4> ~CNT <0> The signal CNT of the third bit in the counting result received by the sixth multi-input AND gate 41 is 10001. <2> =0, and the rest of the inputs are 1, so the sixth multi-input AND gate 41 outputs 0. The seventh multi-input AND gate 42 receives the inverted signal CNTB of the third bit in the counting result. <2> , the 4th bit inverted signal CNTB <3> And the 5th signal CNT <4> are both 1, so the seventh multi-input AND gate 42 outputs 1. Correspondingly, the fourth OR gate 43 outputs 1, indicating that the indication signal is valid. Similarly, compared with the case where the counting result is 17, the difference is that when the counting result is 18, CNT <1> ~CNT <0> When the count is 10 and the result is 19, CNT <1> ~CNT <0> is 11, but no matter which value the counting result is from 17 to 19, the CNTB received by the seventh multi-input AND gate <2> 、CNTB <3> and CNT <4> The seventh multi-input AND gate 42 always outputs 1. At this time, for the sixth multi-input AND gate 41, when the counting result is any value between 17 and 19, CNT <2> is always 0, so the sixth multi-input AND gate 41 always outputs 0. When the counting result is 20, the corresponding CNT <4> ~CNT <0> is 10100, that is, the CNT <4> 、CNTB <3> 、CNT <2> 、CNTB <1> 、CNTB <0> are all 1, so the sixth multi-input AND gate 41 outputs 1. At this time, due to CNTB <2> =0, so the seventh multi-input AND gate 42 outputs 0. In this case, the indication circuit 13 continues to output 1, that is, outputs a valid FLAG. It should be noted that, in conjunction with the above example, when the count result is 20, the reset circuit 32 is also triggered to reset the count. It can be understood that after the count result is reset to 00000, the indication circuit 13 will output an invalid FLAG, and the memory will perform normal refresh and recounting again.

[0108] The indication circuit of the above example can output an effective indication signal in a timely manner when the current counting result is within the preset range. Moreover, the indication circuit is implemented by conventional devices such as AND gates and OR gates, which can further simplify the circuit and process and reduce costs.

[0109] It should be noted that the division of the structural modules in this embodiment is merely an example and does not exclude other division or combination methods. For example, in actual applications, the counting circuit and the indication circuit can be integrated as a whole, for example, packaged as a single chip. For example, FIG. 12 shows an example refresh request counter for outputting the aforementioned indication signal FLAG.

[0110] The refresh control circuit provided in this embodiment includes a control circuit, a counting circuit, and an indication circuit. When the refresh management function is disabled, the control circuit determines whether to execute a regular refresh or an RFM refresh based on the validity of an indication signal. The validity of the indication signal is determined by the indication circuit based on the cumulative number of consecutive regular refresh requests and RFM refresh requests for the same block output by the counting circuit. With the above scheme, when the refresh management function is disabled, the corresponding type of refresh request is output based on the received address command signal according to the status of the indication signal, thereby enabling RH protection operation even when the refresh management function is disabled.

[0111] Example 2

[0112] FIG13 is a structural diagram of an exemplary memory. As shown in FIG13 , the memory includes: a row hammer refresh operation module 51 and a refresh control circuit 52 as in any of the above examples;

[0113] The row hammer refresh operation module 51 is connected to the refresh control circuit 52 and is configured to execute a row hammer refresh in response to an RFM SB request output by the refresh control circuit 52 .

[0114] In conjunction with the solution of the aforementioned embodiment, taking DRAM as an example: Based on the aforementioned solution, when the refresh management function of the memory is enabled, the refresh control circuit 52 outputs a corresponding refresh request according to the instruction issued by the processor, so that the memory performs the corresponding type of refresh according to the refresh request, thereby achieving RH protection. When the refresh management function of the memory is disabled, the refresh control circuit 52 periodically switches the REF SB refresh request issued by the processor to an RFM SB refresh request based on the set RFM SB refresh cycle and the number of consecutive refreshes in each cycle, thereby achieving RH protection. In addition, the solution of this embodiment cleverly utilizes the circuit originally used to generate RFM SB requests. When the RFM function is disabled, this circuit is reused to generate refresh requests for RH protection. That is, a set of RH control circuits can be shared for REF SB and RFM SB, eliminating the need to design a dedicated circuit specifically for RH protection. This further greatly simplifies the design difficulty and complexity of RH and saves circuit area.

[0115] In the memory provided in this embodiment, the refresh control circuit includes a control circuit, a counting circuit, and an indication circuit. When the refresh management function is disabled, the control circuit determines whether to execute a regular refresh or an RFM refresh based on the validity of an indication signal. The validity of the indication signal is determined by the indication circuit based on the cumulative number of consecutive regular refresh requests and RFM refresh requests for the same block output by the counting circuit. With the above solution, when the refresh management function is disabled, the corresponding type of refresh request is output based on the received address command signal according to the status of the indication signal, thereby enabling RH protection operation even when the refresh management function is disabled.

[0116] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only.

[0117] It will be understood 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 (52), characterized in that: Applied to a memory, comprising: a control circuit (11), a counting circuit (12) and an indication circuit (13); The control circuit (11) is connected to the output end of the indication circuit (13), and is used for, when the refresh management function is turned off, if the indication circuit (13) currently outputs an invalid indication signal, then outputting a full-block regular refresh request or a same-block regular refresh request according to the received address command signal; if the indication circuit (13) currently outputs a valid indication signal, then outputting a full-block refresh management refresh request or a same-block refresh management refresh request according to the received address command signal, wherein the same-block refresh management refresh request is used to instruct the execution of a row hammer refresh; The counting circuit (12) is connected to the output end of the control circuit (11) and is used to count the cumulative number of times the control circuit (11) continuously outputs the same-block regular refresh request and the same-block refresh management refresh request, and output the counting result; and, in response to the current counting result reaching a set upper limit value, or the control circuit (11) outputs the full-block regular refresh request or the full-block refresh management refresh request, perform a reset and restart the counting; The indication circuit (13) is connected to the output end of the counting circuit (12) and is used to output the valid indication signal if the current counting result is within a preset range, and otherwise output the invalid indication signal.

2. The refresh control circuit (52) according to claim 1, characterized in that: The control circuit (11) is further used to output a full-block regular refresh request, a same-block regular refresh request, a full-block refresh management refresh request or a same-block refresh management refresh request according to a received address command signal when the refresh management function is turned on; Among them, the address command information includes a first address command and a second address command; wherein, different level states of the first address command respectively represent a conventional refresh type and a refresh management refresh type, and different level states of the second address command respectively represent a full block refresh type and a same block refresh type.

3. The refresh control circuit (52) according to claim 2, characterized in that: The control circuit (11) comprises: A first control subcircuit (21) receives a mode register instruction, the first address command and the indication signal, and is used to detect whether the refresh management function is turned on according to the mode register instruction, and output a first signal in combination with the first address command and the indication signal; wherein if the refresh management function is turned on, a first signal consistent with the first address command is output; if the refresh management function is turned off, a first signal representing a normal refresh type is output in response to a currently invalid indication signal, and a first signal representing a refresh management refresh type is output in response to a currently valid indication signal; A transmission circuit (22) receives the second address command and is used to delay the second address command for a predetermined time and then output the second address command as a second signal; A decoding circuit (23) is connected to the first control subcircuit (21) and the transmission circuit (22), and is used to receive the first signal and the second signal, and in response to a refresh instruction, output a corresponding type of refresh request according to the level states of the first signal and the second signal.

4. The refresh control circuit (52) according to claim 3, characterized in that: The first control subcircuit (21) comprises: a first NOT gate (211), a first NAND gate (212), a second NOT gate (213), a second NAND gate (214) and a first AND gate (215); The first input end of the first NAND gate (212) receives the indication signal; the input end of the first NAND gate (211) receives the mode register instruction, the output end of the first NAND gate (211) is connected to the second input end of the first NAND gate (212), and the output end of the first NAND gate (212) is connected to the first input end of the first AND gate (215); The first input end of the second NAND gate (214) receives the mode register instruction; the input end of the second NAND gate (213) receives the first address command, the output end of the second NAND gate (213) is connected to the second input end of the second NAND gate (214), and the output end of the second NAND gate (214) is connected to the second input end of the first AND gate (215); The output end of the first AND gate (215) is used to output the first signal; wherein, the high level of the mode register instruction indicates that the refresh management function is turned on, and the low level of the mode register instruction indicates that the refresh management function is turned off; the high level of the indication signal indicates that the indication signal is valid, and the low level of the indication signal indicates that the indication signal is invalid.

5. The refresh control circuit (52) according to any one of claims 3 to 4, characterized in that: The transmission circuit (22) comprises: an even number of third NOT gates (221) and a first buffer (222) connected in series in sequence; The input end of the first third NOT gate (221) receives the second address command, the output end of the last third NOT gate (221) is connected to the input end of the first buffer (222), and the output end of the first buffer (222) is used to output the second signal.

6. The refresh control circuit (52) according to any one of claims 3 to 5, characterized in that: The decoding circuit (23) comprises: A first trigger (231), wherein an input terminal of the first trigger (231) receives the first signal, a non-inverting output terminal of the first trigger (231) is used to output a first sub-signal, an inverting output terminal of the first trigger (231) is used to output a second sub-signal, and a clock terminal of the first trigger (231) receives the refresh instruction; a second trigger (232), wherein an input terminal of the second trigger (232) receives the second signal, a non-inverting output terminal of the second trigger (232) is used to output a third sub-signal, an inverting output terminal of the second trigger (232) is used to output a fourth sub-signal, and a clock terminal of the second trigger (232) receives the refresh instruction; A second buffer (233), the input end of the second buffer (233) receiving the refresh instruction, the second buffer (233) being used to output the refresh instruction after delaying; a first multi-input AND gate (234), wherein input ends of the first multi-input AND gate (234) are respectively connected to the second sub-signal, the fourth sub-signal and the output end of the second buffer (233), and the first multi-input AND gate (234) is used to output a full-block refresh management refresh request; a second multi-input AND gate (235), wherein input terminals of the second multi-input AND gate (235) are respectively connected to the first sub-signal, the fourth sub-signal and the output terminal of the second buffer (233), and the second multi-input AND gate (235) is used to output a full-block regular refresh request; a third multi-input AND gate (236), wherein input ends of the third multi-input AND gate (236) are respectively connected to the first sub-signal, the third sub-signal and the output end of the second buffer (233), and the third multi-input AND gate (236) is used to output a regular refresh request for the same block; A fourth multi-input AND gate (237), wherein the input ends of the fourth multi-input AND gate (237) are respectively connected to the second sub-signal, the third sub-signal and the output end of the second buffer (233), and the fourth multi-input AND gate (237) is used to output a refresh management refresh request for the same block.

7. The refresh control circuit (52) according to any one of claims 1 to 6, characterized in that: The counting circuit (12) comprises: a counting clock circuit (31), a reset circuit (32) and a multi-stage third trigger (33) corresponding to a binary bit; The counting clock circuit (31) is connected to the control circuit (11) and is used to output a counting clock when receiving the same-block regular refresh request, or when the current indication signal is valid and the same-block refresh management refresh request is received; The clock end of the first-stage third flip-flop (33) is connected to the output end of the counting clock circuit (31), and the clock ends of other third flip-flops (33) are connected to the inverting output end of the third flip-flop (33) of the previous stage; the input end of each third flip-flop (33) is connected to the inverting output end of the third flip-flop (33), and the value outputted by the in-phase output end of each stage of the third flip-flop (33) constitutes the output of the counting circuit (12), which is a binary representation of the counting result; The input end of the reset circuit (32) is connected to the output end of the control circuit (11) and the multi-stage third trigger (33), and is used to output a reset signal when receiving the full block regular refresh request or the full block refresh management refresh request, or when the counting result is the upper limit value; the input end of the reset circuit (32) is connected to the output end of the control circuit (11) and the multi-stage third trigger (33), and is used to output a reset signal when receiving the full block regular refresh request or the full block refresh management refresh request, or when the counting result is the upper limit value. The output terminal is connected to the reset terminal of the third trigger (33) of each stage.

8. The refresh control circuit (52) according to claim 7, characterized in that: The counting clock circuit (31) comprises: a second AND gate (311) and a first OR gate (312); The first input end of the first OR gate (312) receives the same-block regular refresh request, the second input end of the first OR gate (312) is connected to the output end of the second AND gate (311), and the output end of the first OR gate (312) serves as the output end of the counting clock circuit (31) and is connected to the clock end of the first-stage third trigger (33); The first input end of the second AND gate (311) receives the same-block refresh management refresh request, and the second input end of the second AND gate (311) receives the indication signal.

9. The refresh control circuit (52) according to claim 7, characterized in that: The reset circuit (32) comprises: a second OR gate (321), a third OR gate (322) and a fifth multi-input AND gate (323); The first input terminal of the second OR gate (321) receives the full block refresh management refresh request, and the second input terminal of the second OR gate (321) receives the full block regular refresh request; The fifth multi-input AND gate (323) has a plurality of input terminals, and is used to receive a plurality of first input signals and perform an AND logic operation; the plurality of first input signals correspond to a plurality of bits of the upper limit value, and if any bit of the upper limit value is a high level, the corresponding first input signal is the corresponding bit of the counting result, and if any bit of the upper limit value is a low level, the corresponding first input signal is the inverted signal of the corresponding bit of the counting result; The first input end of the third OR gate (322) is connected to the output end of the second OR gate (321), the second input end of the third OR gate (322) is connected to the output end of the fifth multi-input AND gate (323), and the output end of the third OR gate (322) is used to output the reset signal.

10. The refresh control circuit (52) according to any one of claims 1 to 9, characterized in that: The preset range is 16 to 20.

11. The refresh control circuit (52) according to claim 10, characterized in that: The indicating circuit (13) comprises: a sixth multi-input AND gate (41), the sixth multi-input AND gate (41) having a plurality of input terminals, for respectively receiving the inverted signal of the first bit, the inverted signal of the second bit, the signal of the third bit, the inverted signal of the fourth bit, and the signal of the fifth bit in the current counting result; A seventh multi-input AND gate (42), the seventh multi-input AND gate (42) having a plurality of input terminals, respectively receiving the inverted signal of the third bit, the inverted signal of the fourth bit and the signal of the fifth bit in the current counting result; a fourth OR gate (43), wherein a first input terminal of the fourth OR gate (43) is connected to an output terminal of the sixth multi-input AND gate (41), and a second input terminal of the fourth OR gate (43) is connected to an output terminal of the seventh multi-input AND gate (42). The output end of the fourth OR gate (43) is connected to the output end of the fourth OR gate (43), and is used to output the indication signal.

12. A memory, characterized in that: include: A row hammer refresh operation module (51) and a refresh control circuit (52) according to any one of claims 1 to 11; The row hammer refresh operation module (51) is connected to the refresh control circuit (52) and is used to execute row hammer refresh in response to the same block refresh management refresh request output by the refresh control circuit (52).

Citation Information

Patent Citations

  • Command monitoring method and device, controller, system, equipment and storage medium

    CN113342615A

  • Apparatus and method for controlling refresh operation

    CN114121076A

  • Semiconductor memory device and memory system including same

    CN115641888A

  • Refresh circuit and memory

    CN115841831A

  • Refresh circuit and memory

    WO2022160631A1