Command processing circuit and memory

By designing a command processing circuit in DRAM and using a counting circuit and a threshold decision circuit to adjust the frequency of refresh commands, the problem of inconsistent refresh command frequencies under different scenarios and temperatures is solved, achieving the flexibility and flexibility to complete ECS operations within 24 hours. Cost effective.

CN118711633APending Publication Date: 2024-09-27CHANGXIN MEMORY TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310266757.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

It is difficult to effectively adjust the frequency of refresh command generation in dynamic random access memory (DRAM) under different scenarios and temperatures with existing technology, resulting in a fixed time interval for completing error checking and clearing (ECS) operations within 24 hours, but different modes and temperatures The frequency of refresh commands under different modes is different, making it difficult to meet the needs of various scenarios.

Method used

By designing a command processing circuit, using a counting circuit and a threshold decision circuit, the preset number is adjusted according to the number of stages of the initial command entering the counting group to support command generation requirements in different scenarios, and the threshold selection is adjusted through the temperature sensor and decoding circuit. signal to adapt to different ambient temperatures and modes.

Benefits of technology

It realizes the flexible adjustment of the preset quantity value under different scenarios and temperatures, supports multiple commands to generate demands, saves circuit area and reduces production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711633A
    Figure CN118711633A
Patent Text Reader

Abstract

The embodiment of the invention provides a command processing circuit and a memory, the command processing circuit comprises a counting circuit and a command generation circuit, a plurality of cascaded counting groups exist in the counting circuit, and an initial command can be sent to a clock end of a selected one-stage counting group. The counting result of the last-level counting group is output as a command counting value; the command generation circuit generates a first operation command based on a current initial command or a next initial command when a command count value reaches a target value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of semiconductor memory, and in particular to a command processing circuit and a memory. Background Art

[0002] There are many different types of commands involved in dynamic random access memory (DRAM), and there are association mechanisms between these commands. Therefore, corresponding hardware circuits need to be designed to support the association mechanism between different commands. Summary of the invention

[0003] The present disclosure provides a command processing circuit and a memory.

[0004] The technical solution of the present disclosure is achieved as follows:

[0005] In a first aspect, an embodiment of the present disclosure provides a command processing circuit, wherein the command processing circuit is configured to generate a first operation command based on a current initial command or a next initial command at intervals of a preset number of initial commands, and the preset number has multiple values;

[0006] The command processing circuit comprises:

[0007] A counting circuit, comprising a plurality of cascaded counting groups, configured to receive a threshold selection signal and the initial command, send the initial command to a clock terminal of one of the counting groups at one stage based on the threshold selection signal, and output a counting result of the counting group at the last stage as a command count value;

[0008] A command generating circuit is configured to receive the command count value and the initial command, and generate a first operation command based on the current initial command or the next initial command when the command count value reaches the target value;

[0009] The value of the preset number corresponds to the level of the counting group into which the initial command is sent.

[0010] In some embodiments, the command generation circuit is further configured to generate a second operation command based on the current initial command or the next initial command when the command count value does not reach the target value; wherein the first operation command and the second operation command indicate different operations.

[0011] In some embodiments, the preset number of values ​​includes N preset values, the counting circuit includes N cascaded counting groups, the threshold selection signal includes N selection sub-signals, and at most one of the N selection sub-signals is in a valid state;

[0012] The counting circuit is specifically configured to send the initial command to the clock end of the i-th counting group when the i-th selection sub-signal is in a valid state, so that the preset number is the i-th preset value; wherein i and N are both positive integers, 1≤i≤N.

[0013] In some embodiments, the N preset values ​​decrease in sequence, and the Nth preset value is the same as the target value.

[0014] In some embodiments, the counting circuit further includes N data selectors, wherein:

[0015] The first input ends of all the data selectors receive the initial command, the second input ends of the data selectors of the first level receive the ground signal, the second input end of the data selectors of the i-th level is connected to the cascade end of the counting group of the i-1th level; the selection end of the data selectors of the i-th level receives the i-th selection sub-signal, and the output end of the data selectors of the i-th level is connected to the clock end of the counting group of the i-th level.

[0016] In some embodiments, when N=3, and the first preset value is 4 times the target value, and the second preset value is 2 times the target value,

[0017] The first-stage counting group includes a first trigger, a clock end of the first trigger forms a clock end of the first-stage counting group, an input end of the first trigger is connected to its own inverting output end, and an inverting output end of the first trigger forms a cascade end of the first-stage counting group;

[0018] The second-stage counting group includes a second trigger, the clock end of the second trigger forms the clock end of the second-stage counting group, the input end of the second trigger is connected to the inverting output end of the second trigger, and the inverting output end of the second trigger forms the cascade end of the second-stage counting group;

[0019] The counting group of the third level includes A cascaded third triggers, and 2A is greater than or equal to the target value; the clock end of the first third trigger forms the clock end of the counting group of the third level, and the clock ends of the remaining third triggers are all connected to the inverting output end of the third trigger of the previous level; the input end of the third trigger of each level is connected to its own inverting output end, and the positive output end of the third trigger of each level outputs a one-bit counting sub-signal, and the A-bit counting sub-signals together constitute the command count value.

[0020] In some embodiments, the command processing circuit further includes a threshold decision circuit, the threshold decision circuit being configured to determine an associated parameter signal, and adjust the threshold selection signal based on the associated parameter signal to adjust the value of the preset number;

[0021] The threshold decision circuit includes a temperature sensor and a first decoding circuit, wherein:

[0022] The temperature sensor is configured to sense an internal temperature of the circuit and generate and output an ambient temperature signal based on the internal temperature;

[0023] The first decoding circuit is configured to receive the ambient temperature signal and the associated mode signal, decode the ambient temperature signal and the associated mode signal, and output the threshold selection signal;

[0024] The ambient temperature signal and the associated mode signal constitute the associated parameter signal, and the associated mode signal is generated via a mode register circuit.

[0025] In some embodiments, the command processing circuit further includes a threshold decision circuit, the threshold decision circuit being configured to generate the threshold selection signal; and in a first preset mode, controlling the threshold selection signal to remain unchanged; or, in a second preset mode, adjusting the threshold selection signal based on an associated parameter signal to adjust the value of the preset number;

[0026] The threshold determination circuit includes a temperature sensor and a first decoding circuit;

[0027] The temperature sensor is configured to sense an internal temperature of the circuit and generate and output an ambient temperature signal based on the internal temperature;

[0028] The first decoding circuit is configured to receive the ambient temperature signal, the associated mode signal and the mode selection signal, decode the ambient temperature signal, the associated mode signal and the mode selection signal, and output the threshold selection signal;

[0029] The ambient temperature signal and the associated mode signal constitute the associated parameter signal, the mode selection signal indicates that the command generating circuit is in the first preset mode or the second preset mode, and the mode selection signal and the associated mode signal are both generated via a mode register circuit.

[0030] In some embodiments, the command generation circuit is further configured to generate and output a count reset signal based on the first operation command;

[0031] The counting circuit is further configured to receive the counting reset signal, and control all the counting groups to perform zero clearing processing based on the counting reset signal.

[0032] In some embodiments, the command generation circuit includes a second decoding circuit, a command generator and a logic circuit; wherein,

[0033] The second decoding circuit is configured to receive the command count value and output a flag signal based on the command count value; wherein if the command count value does not reach the target value, the flag signal is in an invalid state; if the command count value reaches the target value, the flag signal is in a valid state;

[0034] The command generator is configured to receive the initial command and the flag signal; and when the flag signal is in an invalid state, generate a second operation command based on the current initial command or the next initial command; when the flag signal is in a valid state, generate a first operation command based on the current initial command or the next initial command;

[0035] The logic circuit is configured to receive the first operation command and the system reset command, perform logic operations on the first operation command and the system reset command, and generate and output the count reset signal.

[0036] In some embodiments, the command generator includes a NOT gate, a delay unit, a sixth AND gate and a seventh AND gate; wherein,

[0037] The input end of the NOT gate receives the flag signal, the input end of the delay unit receives the initial command, the first input end of the sixth AND gate is connected to the output end of the NOT gate, the second input end of the sixth AND gate is connected to the output end of the delay unit, and the output end of the sixth AND gate outputs the second operation command;

[0038] The first input terminal of the seventh AND gate is connected to the output terminal of the delay unit, the second input terminal of the seventh AND gate receives the flag signal, and the output terminal of the seventh AND gate outputs the first operation command.

[0039] In some embodiments, the logic circuit includes an OR gate, a first input terminal of the OR gate receives the first operation command, a second input terminal of the OR gate receives the system reset command, and an output terminal of the OR gate outputs the count reset signal.

[0040] In some embodiments, the initial command is a refresh command, the second operation command is a refresh operation command, and the first operation command is an error check and clear ECS operation command.

[0041] In some embodiments, when the target value is 165, the command count value includes an 8-bit count sub-signal;

[0042] The second decoding circuit includes a first AND gate, a second AND gate, a third AND gate, a fourth AND gate, a fifth AND gate, a first NOR gate and a second NOR gate; wherein:

[0043] The two input ends of the first AND gate receive the 8th counting sub-signal and the 6th counting sub-signal respectively, the two input ends of the second AND gate receive the 3rd counting sub-signal and the 1st counting sub-signal respectively, the two input ends of the first NOR gate receive the 7th counting sub-signal and the 5th counting sub-signal respectively, and the two input ends of the second NOR gate receive the 4th counting sub-signal and the 2nd counting sub-signal respectively;

[0044] The first input end of the third AND gate is connected to the output end of the first AND gate, the second input end of the third AND gate is connected to the output end of the second AND gate, the first input end of the fourth AND gate is connected to the output end of the first NOR gate, and the second input end of the fourth AND gate is connected to the output end of the second NOR gate; the first input end of the fifth AND gate is connected to the output end of the third AND gate, the second input end of the fifth AND gate is connected to the output end of the fourth AND gate, and the output end of the fifth AND gate outputs the flag signal.

[0045] In a second aspect, an embodiment of the present disclosure provides a memory, wherein the memory at least includes the command processing circuit as described in the first aspect.

[0046] The embodiments of the present disclosure provide a command processing circuit and a memory, which can adjust the counting threshold only by changing the counting group that the initial command enters, can support the command generation requirements in different scenarios, and save circuit area and reduce production costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of the structure of a command processing circuit provided by an embodiment of the present disclosure;

[0048] Figure 2 A schematic diagram of the structure of another command processing circuit provided by an embodiment of the present disclosure;

[0049] Figure 3 A schematic diagram of the structure of a command processing circuit provided by an embodiment of the present disclosure;

[0050] Figure 4A A schematic diagram of a local structure of a command processing circuit provided in an embodiment of the present disclosure Figure 1 ;

[0051] Figure 4BA schematic diagram of a local structure of a command processing circuit provided in an embodiment of the present disclosure Figure 2 ;

[0052] Figure 5 A schematic diagram of the structure of a counting group provided in an embodiment of the present disclosure;

[0053] Figure 6 A schematic diagram of the structure of a command generating circuit provided in an embodiment of the present disclosure;

[0054] Figure 7 A schematic diagram of a local structure of a command processing circuit provided in an embodiment of the present disclosure Figure 3 ;

[0055] Figure 8 A fourth partial structural diagram of a command processing circuit provided in an embodiment of the present disclosure;

[0056] Fig. 9 A schematic diagram of a signal change provided by an embodiment of the present disclosure;

[0057] Fig.10 A schematic diagram of the structure of a memory provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It is understood that the specific embodiments described herein are only used to explain the relevant application, not to limit the application. It should also be noted that, for the convenience of description, only the parts related to the relevant application are shown in the drawings. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present disclosure. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure. In the following description, "some embodiments" are involved, which describe a subset of all possible embodiments, but it is understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict. It should be noted that the terms "first\second\third" involved in the embodiments of the present disclosure are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present disclosure described here can be implemented in an order other than that illustrated or described here.

[0059] Dynamic Random Access Memory (DRAM);

[0060] Synchronous Dynamic Random Access Memory (SDRAM);

[0061] Double Data Rate SDRAM (DDR);

[0062] 5th generation DDR standard (DDR5 Specification, DDR5 SPEC);

[0063] Error Check and Scrub (ECS) mode.

[0064] Gigabyte (Gb)

[0065] Microsecond (μs)

[0066] For ease of understanding, the command processing circuit is assisted in the following explanation using the Error Check and Scrub (ECS) mode of DRAM as an example scenario, but this does not limit the command processing circuit. In fact, the command processing circuit provided by the embodiment of the present disclosure can be applied to various types of command generation scenarios. The ECS mode allows the DRAM to read and modify the detected error codewords internally, while recording the error count. Specifically, during the ECS process, it is necessary to perform error checking on all storage block groups BG / storage blocks BA, storage rows ROW, and storage columns COL in the DRAM, so multiple ECS operations need to be performed within 24 hours, and each ECS operation is used to generate pre-charge, activation, read and write commands. In addition, when performing ECS ​​operations in the automatic ECS mode, the host needs to periodically send refresh commands or self-refresh commands, and the ECS module needs to periodically steal refresh commands / self-refresh commands to perform ECS operations.

[0067] Taking DDR5 DRAM as an example, it is stipulated that a complete error check process should be performed on DRAM at least once within 24 hours, so the frequency of ECS operations needs to be planned. The average interval time of each ECS operation is recorded as tECSint. For a chip with a storage capacity of 8Gb, tECSint is about 1287μs; for a chip with a storage capacity of 16Gb, tECSint is about 644μs; for a chip with a storage capacity of 24Gb, tECSint is about 429μs; for a chip with a storage capacity of 32Gb, tECSint is about 322μs; for a chip with a storage capacity of 64Gb, tECSint is about 161μs, thus ensuring a complete error check process on DRAM within 24 hours.

[0068] Taking a chip with a storage capacity of 16Gb as an example, tECSint is about 644μs at this time. During this time period, the refresh command needs to be counted. When the preset number is counted (indicating that the time interval is about 644μs at this time), the current refresh command or the next refresh command will be stolen for automatic ECS operation command. However, in different scenarios, the time interval between two adjacent refresh commands is different, so the value of the preset number is also different. As shown in Table 1, it shows the time interval tREFI of the refresh command (REFab) in different scenarios and the value of the preset number.

[0069] Table 1

[0070]

[0071] That is to say, for Normal mode, if the ambient temperature is 0-85℃, then every 165 refresh commands, steal the current refresh command (165th refresh command) or the next refresh command (166th refresh command) to generate an ECS operation command; if the ambient temperature is 85-95℃, then every 330 refresh commands, steal the current refresh command (330th refresh command) or the next refresh command (331st refresh command) to generate an ECS operation command. For Fine Granularity mode, if the ambient temperature is 0-85℃, then every 330 refresh commands, steal the current refresh command or the next refresh command to generate an ECS operation command; if the ambient temperature is 85-95℃, then every 660 refresh commands, steal the current refresh command (660th refresh command) or the next refresh command (661st refresh command) to generate an ECS operation command.

[0072] From the above, it can be seen that in the automatic ECS operation mode, each preset number of refresh commands steals the current refresh command or the next refresh command to form an ECS operation command, thereby triggering an ECS operation. Since it is necessary to ensure that a complete ECS operation is completed on the memory within 24 hours, the time interval of the ECS operation is fixed, but since the frequency of refresh commands generated in different modes and at different temperatures is different, the value of the preset number needs to be adjusted according to the actual situation. In other words, how to adjust the preset number in different refresh modes and at different temperatures is a technical problem that needs to be solved.

[0073] Based on this, an embodiment of the present disclosure provides a command processing circuit that can adjust the value of a preset number simply by changing the counting group that the initial command enters. It can support command generation requirements in different scenarios, save circuit area, and reduce production costs.

[0074] In one embodiment of the present disclosure, see Figure 1 , which shows a schematic diagram of the structure of a command processing circuit 10 provided in an embodiment of the present disclosure. The command processing circuit 10 is configured to generate a first operation command based on the current initial command or the next initial command every time a preset number of initial commands are received, and the preset number has multiple values. The command processing circuit 10 includes:

[0075] The counting circuit 11 includes a plurality of cascaded counting groups (eg Figure 1 The first-stage counting group 111, the second-stage counting group 112, ... the N-stage counting group 11N) are configured to receive a threshold selection signal and an initial command, send the initial command to a clock end of one of the first-stage counting groups based on the threshold selection signal, and output the counting result of the last-stage counting group (i.e., the counting group 11N) as a command count value;

[0076] The command generating circuit 12 is configured to receive a command count value and an initial command, and to generate a first operation command based on a current initial command or a next initial command when the command count value reaches a target value.

[0077] It should be noted that the value of the preset number corresponds to the number of the counting groups into which the initial command is sent. Specifically, the counting principle of the counting circuit 11 is similar to the "carry counting system", the count value of the previous counting group is similar to the "low digit of the value", and the count value of the next counting group is similar to the "high digit of the value", that is, after the count value of the previous counting group reaches the maximum value, the new initial command will cause the count value of the previous counting group to return to zero and the count value of the next counting group to change. In other words, the earlier the counting group into which the initial command enters, the more initial commands are needed to make the command count value reach the target value, so that the value of the preset number is larger.

[0078] In this way, the preset number can be adjusted simply by changing the counting group that the initial command enters, which can support the command generation requirements in different scenarios. Different preset numbers reuse a part of the counting group, and there is no need to set a separate counting module for each preset number, saving circuit area and reducing production costs.

[0079] In some embodiments, Figure 2 As shown, the command generating circuit 12 is further configured to generate a second operation command based on the current initial command or the next initial command when the command count value does not reach the target value; wherein the first operation command and the second operation command indicate different operations.

[0080] It should be noted that “certain commands” such as the initial command, the first operation command, and the second operation command all refer to generating a pulse at the corresponding signal port. This pulse can be a positive pulse or a negative pulse. The embodiments of the present disclosure will be explained using positive pulses as an example.

[0081] In this way, most of the initial commands are used to generate the second operation command, but every preset number of initial commands, the current initial command or the next initial command is used to generate the first operation command.

[0082] In some embodiments, the preset number of values ​​includes N preset values, where N is a positive integer. Here, the N preset values ​​decrease in sequence, and the Nth preset value is the same as the target value, that is, the target value refers to the minimum value among the N preset values.

[0083] Accordingly, the counting circuit 11 includes N cascaded counting groups: the first counting group 111 to the Nth counting group 11N. Accordingly, the threshold selection signal is represented by CNT_SEL <n-1:0>, which includes N selection sub-signals CNT_SEL <0> 、CNT_SEL <1> ...CNT_SEL <n-1>, and at most one of the N selection sub-signals is in a valid state. The counting circuit 11 is specifically configured to send an initial command to the clock end of the i-th counting group when the i-th selection sub-signal is in a valid state, so that the preset number is the i-th preset value; wherein i is a positive integer, 1≤i≤N.

[0084] Here, the logic levels of the valid state and the invalid state are different; for example, the valid state is logic 1 and the invalid state is logic 0; or, the valid state is logic 0 and the invalid state is logic 1.

[0085] In some embodiments, Figure 2 As shown, the counting circuit 11 also includes N data selectors (specifically, data selectors 121 to Nth data selectors 12N), wherein: the first input terminals of all the data selectors receive the initial command, the second input terminals of the first-stage data selectors receive the ground signal VSS, the second input terminal of the i-th-stage data selector is connected to the cascade terminal of the i-1-th-stage counting group; the selection terminal of the i-th-stage data selector receives the i-th selection sub-signal CNT_SEL <i-1>, the output end of the i-th stage data selector is connected to the clock end of the i-th stage counting group. In particular, the data selector and the selection sub-signal are in one-to-one correspondence.

[0086] It should be noted that for Figure 2 For the data selector in the first stage, the first input terminal is the positive input terminal, and the second input terminal is the negative input terminal, but this actually needs to be determined according to the circuit connection relationship and the signal change mechanism. Exemplarily, in another embodiment, the first input terminal is the negative input terminal, and the second input terminal is the positive input terminal; in another embodiment, the second input terminal of the first stage data selector can also receive a power supply signal.

[0087] Taking the ECS mode of DRAM as an example scenario, a specific structure of a counting circuit 11 is provided. At this time, the initial command may be a refresh command REFab, the first operation command may be an ECS operation command ECS_CMD, and the second operation command may be a refresh operation command REF_NEW. For a chip with a storage capacity of 16Gb, tECSint is approximately 644μs. As shown in Table 1, the first preset value (target value) is 165, the second preset value is 330, and the third preset value is 660.

[0088] At this time, N=3, please refer to Figure 4A or Figure 4B The counting circuit 11 includes a first-stage counting group 111, a second-stage counting group 112 and a third-stage counting group 113. The counting result CNT_3 of the third-stage counting group 113 is the aforementioned command count value. Figure 4A or Figure 4B The counting result CNT_1 of the first-stage counting group 111 and the counting result CNT_2 of the second-stage counting group 112 are also shown, but CNT_1 and CNT_2 have no clear purpose in the embodiment of the present disclosure and may or may not be drawn.

[0089] When the first preset value is 4 times the target value and the second preset value is 2 times the target value:

[0090] (1) The first-stage counting group 111 includes a first trigger, the clock end of the first trigger forms the clock end of the first-stage counting group, the input end of the first trigger is connected to its own inverting output end, the inverting output end of the first trigger forms the cascade end of the first-stage counting group, and the positive output end of the first trigger outputs the counting result CNT_1.

[0091] (2) The second-stage counting group 112 includes a second trigger, the clock end of the second trigger forms the clock end of the second-stage counting group, the input end of the second trigger is connected to its own inverting output end, the inverting output end of the second trigger forms the cascade end of the second-stage counting group, and the positive output end of the second trigger outputs the counting result CNT_2.

[0092] (3) Please refer to Figure 5 , the third stage counting group 113 includes A cascaded third triggers ( Figure 5 Take A=8 as an example), and 2 A The clock end of the first third flip-flop forms the clock end of the third-stage counting group, and the clock ends of the remaining third flip-flops are connected to the inverting output end of the previous third flip-flop; the input end of each third flip-flop is connected to its own inverting output end, and the positive output end of each third flip-flop outputs a one-bit counting sub-signal (for example, REF <0> ~REF <7> ), the A-bit counting sub-signal (ie, REF<7:0>) together constitute the command count value.

[0093] It should be understood that in the ECS circuit scenario, the target value = 165, the third-level counting group 113 includes a total of 8 third triggers (third triggers 201-208), and the maximum count value is 2 8 =256, which is greater than the target value of 165, that is, Figure 5 The circuit shown.

[0094] In this way, if the initial command REFab enters the clock end of the first third trigger, the command count value reaches the target value for every "165 (target value)" initial commands; if the initial command signal enters the clock end of the second trigger, the command count value reaches the target value for every "330 (2 times the target value)" initial commands; if the initial command signal enters the clock end of the first trigger, the command count value reaches the target value for every "660 (4 times the target value)" initial commands, thereby flexibly adjusting the value of the preset number.

[0095] In other embodiments, the multiple relationship between different preset values ​​can be adjusted according to the actual application scenario. Specifically, the number of triggers required for the i-th counting group is determined according to the multiple relationship between each preset value and the previous preset value. For example, if the i-1-th preset value × 2 b-1 <The i-th preset value ≤ the i-1-th preset value × 2 b , the i-th counting group should set b triggers.

[0096] Further, if the quotient of the i-th preset value and the i-1-th preset value is an integer power of 2, the inverting output end of the last trigger in the i-th level counting group forms the cascade end of the counting group; if the quotient of the i-th preset value and the i-1-th preset value is not an integer power of 2, a numerical processing unit (which may be a decoder) for judging whether the count value reaches the quotient value (between the i-th preset value and the i-1-th preset value) needs to be added to the i-th level counting group, the input end of the numerical processing unit is connected to the positive phase output end of some / all triggers, and the output end of the numerical processing unit forms the cascade end of the counting group. The numerical processing unit can be formed by one or more of an AND gate, a NAND gate, an XNOR gate, an XOR gate, and a NOT gate.

[0097] It should be noted that the counting circuit 11 also has a reset mechanism so as to re-count the refresh command after generating the first operation command, thereby ensuring the normal generation of the next first operation command. Figure 2 and Figure 3 As shown, the command generating circuit 12 is further configured to generate and output a count reset signal CNT_Rst based on the first operation command; the counting circuit 11 is further configured to receive the count reset signal CNT_Rst, and control all count groups to perform zero clearing processing based on the count reset signal CNT_Rst.

[0098] Here, please refer to Figure 5 , the reset ends of the triggers in all counting groups receive the counting reset signal CNT_Rst, that is, the clearing process of the counting group means that all the triggers contained therein are reset.

[0099] In some embodiments, Figure 6 As shown, the command generating circuit 12 includes a second decoding circuit 121, a command generator 122 and a logic circuit 123; wherein,

[0100] The second decoding circuit 121 is configured to receive the command count value, and based on the command count value, generate and output a flag signal; wherein if the command count value does not reach the target value, the flag signal is in an invalid state; if the command count value reaches the target value, the flag signal is in a valid state;

[0101] The command generator 122 is configured to receive an initial command and a flag signal; and when the flag signal is in an invalid state, generate a second operation command based on the current initial command or the next initial command; when the flag signal is in a valid state, generate a first operation command based on the current initial command or the next initial command;

[0102] The logic circuit 123 is configured to receive a first operation command and a system reset command, perform a logic operation on the first operation command and the system reset command, and generate and output a count reset signal.

[0103] Please note that after the count value reaches the target value, the first operation command will be generated based on the current initial command or waiting for the next initial command, thereby generating a count reset signal; however, after the count value reaches the target value and before the first operation command is generated, the count value will remain unchanged. In other words, the count pulse of the count value and the operation of generating the first operation command are both triggered by the "same initial command".

[0104] Therefore, the second decoding circuit 121 is mainly used to determine whether the command count value reaches the target value, the command generator 122 is mainly used to generate the first operation command or the second operation command using the initial command, and the logic circuit 123 is mainly used to implement the relevant logic of count clearing to meet the clearing requirement after generating the first operation command or the reset requirement from the system. It should be understood that Figure 6 The first operation command and the second operation command are not generated at the same time.

[0105] In the circuit scenario of ECS, the specific structure of the command generating circuit 12 is as follows Figure 7 Please combine Figure 4A (or Figure 4B )and Figure 7 , the counting result CNT_3 of the third-level counting group 113 is the command count value, the flag signal is represented by ECS_Flag, and the system reset command is represented by Reset. Figure 7 As shown, the second decoding circuit 121 can also receive the counting result CNT_1 of the first-level counting group 111 and the counting result CNT_2 of the second-level counting group 112 to cope with possible needs. That is to say, in the previous example, whether the preset number is reached is determined based on whether the counting result of the last-level counting group reaches the target value; however, in other embodiments, whether the preset number is reached can be determined based on several of the counting result CNT_1 of the first-level counting group 111, the counting result CNT_2 of the second-level counting group 112, and the counting result CNT_3 of the third-level counting group 113. At this time, the target value is the same as the preset value, or changes with the preset value.

[0106] In the ECS circuit scenario, the target value = 165, and the counting result CNT_3 of the third-level counting group 113 can specifically include REF <7> ~REF <0> The 8-bit counting sub-signal assumes that the valid state of the flag signal ECS_Flag is logic 1 and the invalid state of the flag signal ECS_Flag is logic 0. In this case, Figure 8 As shown, the second decoding circuit 121 includes a first AND gate 301, a second AND gate 302, a third AND gate 303, a fourth AND gate 304, a fifth AND gate 305, a first NOR gate 306 and a second NOR gate 307; wherein: the two input terminals of the first AND gate 301 receive the 8th bit counting sub-signal REF <7> and the 6th bit counting sub-signal REF <5> The two input terminals of the second AND gate 302 receive the third bit counting sub-signal REF <2> and the 1st bit counting sub-signal REF <0> The two input terminals of the first NOR gate 306 receive the 7th counting sub-signal REF <6> and the 5th bit counting sub-signal REF <4> The two input terminals of the second NOR gate 307 receive the 4th counting sub-signal REF <3> and the second bit counting sub-signal REF <1> ; A first input terminal of the third AND gate 303 is connected to the output terminal of the first AND gate 301, a second input terminal of the third AND gate 303 is connected to the output terminal of the second AND gate 302, a first input terminal of the fourth AND gate 304 is connected to the output terminal of the first NOR gate 306, and a second input terminal of the fourth AND gate 304 is connected to the output terminal of the second NOR gate 307; a first input terminal of the fifth AND gate 305 is connected to the output terminal of the third AND gate 303, a second input terminal of the fifth AND gate 305 is connected to the output terminal of the fourth AND gate 304, and the output terminal of the fifth AND gate 305 outputs the flag signal ECS_Flag.

[0107] Thus, when REF<7:0>=10100101 (165 in decimal), the flag signal ECS_Flag=1 (valid state); when REF<7:0> does not reach 10100101, the flag signal ECS_Flag=0 (invalid state).

[0108] In some embodiments, Figure 8 As shown, the command generator 122 includes a NOT gate 401, a delay unit 402, a sixth AND gate 403 and a seventh AND gate 404; wherein the input end of the NOT gate 401 receives the flag signal ECS_Flag, and the input end of the delay unit 402 receives the initial command ( Figure 7 The first input end of the sixth AND gate 403 is connected to the output end of the NOT gate 401, the second input end of the sixth AND gate 403 is connected to the output end of the delay unit 402, and the output end of the sixth AND gate 403 is used to output the second operation command ( Figure 7 The first input terminal of the seventh AND gate 404 is connected to the output terminal of the delay unit 402, the second input terminal of the seventh AND gate 404 receives the flag signal ECS_Flag, and the output terminal of the seventh AND gate 404 is used to output the first operation command ( Figure 7 Specifically, it is the ECS operation command ECS_CMD).

[0109] Here, the delay unit 402 is used to delay the received initial command to achieve timing matching, but it does not change the signal change properties.

[0110] It should be noted that the refresh command REFab, the refresh operation command REF_NEW and the ECS operation command ECS_CMD can all be regarded as one positive pulse. In this way, if the flag signal ECS_Flag = 1, the output of the sixth AND gate 403 is always low, that is, the refresh operation command REF_NEW is not generated, and the output of the seventh AND gate 404 generates a positive pulse, that is, the ECS operation command ECS_CMD is generated; if the flag signal ECS_Flag = 0, the output of the sixth AND gate 403 is a positive pulse, that is, the refresh operation command REF_NEW is generated, and the output of the seventh AND gate 404 is always low, that is, the ECS operation command ECS_CMD is not generated.

[0111] In a specific embodiment, Figure 7 As shown, the logic circuit 123 includes an OR gate, a first input end of the OR gate receives a first operation command, a second input end of the OR gate receives a system reset command, and an output end of the OR gate outputs a count reset signal CNT_Rst. The applicable scenarios of this embodiment include at least: the count reset signal CNT_Rst is a high effective signal; during the normal operation of the system, the signal port corresponding to the system reset command Reset is always at a low level, and when the system needs to be initialized / reset, the signal port corresponding to the system reset command Reset generates a positive pulse; and the essence of the ECS operation command ECS_CMD (i.e., the first operation command) is a positive pulse. In this way, based on the generated ECS operation command ECS_CMD, the count reset signal CNT_Rst generates a positive pulse, thereby resetting all count groups and restarting the counting of the refresh command; or, when the system issues a system reset command, the count reset signal CNT_Rst also generates a positive pulse, thereby resetting all count groups; at other times, the count reset signal CNT_Rst is a low level.

[0112] In other circuit scenarios, the logic circuit 123 may also be an AND gate, a NOR gate, a NAND gate, etc., which needs to be determined according to the change mechanism of the associated signal.

[0113] In some embodiments, Figure 3 As shown, the command processing circuit 10 further includes a threshold decision circuit 13; the threshold decision circuit 13 is configured to determine an associated parameter signal and adjust a threshold selection signal based on the associated parameter signal to adjust a preset number of values.

[0114] Here, the associated parameter signal indicates all relevant factors that can affect the value of the preset quantity, such as one or more of temperature, voltage, and associated mode parameters.

[0115] For example, in the ECS circuit scenario, the associated mode parameter is used to indicate which automatic refresh mode of the memory is in Normal and FineGranularity and the current ambient temperature. Figure 4A As shown, the threshold decision circuit 13 includes a temperature sensor 131 and a first decoding circuit 132, wherein:

[0116] a temperature sensor 131 configured to sense an internal temperature of the circuit and generate and output an ambient temperature signal based on the internal temperature;

[0117] The first decoding circuit 132 is configured to receive the ambient temperature signal and the associated mode signal MR4 OP[4], decode the ambient temperature signal and the associated mode signal MR4 OP[4], and output a threshold selection signal; wherein the ambient temperature signal and the associated mode signal MR4 OP[4] constitute an associated parameter signal, and the associated mode signal MR4 OP[4] is generated via a mode register circuit.

[0118] It should be noted that, please refer to Table 1, the associated mode signal MR4 OP[4] is used to indicate whether the current refresh mode of the memory is Normal or Fine Granularity. For example, when the associated mode signal MR4 OP[4] = 0, the memory is in Normal refresh mode, and when the associated mode signal MR4 OP[4] = 1, the memory is in Fine Granularity refresh mode; the ambient temperature signal includes Temp<0:85> and Temp<85:95>, Temp<0:85> is used to indicate whether the current temperature is 0-85°C, and Temp<85:95> is used to indicate whether the current temperature is 85-95°C.

[0119] In another specific embodiment, Figure 3 As shown, the command processing circuit 10 also includes a threshold decision circuit 13; the threshold decision circuit 13 is configured to generate a threshold selection signal; and in a first preset mode, the threshold selection signal is controlled to remain unchanged; or, in a second preset mode, the threshold selection signal is adjusted based on an associated parameter signal to adjust the value of a preset number.

[0120] In this way, in the first preset mode, the preset number is fixed; in the second preset mode, the preset number is adjustable. According to different scene requirements / design requirements, the preset number can be controlled to be fixed or flexibly adjusted.

[0121] Similar, such as Figure 4B As shown, the threshold determination circuit 13 includes a temperature sensor 131 and a first decoding circuit 132;

[0122] a temperature sensor 131 configured to sense an internal temperature of the circuit and generate and output an ambient temperature signal based on the internal temperature;

[0123] The first decoding circuit 132 is configured to receive the ambient temperature signal, the associated mode signal MR4 OP[4] and the mode selection signal, and decode the ambient temperature signal, the associated mode signal MR4 OP[4] and the mode selection signal to output a threshold selection signal; wherein the ambient temperature signal and the associated mode signal MR4 OP[4] constitute an associated parameter signal, the mode selection signal indicates that the command generating circuit is in the first preset mode or the second preset mode, and the mode selection signal and the associated mode signal MR4 OP[4] are both generated via the mode register circuit.

[0124] Please combine Figure 4A , Figure 5 and Figure 8 , which as a whole provides a command processing circuit 10 that can support ECS-related circuit requirements. Figure 4A As shown, the command processing circuit 10 decodes the temperature information (specifically Temp<0:85> and Temp<85:95>) and the refresh mode information (MR4 OP[4]) through the temperature sensor (Temperature Sensor) to obtain the threshold selection signal CNT_SEL<2:0>. The subsequent threshold selection signal CNT_SEL<2:0> is used to select which count group the refresh command will be sent to (or the number of count groups enabled).

[0125] Taking Table 1 as an example, the target value is set to 165. Specifically, (1) when the refresh mode is Fine Granularity and the ambient temperature is 85-95°C, when CNT_SEL<2:0>=001, the refresh command enters the first-level counting group, that is, the refresh command is counted by three counting groups, so the preset number is 660. (2) When the refresh mode is Fine Granularity Mode and the ambient temperature is 0-85°C or when the refresh mode is Normal and the ambient temperature is 85-95°C, CNT_SEL<2:0>=010, the refresh command enters the second-level counting group, that is, the refresh command is counted by two counting groups, so the preset number is 330; (3) When the refresh mode is Normal and the ambient temperature is 0-85°C, CNT_SEL<2:0>=100 is 1, and the refresh command enters the third-level counting group, that is, the refresh command is counted by one counter, so the preset number is 165.

[0126] like Figure 8 As shown, when the counting result of the third-level counter does not reach the set target value, the flag ECS_FLAG signal generated by its decoding is low, and the command generator 122 generates a refresh operation command REF_NEW according to the refresh command REFab, thereby performing a refresh operation; after the counting result of the third-level counter reaches the set target value, the flag ECS_FLAG signal generated by its decoding becomes high, and the command generator 122 will steal the current refresh command REFab or the next refresh command REFab to generate the ECS operation command ECS_CMD, and the corresponding REFab command that is stolen will not generate the refresh operation command REF_NEW. At the same time, when the ECS operation command is generated, a count reset signal CNT_Rst will be generated, and each counting group will count again.

[0127] It should be understood that when the command count value reaches the target value, if it is necessary to "steal the current refresh command REFab to form the ECS operation command ECS_CMD", the delay of the delay module 402 in the control command generator is relatively large, so that the delayed current refresh command REFab is received after the count value is decoded, and the current refresh command REFab is further used to generate the ECS operation command ECS_CMD; conversely, if it is necessary to "steal the next refresh command REFab to form the ECS operation command ECS_CMD", the delay of the delay module 402 in the control command generator is relatively small, or the delay module 402 is removed, or a delay module is added between the ECS_Flag signal and the command generator 122, and the current refresh command REFab has been received before the count value decoding is completed, and the ECS operation command ECS_CMD must be generated after waiting for the next refresh command REFab.

[0128] Further, taking the refresh mode as Normal and the ambient temperature as 0 to 85°C as an example, see Fig. 9 , which provides a schematic diagram of signal timing changes. At this time, the preset number is 165, CNT_SEL <2> =001, at this time, the refresh command REFab enters the third-level counting group. After REF<7:0> counts to 165, the flag signal ECS_Flag becomes high. At this time, the current refresh command REFab is stolen to generate the ECS operation command ECS_CMD; at the same time, the refresh command that has not been stolen generates the refresh operation command REF_NEW to perform the refresh operation, and the refresh command REFab that has been stolen will not generate the refresh operation command REF_NEW. In addition, after the ECS operation command ECS_CMD is generated, a count reset signal CNT_Rst will also be generated, which can cause all count groups to re-count.

[0129] That is to say, in order to ensure that all ECS operations on DRAM are completed within 24 hours, the host needs to enter the refresh or self-refresh mode regularly. At this time, the refresh command is used as the clock signal of the counting group, and different counting groups are connected in the form of asynchronous counters. When the count number of the refresh command reaches the preset number, a refresh command will be stolen to generate the ECS operation command ECS_CMD. Since the time interval of the refresh command is different under different refresh modes and ambient temperatures, the refresh mode is indicated by the associated mode signal MR4 OP[4]. At the same time, the temperature information under different modes can also be obtained from the temperature sensor 131. In this way, the specific refresh mode and ambient temperature can be obtained, and then the corresponding refresh command time interval can be obtained. Based on this, the counting group entered by the refresh command can be selected, and the execution frequency of the ECS operation can be adjusted in time according to the associated parameters of the ECS operation, thereby ensuring that all ECS operations on DRAM can be completed within 24 hours under different environments and different modes.

[0130] In another embodiment of the present disclosure, see Fig.10 , which shows a schematic diagram of the composition structure of a memory 50 provided by an embodiment of the present disclosure. Fig.10 As shown, the memory 50 at least includes the aforementioned command processing circuit 10 .

[0131] In some embodiments, the memory complies with the DDR5 specification.

[0132] The above are only preferred embodiments of the present disclosure and are not intended to limit the scope of protection of the present disclosure. It should be noted that in the present disclosure, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes one..." does not exclude the existence of other identical elements in the process, method, article or device including the element. The above serial numbers of the embodiments of the present disclosure are only for description and do not represent the advantages and disadvantages of the embodiments. The methods disclosed in several method embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments. The features disclosed in several product embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments. The features disclosed in several method or device embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments. The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A command processing circuit, characterized in that: The command processing circuit is configured to generate a first operation command based on the current initial command or the next initial command every time a preset number of initial commands are sent, and the preset number has multiple values; The command processing circuit comprises: A counting circuit, comprising a plurality of cascaded counting groups, configured to receive a threshold selection signal and the initial command, send the initial command to a clock terminal of one of the counting groups at one stage based on the threshold selection signal, and output a counting result of the counting group at the last stage as a command count value; A command generating circuit is configured to receive the command count value and the initial command, and generate a first operation command based on the current initial command or the next initial command when the command count value reaches the target value; The value of the preset number corresponds to the level of the counting group into which the initial command is sent.

2. The command processing circuit according to claim 1, characterized in that: The command generating circuit is further configured to generate a second operation command based on the current initial command or the next initial command when the command count value does not reach the target value; The first operation command and the second operation command indicate different operations.

3. The command processing circuit according to claim 2, characterized in that: The preset number of values ​​includes N preset values, the counting circuit includes N cascaded counting groups, the threshold selection signal includes N selection sub-signals, and at most one of the N selection sub-signals is in a valid state; The counting circuit is specifically configured to send the initial command to the clock end of the i-th counting group when the i-th selection sub-signal is in a valid state, so that the preset number is the i-th preset value; Among them, i and N are both positive integers, 1≤i≤N.

4. The command processing circuit according to claim 3, characterized in that: The N preset values ​​decrease in sequence, and the Nth preset value is the same as the target value.

5. The command processing circuit according to claim 4, characterized in that: The counting circuit further includes N data selectors, wherein: The first input ends of all the data selectors receive the initial command, the second input ends of the data selectors of the first level receive the ground signal, the second input end of the data selectors of the i-th level is connected to the cascade end of the counting group of the i-1th level; the selection end of the data selectors of the i-th level receives the i-th selection sub-signal, and the output end of the data selectors of the i-th level is connected to the clock end of the counting group of the i-th level.

6. The command processing circuit according to claim 5, characterized in that: When N=3, and the first preset value is 4 times the target value, and the second preset value is 2 times the target value, The first-stage counting group includes a first trigger, a clock end of the first trigger forms a clock end of the first-stage counting group, an input end of the first trigger is connected to its own inverting output end, and an inverting output end of the first trigger forms a cascade end of the first-stage counting group; The second-stage counting group includes a second trigger, the clock end of the second trigger forms the clock end of the second-stage counting group, the input end of the second trigger is connected to the inverting output end of the second trigger, and the inverting output end of the second trigger forms the cascade end of the second-stage counting group; The counting group of the third stage includes A cascaded third flip-flops, and 2 A Greater than or equal to the target value; the clock end of the first third trigger forms the clock end of the counting group of the third level, and the clock ends of the remaining third triggers are all connected to the inverting output end of the third trigger of the previous level; the input end of each level of the third trigger is connected to its own inverting output end, and the positive output end of each level of the third trigger outputs a one-bit counting sub-signal, and the A-bit counting sub-signals together constitute the command count value.

7. The command processing circuit according to any one of claims 2 to 6, characterized in that: The command processing circuit further includes a threshold decision circuit; the threshold decision circuit is configured to determine an associated parameter signal, and adjust the threshold selection signal based on the associated parameter signal to adjust the value of the preset number; The threshold determination circuit includes a temperature sensor and a first decoding circuit; The temperature sensor is configured to sense an internal temperature of the circuit and generate and output an ambient temperature signal based on the internal temperature; The first decoding circuit is configured to receive the ambient temperature signal and the associated mode signal, decode the ambient temperature signal and the associated mode signal, and output the threshold selection signal; The ambient temperature signal and the associated mode signal constitute the associated parameter signal, and the associated mode signal is generated via a mode register circuit.

8. The command processing circuit according to any one of claims 2 to 6, characterized in that: The command processing circuit further includes a threshold decision circuit, the threshold decision circuit being configured to generate the threshold selection signal; and in a first preset mode, controlling the threshold selection signal to remain unchanged; or, in a second preset mode, adjusting the threshold selection signal based on an associated parameter signal to adjust the value of the preset number; The threshold determination circuit includes a temperature sensor and a first decoding circuit; The temperature sensor is configured to sense an internal temperature of the circuit and generate and output an ambient temperature signal based on the internal temperature; The first decoding circuit is configured to receive the ambient temperature signal, the associated mode signal and the mode selection signal, decode the ambient temperature signal, the associated mode signal and the mode selection signal, and output the threshold selection signal; The ambient temperature signal and the associated mode signal constitute the associated parameter signal, the mode selection signal indicates that the command generating circuit is in the first preset mode or the second preset mode, and the mode selection signal and the associated mode signal are both generated via a mode register circuit.

9. The command processing circuit according to claim 8, characterized in that: The command generating circuit is further configured to generate and output a count reset signal based on the first operation command; The counting circuit is further configured to receive the counting reset signal, and control all the counting groups to perform zero clearing processing based on the counting reset signal.

10. The command processing circuit according to claim 9, characterized in that: The command generating circuit comprises a second decoding circuit, a command generator and a logic circuit; wherein, The second decoding circuit is configured to receive the command count value and output a flag signal based on the command count value; wherein if the command count value does not reach the target value, the flag signal is in an invalid state; if the command count value reaches the target value, the flag signal is in a valid state; The command generator is configured to receive the initial command and the flag signal; and when the flag signal is in an invalid state, generate a second operation command based on the current initial command or the next initial command; when the flag signal is in a valid state, generate a first operation command based on the current initial command or the next initial command; The logic circuit is configured to receive the first operation command and the system reset command, perform logic operations on the first operation command and the system reset command, and generate and output the count reset signal.

11. The command processing circuit according to claim 10, characterized in that: The command generator includes a NOT gate, a delay unit, a sixth AND gate and a seventh AND gate; wherein, The input end of the NOT gate receives the flag signal, the input end of the delay unit receives the initial command, the first input end of the sixth AND gate is connected to the output end of the NOT gate, the second input end of the sixth AND gate is connected to the output end of the delay unit, and the output end of the sixth AND gate outputs the second operation command; The first input terminal of the seventh AND gate is connected to the output terminal of the delay unit, the second input terminal of the seventh AND gate receives the flag signal, and the output terminal of the seventh AND gate outputs the first operation command.

12. The command processing circuit according to claim 10, characterized in that: The logic circuit includes an OR gate, a first input end of the OR gate receives the first operation command, a second input end of the OR gate receives the system reset command, and an output end of the OR gate outputs the count reset signal.

13. The command processing circuit according to claim 10, characterized in that: The initial command is a refresh command, the second operation command is a refresh operation command, and the first operation command is an error check and clear ECS operation command.

14. The command processing circuit according to claim 13, characterized in that: When the target value is 165, the command count value includes an 8-bit count sub-signal; The second decoding circuit includes a first AND gate, a second AND gate, a third AND gate, a fourth AND gate, a fifth AND gate, a first NOR gate and a second NOR gate; wherein: The two input ends of the first AND gate receive the 8th counting sub-signal and the 6th counting sub-signal respectively, the two input ends of the second AND gate receive the 3rd counting sub-signal and the 1st counting sub-signal respectively, the two input ends of the first NOR gate receive the 7th counting sub-signal and the 5th counting sub-signal respectively, and the two input ends of the second NOR gate receive the 4th counting sub-signal and the 2nd counting sub-signal respectively; The first input end of the third AND gate is connected to the output end of the first AND gate, the second input end of the third AND gate is connected to the output end of the second AND gate, the first input end of the fourth AND gate is connected to the output end of the first NOR gate, and the second input end of the fourth AND gate is connected to the output end of the second NOR gate; the first input end of the fifth AND gate is connected to the output end of the third AND gate, the second input end of the fifth AND gate is connected to the output end of the fourth AND gate, and the output end of the fifth AND gate outputs the flag signal.

15. A memory, characterized in that: The memory comprises a command processing circuit as claimed in any one of claims 1-14.