Command generation circuit and memory

By designing a command generation circuit for DDR5DRAM, the problem that the ODT function in DDR5DRAM is difficult to meet the timing requirements of the terminal resistor resistance switching during the write command transmission process is solved, and the signal integrity and memory performance are improved.

WO2024212509A1PCT designated stage expired Publication Date: 2024-10-17CHANGXIN MEMORY TECH INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/131540
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-11
Filing Date
2023-11-14
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

In DDR5DRAM, the resistance switching timing requirements of the terminal resistor during the write command transmission process of the ODT function are difficult to meet, resulting in increased signal integrity and energy loss, affecting memory performance.

Method used

A command generation circuit is designed, which includes a first sampling circuit, a basic delay circuit, a second sampling circuit and a command adjustment circuit. The second command signal is generated by sampling, shifting and adjusting the pulse width of the first command signal. Its pulse width is larger than the original command signal and is adaptively adjusted when the data burst length changes to ensure that the resistance switching of the terminal resistor meets timing requirements and avoids signal reflection and energy loss.

Benefits of technology

It effectively avoids the phenomenon of no output of ODT commands, improves signal integrity and memory performance, reduces energy loss and reflection during signal transmission, and meets the timing requirements of the ODT function in DDR5DRAM.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023131540_17102024_PF_FP_ABST
    Figure CN2023131540_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure provides a command generation circuit and a memory. A first sampling circuit is used for performing sampling processing on a first command signal according to a first clock signal to obtain a first intermediate signal; a base delay circuit is used for performing sampling and shifting processing on the first intermediate signal according to a first control signal and the first clock signal to obtain a second intermediate signal; a second sampling circuit is used for performing setting processing on the second sampling circuit according to the first intermediate signal, and performing sampling processing on the second intermediate signal according to the first clock signal to obtain a third intermediate signal; and a command adjustment circuit is used for performing pulse-width adjustment processing on the first command signal according to the first intermediate signal and the third intermediate signal to obtain a second command signal.
Need to check novelty before this filing date? Find Prior Art

Description

A command generating circuit and memory

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to a Chinese patent application filed with the Patent Office of China on April 11, 2023, with application number 202310381529.1 and application name “A Command Generating Circuit and Memory,” the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0003] The present disclosure relates to, but is not limited to, a command generating circuit and a memory. Background Art

[0004] With the continuous development of semiconductor technology, people have placed increasingly higher demands on data transmission speeds when manufacturing and using computers and other devices. To achieve faster data transmission speeds, a series of devices such as memories that can transmit data at double the data rate (DDR) have emerged.

[0005] In a dynamic random access memory (DRAM) chip, for the chip's on-die termination (ODT) function, the resistance switching of the terminal resistor must comply with certain timing requirements.

[0006] Summary of the Invention

[0007] Embodiments of the present disclosure provide a command generation circuit and a memory.

[0008] In a first aspect, an embodiment of the present disclosure provides a command generation circuit, the command generation circuit including a first sampling circuit, a basic delay circuit, a second sampling circuit, and a command adjustment circuit, wherein the output of the first sampling circuit is connected to the input of the basic delay circuit, the output of the basic delay circuit is connected to the input of the second sampling circuit, and the output of the first sampling circuit and the output of the second sampling circuit are both connected to the command adjustment circuit, wherein:

[0009] a first sampling circuit, configured to receive a first command signal and a first clock signal, and sample the first command signal according to the first clock signal to obtain a first intermediate signal;

[0010] a basic delay circuit configured to receive a first intermediate signal, a first clock signal, and a first control signal, and perform sampling and shift processing on the first intermediate signal according to the first control signal and the first clock signal to obtain a second intermediate signal; wherein a shift length between the second intermediate signal and the first intermediate signal is correlated with the first control signal;

[0011] a second sampling circuit configured to receive the first clock signal, the first intermediate signal, and the second intermediate signal, set the second sampling circuit according to the first intermediate signal, and sample the second intermediate signal according to the first clock signal to obtain a third intermediate signal;

[0012] The command adjustment circuit is used to receive the first intermediate signal and the third intermediate signal, perform pulse width adjustment processing on the first command signal according to the first intermediate signal and the third intermediate signal, and generate a second command signal, wherein the pulse width of the second command signal is greater than the pulse width of the first command signal.

[0013] In some embodiments, the value of the first control signal is associated with the data burst length BL.

[0014] In some embodiments, a pulse width of the second command signal is equal to a shift length between the third intermediate signal and the first intermediate signal, and the pulse width of the second command signal is correlated with a data burst length BL; wherein:

[0015] When the data burst length BL increases, controlling the shift length between the second intermediate signal and the first intermediate signal to increase according to the first control signal, so that the pulse width of the second command signal is widened;

[0016] When the data burst length BL decreases, the shift length between the second intermediate signal and the first intermediate signal is controlled to decrease according to the first control signal, so that the pulse width of the second command signal is narrowed.

[0017] In some embodiments, the command generation circuit further includes a clock processing circuit, wherein:

[0018] a clock processing circuit, configured to receive a clock gating signal and a second clock signal, and control and process the second clock signal according to the clock gating signal to generate a first clock signal;

[0019] When the clock gating signal is in a first level state, the first clock signal and the second clock signal have the same frequency; when the clock gating signal is in a second level state, the first clock signal is in a low level state.

[0020] In some embodiments, the clock processing circuit includes a first NAND gate and a first inversion module, wherein:

[0021] The first input end of the first NAND gate is used to receive a clock gating signal, the second input end of the first NAND gate is used to receive a second clock signal, the output end of the first NAND gate is connected to the input end of the first inverting module, and the output end of the first inverting module is used to output the first clock signal.

[0022] In some embodiments, the first sampling circuit includes a first trigger, wherein:

[0023] The input end of the first trigger is used to receive a first command signal, the clock end of the first trigger is used to receive a first clock signal, and the first output end of the first trigger is used to output a first intermediate signal; wherein, the first output end of the first trigger is used to reflect the value of the input end of the first trigger after being sampled by the first clock signal.

[0024] In some embodiments, the basic delay circuit includes M second flip-flops and N selection units, wherein clock terminals of the M second flip-flops are each configured to receive a first clock signal, and each sub-control signal in the first control signal is connected to a control terminal of the N selection units, respectively; wherein:

[0025] An input terminal of the first second flip-flop is used to receive a first intermediate signal, and a first output terminal of the first second flip-flop is connected to an input terminal of the second second flip-flop and first input terminals of the N selection units respectively;

[0026] The first output terminal of the kth second flip-flop is connected to the input terminal of the next second flip-flop, and the first output terminal of the jth second flip-flop is connected to the second input terminal of the ith selection unit. The output terminal of the ith selection unit is connected to the input terminal of the j+1th second flip-flop, and the first output terminal of the j+1th second flip-flop is connected to the input terminal of the next second flip-flop.

[0027] The first output terminal of the Mth second trigger is connected to the second input terminal of the Nth selection unit, and the output terminal of the Nth selection unit is used to output the second intermediate signal;

[0028] Wherein, i is an integer greater than or equal to 1 and less than N, k is an integer greater than 1 and less than j, and j is an integer greater than k and less than M; the first output end of each second trigger is used to reflect the value of the input end of the second trigger after being sampled by the first clock signal.

[0029] In some embodiments, when the value of M is equal to 7 and the value of N is equal to 2, the first control signal includes a first sub-control signal and a second sub-control signal, and the clock terminals of the seven second flip-flops are all used to receive the first clock signal; wherein:

[0030] The control terminal of the first selection unit is connected to the first sub-control signal, and the control terminal of the second selection unit is connected to the second sub-control signal;

[0031] An input terminal of the first second flip-flop is used to receive the first intermediate signal, and a first output terminal of the first second flip-flop is connected to an input terminal of the second second flip-flop, a first input terminal of the first selection unit, and a first input terminal of the second selection unit respectively;

[0032] The first output end of the second second trigger is connected to the input end of the third second trigger, the first output end of the third second trigger is connected to the input end of the fourth second trigger, the first output end of the fourth second trigger is connected to the input end of the fifth second trigger, the first output end of the fifth second trigger is connected to the second input end of the first selection unit, the output end of the first selection unit is connected to the input end of the sixth second trigger, the first output end of the sixth second trigger is connected to the input end of the seventh second trigger, the first output end of the seventh second trigger is connected to the second input end of the second selection unit, and the output end of the second selection unit is used to output the second intermediate signal.

[0033] In some embodiments, the second sampling circuit includes a third trigger, wherein:

[0034] The input terminal of the third trigger is used to receive the second intermediate signal, the clock terminal of the third trigger is used to receive the first clock signal, the set terminal of the third trigger is used to receive the first intermediate signal, and the first output terminal of the third trigger is used to output the third intermediate signal; wherein, the first output terminal of the third trigger is used to reflect the value of the input terminal of the third trigger after being sampled by the first clock signal.

[0035] In some embodiments, when the first sub-control signal and the second sub-control signal are both in the second level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 8 preset clock cycles;

[0036] When the first sub-control signal is at the first level state and the second sub-control signal is at the second level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 4 preset clock cycles;

[0037] When the first sub-control signal is at the second level state and the second sub-control signal is at the first level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 2 preset clock cycles;

[0038] The preset clock period is equal to the clock period of the first clock signal.

[0039] In some embodiments, the third trigger is configured to control the third intermediate signal to be in the first level state when the first intermediate signal is in the second level state.

[0040] In some embodiments, the first level state is a high level, and the second level state is a low level.

[0041] In some embodiments, the command adjustment circuit includes an SR latch and a second inversion module, and the SR latch includes a second NAND gate and a third NAND gate; wherein:

[0042] The first input terminal of the second NAND gate is used to receive the first intermediate signal, and the second input terminal of the second NAND gate is connected to the output terminal of the third NAND gate;

[0043] The second input end of the third NAND gate is used to receive the third intermediate signal, the first input end of the third NAND gate is connected to the output end of the second NAND gate, and the output end of the second NAND gate is also connected to the input end of the second inverting module, and the output end of the second inverting module is used to output the second command signal.

[0044] In some embodiments, the command generation circuit further includes a delay shift circuit, wherein:

[0045] The delay shift circuit is used to receive a first clock signal and a second command signal, sample and shift the second command signal according to the first clock signal, and obtain a third command signal; wherein the third command signal is used to control the resistance switching of the terminal resistor.

[0046] In a second aspect, an embodiment of the present disclosure provides a memory, which at least includes the command generation circuit as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] FIG1 is a schematic structural diagram of an ODT functional circuit;

[0048] FIG2 is a schematic diagram of a signal timing of an ODT function;

[0049] FIG3 is a first schematic diagram of the structure of a command generating circuit provided in an embodiment of the present disclosure;

[0050] FIG4 is a second structural diagram of a command generating circuit provided by an embodiment of the present disclosure;

[0051] FIG5 is a schematic diagram of a partial structure of a command generating circuit provided in an embodiment of the present disclosure;

[0052] FIG6 is a first schematic diagram of the structure of a basic delay circuit provided by an embodiment of the present disclosure;

[0053] FIG7 is a second schematic diagram of the structure of a basic delay circuit provided in an embodiment of the present disclosure;

[0054] FIG8 is a second partial structural diagram of a command generating circuit provided in an embodiment of the present disclosure;

[0055] FIG9 is a schematic diagram of the structure of a command adjustment circuit provided in an embodiment of the present disclosure;

[0056] FIG10 is a third structural diagram of a command generating circuit provided in an embodiment of the present disclosure;

[0057] FIG11 is a first detailed structural diagram of a command generating circuit provided in an embodiment of the present disclosure;

[0058] FIG12 is a first signal timing diagram provided by an embodiment of the present disclosure;

[0059] FIG13 is a second signal timing diagram provided by an embodiment of the present disclosure;

[0060] FIG14 is a second detailed structural diagram of a command generating circuit provided in an embodiment of the present disclosure;

[0061] FIG15 is a third signal timing diagram provided by an embodiment of the present disclosure;

[0062] FIG16 is a schematic diagram of the composition structure of a memory provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0063] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It should be understood that the specific embodiments described herein are only used to illustrate the relevant disclosure and are not intended to limit the disclosure. It should also be noted that for ease of description, only the portions relevant to the relevant disclosure are shown in the drawings.

[0064] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art in the art of the present disclosure. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.

[0065] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0066] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present disclosure are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present disclosure described here can be implemented in an order other than that illustrated or described here.

[0067] Before further explaining the embodiments of the present disclosure in detail, the nouns and terms involved in the embodiments of the present disclosure are explained first. The nouns and terms involved in the embodiments of the present disclosure are subject to the following interpretations:

[0068] Dynamic Random Access Memory (DRAM);

[0069] Double Data Rate (DDR);

[0070] The third generation of double data rate (Double Data Rate 3, DDR3);

[0071] Fourth-generation double data rate (Double Data Rate 4, DDR4);

[0072] Fifth-generation double data rate (DDR5);

[0073] On Die Termination (ODT);

[0074] Termination resistance / terminal resistance (RTT);

[0075] Mode Register (MR);

[0076] Command (CMD);

[0077] Data (DQ);

[0078] Preset clock cycle (tck);

[0079] Read (RD);

[0080] Write (WR);

[0081] Non-Target Write (NTWR);

[0082] Non-Target Read (NTRD);

[0083] Burst Length (BL);

[0084] Write Latency (WL);

[0085] D-type flip-flop (Data Flip-Flop or Delay Flip-Flop, DFF);

[0086] Set / Reset Latch (SR latch);

[0087] Central Processing Unit (CPU);

[0088] Mode Register Setting (MRS).

[0089] With the rapid development of semiconductor technology, the transmission rate of signals is getting faster and faster, resulting in increasingly prominent signal integrity issues. During the propagation of high-speed signals, due to the discontinuity of impedance causing signal reflection, inter-symbol interference (ISI) errors will occur. In order to better improve the signal integrity of the data, in the design of DDR3, DDR4 and DDR5, ODT resistors can be added to the DQ pins for WR / NTRD / NTWR modes. Here, by using ODT resistors to match the impedance of the transmission line and setting the terminal resistance to a suitable value, the reflection and energy loss of the signal during transmission can be reduced, thereby ensuring the integrity of the signal received at the DQ end.

[0090] Taking DDR5 DRAM as an example, DDR5 DRAM supports the ODT function, which can adjust the terminal resistance (also known as "termination resistance") of each device's DQ, DQS_t / c, DM_n, and TDQS_t / c ports through ODT pin control, write commands, or setting default resistance values ​​in the mode register. In addition, the purpose of the ODT function is to reduce reflections and effectively improve the signal integrity on the memory interface by independently controlling the terminal resistance of all or any DRAM by the controller. As shown in Figure 1, it shows a structural schematic diagram of an ODT function circuit. In Figure 1, the ODT function circuit may include at least a switch S1, a terminal resistor RTT, and a power supply VDDQ. Among them, one end of the switch S1 is connected to one end of the terminal resistor RTT, the other end of the terminal resistor RTT is connected to the power supply VDDQ, and the other end of the switch S1 is connected to other circuits, as well as the DQ, DQS, DM, and TDQS ports. It should be noted that DQS can be a pair of differential data selection signals DQS_t and DQS_c, and TDQS can be a pair of differential data selection signals TDQS_t and TDQS_c.

[0091] In addition, switch S1 in Figure 1 is controlled by the ODT control logic. The ODT control logic includes the external ODT pin input, mode register configuration, and other control information. The RTT value is controlled by the configuration information in the mode register. Furthermore, if RTT_NOM is disabled in self-refresh mode or the mode register configuration, the ODT pin control is ignored.

[0092] Specifically, the ODT function is enabled when the configuration bits MR1{A10,A9,A8}, MR2{A10:A9}, or MR5{A8:A6} are not all zero. In this case, the actual resistance of the ODT resistor is determined by these configuration bits. After entering self-refresh mode, the DDR5 DRAM automatically disables the ODT function. At this time, the termination resistor is set to high-impedance (Hi-Z) to discard all mode register settings.

[0093] For example, FIG2 shows a signal timing diagram of an ODT function, specifically a control timing diagram of the ODT function during a write operation in DDR5. As shown in FIG2, when DDR5 receives a command (CMD), it needs to transmit the command to the DQ end to control the resistance change of RTT. When DDR5 receives a write (Write) command, the resistance of RTT needs to be switched from RTT_PARK to RTT_WR, that is, when the resistance of RTT is in the RTT_PARK stage, the DQ end does not receive data. When the Write command is transmitted to the DQ end, the resistance of RTT is switched to the RTT_WR stage, and the DQ end receives and writes data. The time for the resistance switching of RTT is represented by tODTLon_WR. That is, when the RTT resistance switches from RTT_PARK to RTT_WR, it is necessary to wait for tODTLon_WR preset clock cycles, where tODTLon_WR = WL + ODTLon_WR_offset, where ODTLon_WR_offset is the adjustment value for the tODTLon_WR parameter issued by the controller. The value of ODTLon_WR_offset can be set to -3, -2, -1, 0, or 1 preset clock cycles according to the mode register. In addition, the RTT resistance switching does not occur immediately, but takes time to change. The time for the RTT resistance switching is represented by tADC, where the maximum and minimum values ​​of tADC can be set, represented as: tADC.Max and tADC.Min, respectively.

[0094] When DDR5 receives a Write command, if you want to control the resistance change of RTT, you need to convert the Write command into an internal ODT command to control the resistance change of RTT. As shown in Figure 2, the width of the data is equal to the burst length (Burst Length, BL), so the pulse width of the ODT command must be at least equal to BL times the preset clock period, that is, ODT_width1 = BL. In addition, before the DQ end receives data, the resistance of RTT needs to be switched from RTT_PARK to RTT_WR. After the DQ end finishes receiving data, the resistance of RTT is switched from RTT_WR to RTT_PARK. That is to say, in the actual process, the pulse width of the ODT command needs to have an additional compensation amount (ODT_offset) to meet the timing requirements when the resistance of RTT is switched, that is, ODT_width1 = BL + ODT_offset, where ODT_offset is determined according to the instruction issued by the CPU and is used to further widen the pulse width of the ODT command.

[0095] Table 1 shows the relevant provisions of DDR5 regarding BL, as shown below.

[0096] Table 1

[0097] It's understandable that the above content is the relevant provisions of the DDR5 technical specification for the ODT function. Simply put, the resistance of the termination resistor can be switched, but the switching must follow certain timing requirements. When the DRAM is in WR / NTRD / NTWR mode, the appropriate termination resistor can be set at the DQ pin to improve signal integrity.

[0098] It is also understandable that the DDR5 technical specification requires that the data burst length can support BL8, BL16, BL32, etc. Accordingly, for different data burst lengths, the ODT command needs to support different pulse widths so as to control the resistance switching of the terminal resistor according to the final generated ODT pulse.

[0099] In the embodiment of the present disclosure, for the ODT circuit, when two consecutive ODT commands arrive, if the time interval between the two ODT commands is a specific clock cycle, and the shift length of the ODT command also happens to be a specific clock cycle, the second ODT command may not be output, thereby affecting the ODT function of the memory.

[0100] Based on this, an embodiment of the present disclosure provides a command generating circuit, in which a first command signal is first sampled and processed by a first sampling circuit to obtain a first intermediate signal; then, the first intermediate signal is sampled and shifted according to a first control signal and a first clock signal by a basic delay circuit to obtain a second intermediate signal; the first intermediate signal is then used as a set signal for a second sampling circuit, and the second intermediate signal is sampled and processed according to the first clock signal to obtain a third intermediate signal; finally, a command adjustment circuit is used to perform pulse width adjustment on the first command signal according to the first intermediate signal and the third intermediate signal to generate a second command signal, and the pulse width of the second command signal is greater than the pulse width of the first command signal. In this way, the shift length between the second intermediate signal and the first intermediate signal obtained by the basic delay circuit is affected by the first control signal. The value of the first control signal is correlated with the BL, meaning the shift length between the second intermediate signal and the first intermediate signal is correlated with the BL. Furthermore, because the first intermediate signal serves as the set signal for the second sampling circuit, it can maintain the sampled third intermediate signal at a high level when the first intermediate signal is at a low level. Consequently, when two consecutive ODT commands are present, not only is no output from the second ODT command avoided, but the pulse width of the second command signal is also equal to the shift length between the third intermediate signal and the first intermediate signal. This means that the pulse width of the second command signal is also affected by the BL and can be adaptively adjusted based on the length of the BL. Furthermore, considering the on-chip termination compensation value set by the controller, the second command signal can continue to be pulse-width adjusted to control the switching of the termination resistor value based on the resulting ODT pulse. This reduces energy loss and reflection during signal transmission, improves signal integrity, and thereby enhances memory performance.

[0101] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0102] In one embodiment of the present disclosure, referring to FIG3 , a schematic diagram of the structure of a command generation circuit provided in an embodiment of the present disclosure is shown. As shown in FIG3 , the command generation circuit 30 may include a first sampling circuit 301, a basic delay circuit 302, a second sampling circuit 303, and a command adjustment circuit 304. The output of the first sampling circuit 301 is connected to the input of the basic delay circuit 302, the output of the basic delay circuit 302 is connected to the input of the second sampling circuit 303, and the output of the first sampling circuit 301 and the output of the second sampling circuit 303 are both connected to the command adjustment circuit 304, wherein:

[0103] The first sampling circuit 301 is configured to receive a first command signal and a first clock signal, and sample the first command signal according to the first clock signal to obtain a first intermediate signal;

[0104] The basic delay circuit 302 is configured to receive a first intermediate signal, a first clock signal, and a first control signal, and to sample and shift the first intermediate signal according to the first control signal and the first clock signal to obtain a second intermediate signal; wherein a shift length between the second intermediate signal and the first intermediate signal is correlated with the first control signal;

[0105] The second sampling circuit 303 is configured to receive the first clock signal, the first intermediate signal, and the second intermediate signal, set the second sampling circuit according to the first intermediate signal, and sample the second intermediate signal according to the first clock signal to obtain a third intermediate signal;

[0106] The command adjustment circuit 304 is used to receive the first intermediate signal and the third intermediate signal, perform pulse width adjustment processing on the first command signal according to the first intermediate signal and the third intermediate signal, and generate a second command signal, wherein the pulse width of the second command signal is greater than the pulse width of the first command signal.

[0107] It should be noted that, in the embodiment of the present disclosure, the command generation circuit 30 can be applied to a memory. The memory can be, for example, a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), etc., and this is not specifically limited here.

[0108] It should also be noted that in the disclosed embodiment, the command generation circuit 30 is specifically a circuit for generating ODT commands, which can support the ODT function introduced in DDR5. Here, the first intermediate signal is used as the set signal for the second sampling circuit 303. Therefore, in the second sampling circuit 303, when the first intermediate signal is at a low level, the third intermediate signal obtained by sampling at this time remains at a high level. In this way, when there are two consecutive ODT commands, the phenomenon of no output of the second ODT command is effectively avoided.

[0109] In some embodiments, the value of the first control signal is associated with the data burst length BL.

[0110] It should be noted that, in the embodiment of the present disclosure, different values ​​of the first control signal may correspond to different BLs, wherein the value of BL may be 8, 16, 32, etc., which is not specifically limited here.

[0111] It should also be noted that, in the embodiment of the present disclosure, the value of the first control signal can be set by a mode register. Specifically, if the value of the first control signal is the first value, the value of BL can be 8; if the value of the first control signal is the second value, the value of BL can be 16; and if the value of the first control signal is the third value, the value of BL can be 32.

[0112] Here, the first value, the second value, and the third value are all different. For example, in the case where the first control signal includes a first sub-control signal SEL1 and a second sub-control signal SEL0, the values ​​of the first control signal can be, for example, set to 01, i.e., SEL1 is 0 and SEL0 is 1; the second value can be set to 10, i.e., SEL1 is 1 and SEL0 is 0; and the third value can be set to 00, i.e., SEL1 is 0 and SEL0 is 0. These are not specifically limited herein.

[0113] It should also be noted that in the disclosed embodiment, the shift length between the second intermediate signal and the first intermediate signal is associated with the first control signal, that is, the shift length between the second intermediate signal and the first intermediate signal is also associated with BL. For example, a larger value of BL results in a longer shift length between the second intermediate signal and the first intermediate signal; a smaller value of BL results in a shorter shift length between the second intermediate signal and the first intermediate signal.

[0114] In some embodiments, a pulse width of the second command signal is equal to a shift length between the third intermediate signal and the first intermediate signal, and the pulse width of the second command signal is correlated with a data burst length BL.

[0115] Furthermore, in some embodiments, when BL increases, the shift length between the second intermediate signal and the first intermediate signal is controlled to increase according to the first control signal, so that the pulse width of the second command signal is widened; when BL decreases, the shift length between the second intermediate signal and the first intermediate signal is controlled to decrease according to the first control signal, so that the pulse width of the second command signal is narrowed.

[0116] It should be noted that in the disclosed embodiment, assuming the shift length between the third intermediate signal and the first intermediate signal is A, the shift length between the second intermediate signal and the first intermediate signal is B, and the shift length between the third intermediate signal and the second intermediate signal is C, then A = B + C, and C is equal to one clock cycle of the first clock signal. Because the length of B is affected by BL, the length of A is also affected by BL. In other words, the shift length between the third intermediate signal and the first intermediate signal (i.e., the pulse width of the second command signal) is affected by BL.

[0117] For example, if the value of BL is larger, the shift length between the second intermediate signal and the first intermediate signal controlled by the first control signal is longer, and the shift length between the third intermediate signal and the first intermediate signal is also longer, and accordingly, the pulse width of the second command signal is wider; conversely, if the value of BL is smaller, the shift length between the second intermediate signal and the first intermediate signal controlled by the first control signal is shorter, and the shift length between the third intermediate signal and the first intermediate signal is also shorter, and accordingly, the pulse width of the second command signal is narrower.

[0118] Simply put, in the disclosed embodiment, different values ​​of the first control signal correspond to different BLs. Furthermore, the larger the BL value, the longer the shift length generated by the basic delay circuit 302, and the wider the pulse width of the generated second command signal, ensuring that the width of the resulting ODT pulse can cover the entire DQ data writing process.

[0119] In some embodiments, based on the command generation circuit 30 shown in FIG3 , referring to FIG4 , the command generation circuit 30 may further include a clock processing circuit 305 , wherein:

[0120] The clock processing circuit 305 is configured to receive the clock gating signal and the second clock signal, and perform control processing on the second clock signal according to the clock gating signal to generate the first clock signal.

[0121] In the embodiment of the present disclosure, when the clock gating signal is in the first level state, the frequency of the first clock signal and the second clock signal are the same; when the clock gating signal is in the second level state, the first clock signal is in a low level state.

[0122] In the embodiment of the present disclosure, the first level state may be a high level, such as logic 1; the second level state may be a low level, such as logic 0, but this is not specifically limited.

[0123] In this way, if the clock gating signal is at a high level, the first clock signal output at this time is the second clock signal; if the clock gating signal is at a low level, the second clock signal is shielded at this time, so that the output first clock signal is at a low level and no longer has a clock function.

[0124] In some embodiments, based on the command generation circuit 30 shown in FIG4 , referring to FIG5 , the clock processing circuit 305 may include a first NAND gate A1 and a first inverting module A2 , wherein:

[0125] The first input end of the first NAND gate A1 is used to receive a clock gating signal, the second input end of the first NAND gate A1 is used to receive a second clock signal, the output end of the first NAND gate A1 is connected to the input end of the first inverting module A2, and the output end of the first inverting module A2 is used to output the first clock signal.

[0126] It should be noted that in the embodiment of the present disclosure, the first inverting module A2 can be composed of first NOT gates, and the number of first NOT gates is an odd number. The greater the number of first NOT gates, the longer the delay time between the first clock signal and the second clock signal. Therefore, in the embodiment of the present disclosure, the number of first NOT gates can be set to one, but this is not specifically limited.

[0127] Furthermore, in some embodiments, as shown in FIG5 , the first sampling circuit 301 may include a first trigger A3 , wherein:

[0128] The input end of the first trigger A3 is used to receive a first command signal, the clock end of the first trigger A3 is used to receive a first clock signal, and the first output end of the first trigger A3 is used to output a first intermediate signal; wherein, the first output end of the first trigger A3 is used to reflect the value of the input end of the first trigger A3 after being sampled by the first clock signal.

[0129] It should be noted that in the embodiment of the present disclosure, the first trigger A3 can be a D-type trigger (Data Flip-Flop or Delay Flip-Flop, DFF). Among them, the D-type trigger is an information storage device with a memory function and two stable states. It is the most basic logic unit that constitutes a variety of sequential circuits and is also an important unit circuit in digital logic circuits. Here, the D-type trigger has two stable states, namely "0" and "1", and can flip from one stable state to another under the action of the signal received at the clock end.

[0130] It should also be noted that, in the embodiment of the present disclosure, the first trigger A3 may include a clock terminal (CK), an input terminal (D), a first output terminal (Q), and a second output terminal (Q). And the first output terminal (Q) and the second output terminal In addition, the first trigger A3 may also include a set terminal (SET) and a reset terminal (RST), but they are not shown in the figure.

[0131] That is, in the first sampling circuit 301 , the first clock signal can be sampled and processed on the first command signal through the first trigger A3 , thereby outputting a first intermediate signal, which can be used as a set signal for the subsequent second sampling circuit 303 .

[0132] In some embodiments, as for the basic delay circuit 302, referring to FIG6, the basic delay circuit 302 may include M second flip-flops (U1, U2, ...UM) and N selection units (D1, D2, ...DN), wherein clock terminals of the M second flip-flops are all used to receive the first clock signal, and each sub-control signal in the first control signal is connected to the control terminal of the N selection units respectively; wherein:

[0133] An input terminal of the first second trigger U1 is used to receive the first intermediate signal, and a first output terminal of the first second trigger U1 is connected to an input terminal of the second second trigger U2 and first input terminals of the N selection units respectively;

[0134] The first output terminal of the kth second flip-flop Uk is connected to the input terminal of the next second flip-flop, until the first output terminal of the jth second flip-flop Uj is connected to the second input terminal of the i-th selection unit Di, the output terminal of the i-th selection unit Di is connected to the input terminal of the j+1th second flip-flop Uj+1, and the first output terminal of the j+1th second flip-flop Uj+1 is connected to the input terminal of the next second flip-flop;

[0135] A first output terminal of the M-th second flip-flop UM is connected to a second input terminal of the N-th selection unit DN, and an output terminal of the N-th selection unit DN is used to output a second intermediate signal;

[0136] Wherein, i is an integer greater than or equal to 1 and less than N, k is an integer greater than 1 and less than j, and j is an integer greater than k and less than M; the first output end of each second trigger is used to reflect the value of the input end of the second trigger after being sampled by the first clock signal.

[0137] In the disclosed embodiment, the first control signal may include N sub-control signals (SEL0, SEL1, ..., SELN-1), each of which is connected to the control terminals of N selection units. Specifically, the control terminal of the first selection unit D1 is connected to the first sub-control signal SELN-1, the control terminal of the second selection unit D2 is connected to the second sub-control signal SELN-2, the control terminal of the i-th selection unit Di is connected to the i-th sub-control signal SELN-i, and the control terminal of the N-th selection unit DN is connected to the N-th sub-control signal SEL0. Thus, based on the values ​​of these N sub-control signals, the number of second flip-flops that actually shift the first intermediate signal can be determined, and thus the shift length between the second intermediate signal and the first intermediate signal can be determined. For example, based on the values ​​of the N sub-control signals, if the number of second triggers that actually shift the first intermediate signal is greater, the shift length between the second intermediate signal and the first intermediate signal will be longer; conversely, if the number of second triggers that actually shift the first intermediate signal is smaller, the shift length between the second intermediate signal and the first intermediate signal will be shorter.

[0138] Furthermore, in the embodiment of the present disclosure, the value of M can be equal to 7, and the value of N can be equal to 2. In this case, the first control signal can include a first sub-control signal SEL1 and a second sub-control signal SEL0. In some embodiments, referring to FIG7 , the basic delay circuit 302 can include seven second flip-flops (U1, U2, ..., U7) and two selection units (D1, D2), and the clock terminals of the seven second flip-flops are all used to receive the first clock signal; wherein:

[0139] The control terminal of the first selection unit D1 is connected to the first sub-control signal SEL1, and the control terminal of the second selection unit D2 is connected to the second sub-control signal SEL0;

[0140] An input terminal of the first second flip-flop U1 is used to receive the first intermediate signal, and a first output terminal of the first second flip-flop U1 is connected to an input terminal of the second second flip-flop U2, a first input terminal of the first selection unit D1, and a first input terminal of the second selection unit D2, respectively;

[0141] The first output end of the second second trigger U2 is connected to the input end of the third second trigger U3, the first output end of the third second trigger U3 is connected to the input end of the fourth second trigger U4, the first output end of the fourth second trigger U4 is connected to the input end of the fifth second trigger U5, the first output end of the fifth second trigger U5 is connected to the second input end of the first selection unit D1, the output end of the first selection unit D1 is connected to the input end of the sixth second trigger U6, the first output end of the sixth second trigger U6 is connected to the input end of the seventh second trigger U7, the first output end of the seventh second trigger U7 is connected to the second input end of the second selection unit D2, and the output end of the second selection unit D2 is used to output the second intermediate signal.

[0142] It should also be noted that in the embodiment of the present disclosure, the number of second flip-flops in the basic delay circuit 302 that actually shift the first intermediate signal can be determined based on the values ​​of the first sub-control signal SEL1 and the second sub-control signal SEL0, and thus the shift length between the second intermediate signal and the first intermediate signal can be determined. Here, if the first sub-control signal and the second sub-control signal are both in the second level state (for example, the value of SEL1 is equal to 0, and the value of SEL0 is equal to 0), then there are seven second flip-flops in the basic delay circuit 302 that actually shift the first intermediate signal, specifically the second flip-flops U1 to U7. At this time, the shift length between the second intermediate signal and the first intermediate signal is equal to 7 preset clock cycles; if the first sub-control signal is in the first level state and the second sub-control signal is in the second level state (for example, the value of SEL1 is equal to 1, and the value of SEL0 is equal to 0), then the number of second flip-flops in the basic delay circuit 302 that actually shift the first intermediate signal is equal to 7 preset clock cycles. Three second flip-flops, specifically second flip-flops U1, U6, and U7, actually shift an intermediate signal. In this case, the shift length between the second intermediate signal and the first intermediate signal is equal to three preset clock cycles. If the first sub-control signal is in the second level state and the second sub-control signal is in the first level state (for example, the value of SEL1 is equal to 0 and the value of SEL0 is equal to 1), then only one second flip-flop, specifically second flip-flop U1, in the basic delay circuit 302 actually shifts the first intermediate signal. In this case, the shift length between the second intermediate signal and the first intermediate signal is equal to one preset clock cycle. The preset clock cycle can be the clock cycle of the first clock signal.

[0143] In some embodiments, based on the basic delay circuit 302 shown in FIG. 7 , referring to FIG. 8 , the second sampling circuit 303 may include a third trigger U8 , wherein:

[0144] The input end of the third trigger U8 is used to receive the second intermediate signal, the clock end of the third trigger U8 is used to receive the first clock signal, the set end of the third trigger U8 is used to receive the first intermediate signal, and the first output end of the third trigger U8 is used to output the third intermediate signal; wherein, the first output end of the third trigger U8 is used to reflect the value of the input end of the third trigger U8 after being sampled by the first clock signal.

[0145] It should be noted that, in the embodiment of the present disclosure, both the second trigger and the third trigger may be D-type triggers.

[0146] It should also be noted that, in the embodiment of the present disclosure, the sampling processing of the second intermediate signal by the first clock signal can be realized through the third trigger U8, so that the third intermediate signal can be output, and the shift length between the third intermediate signal and the second intermediate signal is equal to 1 preset clock cycle.

[0147] Furthermore, in some embodiments, when the first sub-control signal and the second sub-control signal are both in the second level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 8 preset clock cycles;

[0148] When the first sub-control signal is at the first level state and the second sub-control signal is at the second level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 4 preset clock cycles;

[0149] When the first sub-control signal is in the second level state and the second sub-control signal is in the first level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 2 preset clock cycles.

[0150] The preset clock period is equal to the clock period of the first clock signal.

[0151] It should be noted that, in the embodiment of the present disclosure, when the first sub-control signal and the second sub-control signal are both in the second level state (for example, the value of SEL1 is equal to 0, and the value of SEL0 is equal to 0), since the shift length between the second intermediate signal and the first intermediate signal is equal to 7 preset clock cycles, the shift length between the third intermediate signal and the second intermediate signal is equal to 1 preset clock cycle; therefore, the shift length between the third intermediate signal and the first intermediate signal is equal to 8 preset clock cycles.

[0152] It should also be noted that, in the embodiment of the present disclosure, when the first sub-control signal is in the first level state and the second sub-control signal is in the second level state (for example, the value of SEL1 is equal to 1, and the value of SEL0 is equal to 0), since the shift length between the second intermediate signal and the first intermediate signal is equal to 3 preset clock cycles, the shift length between the third intermediate signal and the second intermediate signal is equal to 1 preset clock cycle; therefore, the shift length between the third intermediate signal and the first intermediate signal is equal to 4 preset clock cycles.

[0153] It should also be noted that, in the embodiment of the present disclosure, when the first sub-control signal is in the second level state and the second sub-control signal is in the first level state (for example, the value of SEL1 is equal to 0, and the value of SEL0 is equal to 1), since the shift length between the second intermediate signal and the first intermediate signal is equal to 1 preset clock cycle, the shift length between the third intermediate signal and the second intermediate signal is equal to 1 preset clock cycle; therefore, the shift length between the third intermediate signal and the first intermediate signal is equal to 2 preset clock cycles.

[0154] In short, in the embodiment of the present disclosure, the shift length between the third intermediate signal and the first intermediate signal is related to the value of the first control signal, or in other words, the shift length between the third intermediate signal and the first intermediate signal is related to the value of BL.

[0155] Furthermore, in some embodiments, the third trigger U8 is configured to control the third intermediate signal to be in the first level state when the first intermediate signal is in the second level state.

[0156] In the embodiment of the present disclosure, the first level state may be a high level, and the second level state may be a low level. Alternatively, the first level state may be a logic 1, and the second level state may be a logic 0.

[0157] In the embodiment of the present disclosure, for the third trigger U8, since the first intermediate signal is used as the set signal of the third trigger U8, according to the function of the set signal, when the set signal is at a low level, the third intermediate signal output by the third trigger U8 is always at a high level; in this way, when there are two consecutive ODT commands, the second ODT command can be effectively avoided from having no output.

[0158] It should be noted that for the set terminal of the third flip-flop U8, if additional inverters are added, the logic here can also be: when the first intermediate signal is at a high level, the third intermediate signal output by the third flip-flop U8 is always at a high level. In other words, in the embodiment of the present disclosure, the first level state can also be a low level (i.e., logic 0), and the second level state can also be a high level (i.e., logic 1). Among them, for different operation logics, it is possible to consider adding more inverters here, and the subsequent logic needs to be adjusted accordingly, so that the same effect can be achieved.

[0159] In some embodiments, as for the command adjustment circuit 304, referring to FIG9, the command adjustment circuit 304 may include an SR latch 401 and a second inverting module 402, and the SR latch 401 includes a second NAND gate B1 and a third NAND gate B2; wherein:

[0160] The first input terminal of the second NAND gate B1 is used to receive the first intermediate signal, and the second input terminal of the second NAND gate B1 is connected to the output terminal of the third NAND gate B2;

[0161] The second input terminal of the third NAND gate B2 is used to receive the third intermediate signal. The first input terminal of the third NAND gate B2 is connected to the output terminal of the second NAND gate B1, and the output terminal of the second NAND gate B1 is also connected to the input terminal of the second inverting module 402. The output terminal of the second inverting module 402 is used to output the second command signal.

[0162] It should be noted that in the embodiment of the present disclosure, the output terminal of the SR latch 401 is used to output the fourth intermediate signal, and then the input terminal of the second inverting module 402 is used to receive the fourth intermediate signal, and the output terminal of the second inverting module 402 is used to output the second command signal. Here, there is a delay and an inversion relationship between the fourth intermediate signal and the second command signal.

[0163] It should also be noted that, in the disclosed embodiment, for SR latch 401, the rising edge of the fourth intermediate signal can be generated based on the level flipping moment of the first intermediate signal (specifically, from a high level to a low level), and the falling edge of the fourth intermediate signal can be generated based on the level flipping moment of the third intermediate signal (specifically, from a high level to a low level). Furthermore, because the third intermediate signal is delayed by a preset shift length relative to the first intermediate signal, after the SR latch 401 logically processes the first and third intermediate signals, the resulting fourth intermediate signal is an active-high pulse signal with a pulse width extended to the preset shift length.

[0164] That is, SR latch 401 is used to generate a fourth intermediate signal that is wider than the pulse width of the first command signal, and the pulse width of the fourth intermediate signal is a preset shift length. For example, for the first control signal, if the value of SEL1 is 0 and the value of SEL0 is 0, then the preset shift length can be equal to 8 preset clock cycles; if the value of SEL1 is 1 and the value of SEL0 is 0, then the preset shift length can be equal to 4 preset clock cycles; if the value of SEL1 is 0 and the value of SEL0 is 1, then the preset shift length can be equal to 2 preset clock cycles.

[0165] In addition, in the embodiment of the present disclosure, the second inverting module 402 can be composed of a second NOT gate B3, and the number of the second NOT gate B3 can be an odd number. Because the second inverting module 402 includes an odd number of second NOT gates, the output signal of the SR latch 401 is not only delayed, but also the level state of the output signal is changed. Here, the second inverting module 402 can be composed of one second NOT gate B3, or it can be composed of three, five, or more second NOT gates B3 connected in series. For example, the number of the second NOT gate B3 can be set to 1, but this is not specifically limited.

[0166] It should also be noted that, in the embodiment of the present disclosure, the greater the number of second NOT gates, the longer the delay time between the output signal of the SR latch 401 and the second command signal. In other words, depending on the number of second NOT gates in the second inverting module 402, the delay time between the output signal of the SR latch 401 and the second command signal also varies accordingly. Thus, the embodiment of the present disclosure can determine the specific number of second NOT gates in the second inverting module 402 based on the required delay time.

[0167] In some embodiments, based on the command generation circuit 30 shown in FIG4 , referring to FIG10 , the command generation circuit 30 may further include a delay shift circuit 306 , wherein:

[0168] The delay shift circuit 306 is used to receive the first clock signal and the second command signal, sample and shift the second command signal according to the first clock signal to obtain a third command signal; wherein the third command signal is used to control the resistance switching of the terminal resistor.

[0169] It should be noted that, in the embodiment of the present disclosure, the pulse width difference between the third command signal and the second command signal is associated with the on-chip termination compensation value set by the controller.

[0170] It should also be noted that in this disclosed embodiment, to minimize DQ pin reflections when receiving DQ data, the delay shift circuit 306 can further widen the pulse width of the ODT command based on the CPU's required ODT_offset to generate the final ODT pulse at the DQ pin, i.e., the third command signal. The pulse width difference between the third command signal and the second command signal can be represented as ODT_offset, and different on-chip termination compensation values ​​can be set by the controller. Furthermore, ODT_offset can have nine possible values, ranging from 0 to 8 tck, which are not specifically limited here.

[0171] In addition, in the embodiment of the present disclosure, for the third command signal, the pulse width of the third command signal is not only related to the value of BL, but also related to ODT_offset, so that the reflection of the DQ pin can be well reduced when receiving DQ data.

[0172] This embodiment provides a command generation circuit, comprising a first sampling circuit, a basic delay circuit, a second sampling circuit, and a command adjustment circuit. In particular, because the first intermediate signal serves as a set signal for the second sampling circuit, the sampled third intermediate signal can be maintained at a high level when the first intermediate signal is at a low level. This effectively prevents the second ODT command from failing to output when two consecutive ODT commands are present. Furthermore, the pulse width of the second command signal is equal to the shift length between the third intermediate signal and the first intermediate signal, and the shift length between the third intermediate signal and the first intermediate signal is related to the BL. This means that the pulse width of the second command signal is affected by the BL and can be adaptively adjusted based on the length of the BL. Furthermore, considering an on-chip termination compensation value set by a controller, the second command signal can continue to be pulse-width adjusted, so that the resistance switching of the termination resistor is controlled based on the resulting ODT pulse. This reduces energy loss and reflection during signal transmission, improves signal integrity, and thereby enhances memory performance.

[0173] In another embodiment of the present disclosure, based on the command generation circuit 30 described in the aforementioned embodiment, see Figure 11, which shows a detailed structural diagram of a command generation circuit provided by an embodiment of the present disclosure. As shown in Figure 11, the command generation circuit 30 may include a first NAND gate 501, a first NOT gate 502, a first flip-flop 503, a second flip-flop 504, a third flip-flop 505, a fourth flip-flop 506, a fifth flip-flop 507, a sixth flip-flop 508, a seventh flip-flop 509, an eighth flip-flop 510, a ninth flip-flop 511, a first selection unit 512, a second selection unit 513, an SR latch 514, and a second NOT gate 515. For specific connection relationships, see Figure 11.

[0174] In Figure 11, the first sub-control signal can be represented by SEL1, and the second sub-control signal can be represented by SEL0; the first command signal is represented by CMD_IN, the first clock signal is represented by CLK1, the clock gating signal is represented by CLK_Gating, the second clock signal is represented by CLK, the first intermediate signal can be represented by Q1, the second intermediate signal can be represented by Q2, and the third intermediate signal can be represented by CMD_shift; the first delayed signal can be represented by CMD_delay; and the second command signal can be represented by OUTPUT. It should be noted that there is a slight delay between the first intermediate signal Q1 and the first delayed signal CMD_delay due to the transmission path. Under normal circumstances, this delay is negligible, and the first intermediate signal Q1 and the first delayed signal CMD_delay can be regarded as a single signal.

[0175] It should be noted that, with respect to FIG11 , when the first command signal CMD_IN includes a single command, the first sub-control signal SEL1 takes a value of 1, and the second sub-control signal SEL0 takes a value of 0, the corresponding signal timing is shown in FIG12 . Specifically, the first flip-flop 503 samples the first command signal CMD_IN to generate a first intermediate signal Q1 and a first delayed signal CMD_delay. The delay time between the first intermediate signal Q1 and the first delayed signal CMD_delay is t1, which is generated by the transmission path and is therefore relatively small and can generally be ignored.

[0176] Furthermore, the second flip-flop 504 samples the first intermediate signal Q1 to generate a fifth intermediate signal Q3. The delay between the fifth intermediate signal Q3 and the first intermediate signal Q1 is 1 tck (i.e., one predetermined clock cycle). Furthermore, since the first sub-control signal SEL1 is 1 and the second sub-control signal SEL0 is 0, the fifth intermediate signal Q3 is further sampled by the seventh flip-flop 509, the eighth flip-flop 510, and the ninth flip-flop 511 to generate a third intermediate signal CMD_shift. The delay between the third intermediate signal CMD_shift and the first intermediate signal Q1 is 4 tck (i.e., four predetermined clock cycles). Finally, through the SR latch 514 and the second NOT gate 515, the first delayed signal CMD_delay and the third intermediate signal CMD_shift generate the falling edge and rising edge of the second command signal OUTPUT, respectively. The pulse width of the second command signal OUTPUT is equal to the delay between the third intermediate signal CMD_shift and the first intermediate signal Q1 (i.e., 4 tck).

[0177] It should also be noted that, with respect to FIG11 , when the first command signal CMD_IN includes two consecutive commands with a time interval of 4 tck between the two commands, and when the first sub-control signal SEL1 takes the value of 1 and the second sub-control signal SEL0 takes the value of 0, the corresponding signal timing is shown in FIG13 . The first flip-flop 503 samples the first command signal CMD_IN to obtain a first intermediate signal Q1 and a first delayed signal CMD_delay. The delay time between the first delayed signal CMD_delay and the first command signal CMD_IN is t2, which can be caused by both the device delay of the first flip-flop 503 and the transmission path delay. The device delay of the first flip-flop 503 primarily manifests as the delay time between the first command signal CMD_IN and the first intermediate signal Q1, while the transmission path delay primarily manifests as the delay time between the first intermediate signal Q1 and the first delayed signal CMD_delay. The transmission path delay is relatively small and can generally be ignored.

[0178] Furthermore, since the first sub-control signal SEL1 takes the value of 1 and the second sub-control signal SEL0 takes the value of 0, the first intermediate signal Q1 is sampled and processed sequentially by the second flip-flop 504, the seventh flip-flop 509, the eighth flip-flop 510, and the ninth flip-flop 511, thereby generating the third intermediate signal CMD_shift. Here, considering the delays of the second flip-flop 504, the seventh flip-flop 509, the eighth flip-flop 510, and the ninth flip-flop 511, as well as the transmission path delay, the delay time caused by these delays is set to t3. Therefore, the delay time between the third intermediate signal CMD_shift and the first delayed signal CMD_delay is the sum of 4tck and t3. Ideally, t3 is negligible, that is, the delay time between the third intermediate signal CMD_shift and the first delayed signal CMD_delay can be considered to be 4tck.

[0179] For the command generation circuit 30 shown in Figure 11, if two consecutive commands are received, and the time interval between the two commands is 4tck, and the delay time between the third intermediate signal CMD_shift and the first delay signal CMD_delay is also 4tck, at this time, the second command in the first command signal CMD_IN does not output the correct level through the second command signal OUTPUT, resulting in the DQ end being unable to set the correct terminal resistance value. As can be seen from Figure 13, for the second command in the first command signal CMD_IN, when the CMD_delay corresponding to the second command is at a low level, the third intermediate signal CMD_shift is also at a low level (this is because the time interval between the two commands is 4 tcks, and the signal shift is also exactly 4 tcks). Therefore, at the end of the second pulse of CMD_delay, the second command signal OUTPUT changes from a low level to a high level; however, at this time, the third intermediate signal CMD_shift is still at a low level. According to the logic processing of the SR latch 514 and the second NOT gate 515, the final output second command signal OUTPUT remains at a high level, and the second command signal OUTPUT does not change to a low level afterwards, that is, the OUTPUT corresponding to the second command remains at a high level. In other words, in the second command signal OUTPUT, only the pulse corresponding to the first command is output as a low-level pulse, and the pulse width is widened to cover the DQ data writing process corresponding to the first command; however, the second command does not output the correct level through the second command signal OUTPUT, resulting in the inability to set the correct terminal resistance value at the DQ end.

[0180] In summary, in the embodiment of the present disclosure, when two consecutive ODT commands arrive, if the time interval between the two ODT commands is a specific number of preset clock cycles, and the shift length of the ODT command also happens to be a specific number of preset clock cycles, for example, the specific number is 4; then for the command generating circuit, the second ODT command will not be output in the final output ODT pulse.

[0181] Based on this, with respect to the command generation circuit 30 described in the aforementioned embodiment, FIG14 is a detailed structural diagram of another command generation circuit 30 provided in an embodiment of the present disclosure. As shown in FIG14 , the command generation circuit 30 may include a first NAND gate 601, a first NOT gate 602, a first flip-flop 603, a second flip-flop 604, a third flip-flop 605, a fourth flip-flop 606, a fifth flip-flop 607, a sixth flip-flop 608, a seventh flip-flop 609, an eighth flip-flop 610, a ninth flip-flop 611, a first selection unit 612, a second selection unit 613, an SR latch 614, and a second NOT gate 615. For specific connection relationships, see FIG14 .

[0182] In FIG14 , the first sub-control signal can be represented by SEL1, and the second sub-control signal can be represented by SEL0; the first command signal can be represented by CMD_IN, the first clock signal can be represented by CLK1, the clock gating signal can be represented by CLK_Gating, the second clock signal can be represented by CLK, the first intermediate signal can be represented by Q1, the second intermediate signal can be represented by Q2, and the third intermediate signal can be represented by CMD_shift; the first delay signal can be represented by CMD_delay; and the second command signal can be represented by OUTPUT. Furthermore, compared to the command generation circuit 30 shown in FIG11 , in FIG14 , the set terminal (SET) of the ninth flip-flop 611 is used to receive the first delay signal CMD_delay.

[0183] In addition, it should be noted that there is a slight delay between the first intermediate signal Q1 and the first delayed signal CMD_delay due to the transmission path. Generally, this delay can be ignored. In other words, in the embodiment of the present disclosure, the first intermediate signal Q1 and the first delayed signal CMD_delay can be regarded as one signal.

[0184] It should also be noted that, with respect to FIG14 , when the first command signal CMD_IN is two consecutive commands with a time interval of 4 tck between the two commands, and when the value of the first sub-control signal SEL1 is 1 and the value of the second sub-control signal SEL0 is 0, the corresponding signal timing is shown in FIG15 . Specifically, the first delay signal CMD_delay is obtained by sampling the first command signal CMD_IN by the first flip-flop 603. Here, there is a delay between the first delay signal CMD_delay and the first command signal CMD_IN. This delay time may be caused by both the device delay of the first flip-flop 603 and the transmission path delay.

[0185] Furthermore, since the first sub-control signal SEL1 takes the value of 1 and the second sub-control signal SEL0 takes the value of 0, the first intermediate signal Q1, after being sampled by the second flip-flop 604, can generate the fifth intermediate signal Q3. The fifth intermediate signal Q3 is then sampled by the seventh flip-flop 609, the eighth flip-flop 610, and the ninth flip-flop 611, thereby generating the third intermediate signal CMD_shift. Subsequently, the first command signal is pulse-stretched by the SR latch 614 and the second NOT gate 615. Specifically, the first falling edge of the first delay signal CMD_delay generates the falling edge of the second command signal OUTPUT, and the falling edge of the third intermediate signal CMD_shift generates the rising edge of the second command signal OUTPUT. The pulse width of the second command signal OUTPUT is equal to 8tck (i.e., eight preset clock cycles). A falling edge here refers to when the signal changes from a high level to a low level, and a rising edge refers to when the signal changes from a low level to a high level.

[0186] In addition, based on the command generation circuit 30 shown in FIG14 , if two consecutive commands are received with a time interval of 4 tck between the two commands, and the delay time between the third intermediate signal CMD_shift and the first delayed signal CMD_delay is also 4 tck, FIG15 shows that for the second command in the first command signal CMD_IN, when the first delayed signal CMD_delay corresponding to the second command is at a low level, the third intermediate signal CMD_shift remains at a high level (this is because CMD_delay serves as the set signal of the ninth flip-flop 611). Therefore, at the end of the second pulse of CMD_delay, the second command signal OUTPUT remains at a low level. According to the logic processing of the SR latch 614 and the second NOT gate 615, the second command signal OUTPUT is ultimately output at a low level until the falling edge of the third intermediate signal CMD_shift, at which point the second command signal OUTPUT changes from a low level to a high level. At this time, the active-low pulse width of the second command signal OUTPUT is 8 tck.

[0187] In the disclosed embodiment, since the first delay signal CMD_delay serves as the set signal for the ninth flip-flop 611, the third intermediate signal CMD_shift can be maintained at a high level at all times when the first delay signal CMD_delay is at a low level. Thus, by using the first delay signal CMD_delay to set the third intermediate signal CMD_shift, the second command signal OUTPUT, output after passing through the SR latch and the second NOT gate, can be effectively prevented from being reset to a high level. This ensures that the pulse width of the second command signal OUTPUT when at a low level is equal to 8tck, thereby preventing the second ODT command from being output when two consecutive ODT commands are present, and thereby correctly setting the resistance value of the termination resistor.

[0188] This embodiment provides a command generation circuit that supports data burst lengths such as BL8, BL16, and BL32. Furthermore, when in WR / NTRD / NTWR mode, appropriate termination resistors can be configured on the DQ pins. This prevents the second ODT command from failing to output when two consecutive ODT commands are executed, while also reducing energy loss and reflection during signal transmission, improving signal integrity and ultimately boosting memory performance.

[0189] In another embodiment of the present disclosure, referring to Figure 16, a schematic diagram of the composition structure of a memory provided by an embodiment of the present disclosure is shown. As shown in Figure 16, the memory 160 at least includes the command generation circuit 30 as described in the above embodiment.

[0190] In some embodiments, the memory 160 may include a DRAM chip. The DRAM chip may conform not only to memory specifications such as DDR, DDR2, DDR3, DDR4, DDR5, and DDR6, but also to memory specifications such as LPDDR, LPDDR2, LPDDR3, LPDDR4, LPDDR5, and LPDDR6, which are not specifically limited herein.

[0191] In the embodiment of the present disclosure, for the memory 160, the first intermediate signal is used as a set signal, so that the sampled third intermediate signal can be maintained at a high level when the first intermediate signal is at a low level, thereby effectively avoiding the second ODT command from having no output when there are two consecutive ODT commands; in addition, the pulse width of the second command signal is equal to the shift length between the third intermediate signal and the first intermediate signal, and the pulse width of the second command signal will be affected by BL. According to the length of BL, the pulse width of the second command signal can be adaptively adjusted; in addition, considering the on-chip termination compensation value set by the controller, the second command signal can continue to be pulse-width adjusted so that the resistance switching of the terminal resistor can be controlled according to the finally generated ODT pulse, thereby reducing the energy loss and reflection of the signal during transmission, improving the signal integrity, and thus improving the memory performance.

[0192] The above description is merely a preferred embodiment of the present disclosure and is not intended to limit the scope of protection of the present disclosure.

[0193] It should be noted that, in this disclosure, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0194] The serial numbers of the above-mentioned embodiments of the present disclosure are for description only and do not represent the advantages or disadvantages of the embodiments.

[0195] The methods disclosed in the several method embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new method embodiments.

[0196] The features disclosed in the several product embodiments provided in this disclosure can be arbitrarily combined without conflict to obtain new product embodiments.

[0197] The features disclosed in several method or device embodiments provided in this disclosure may be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0198] The above are only some 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 replacements within the technical scope disclosed in the present disclosure, and they should all be covered by the protection scope of the present disclosure. Industrial Applicability

[0199] This embodiment provides a command generation circuit and a memory. In the command generation circuit, a first sampling circuit is used to receive a first command signal and a first clock signal, and sample the first command signal according to the first clock signal to obtain a first intermediate signal; a basic delay circuit is used to receive the first intermediate signal, the first clock signal, and the first control signal, and sample and shift the first intermediate signal according to the first control signal and the first clock signal to obtain a second intermediate signal; a second sampling circuit is used to receive the first clock signal, the first intermediate signal, and the second intermediate signal, and set the second sampling circuit according to the first intermediate signal, and sample the second intermediate signal according to the first clock signal to obtain a third intermediate signal; and a command adjustment circuit is used to receive the first intermediate signal and the third intermediate signal, and perform pulse width adjustment on the first command signal according to the first intermediate signal and the third intermediate signal to generate a second command signal, wherein the pulse width of the second command signal is greater than the pulse width of the first command signal. In this way, the basic delay circuit can implement sampling and shifting of the first intermediate signal. Furthermore, the shift length between the obtained second intermediate signal and the first intermediate signal is affected by the first control signal. Furthermore, the value of the first control signal is correlated with the BL. Therefore, the shift length between the second intermediate signal and the first intermediate signal is correlated with the BL. Furthermore, because the first intermediate signal serves as the set signal for the second sampling circuit, it can maintain the sampled third intermediate signal at a high level when the first intermediate signal is at a low level. Consequently, when two consecutive ODT commands are present, not only is no output of the second ODT command avoided, but the pulse width of the second command signal is also equal to the shift length between the third intermediate signal and the first intermediate signal. Therefore, the pulse width of the second command signal is also affected by the BL and can be adaptively adjusted based on the length of the BL. Furthermore, considering the on-chip termination compensation value set by the controller, the second command signal can continue to be pulse-width adjusted, so that the resistance switching of the termination resistor is controlled based on the resulting ODT pulse. This also reduces energy loss and reflection during signal transmission, improves signal integrity, and thereby enhances memory performance.

Claims

1. A command generating circuit (30), the command generating circuit (30) comprising a first sampling circuit (301), a basic delay circuit (302), a second sampling circuit (303) and a command adjusting circuit (304), the output end of the first sampling circuit (301) being connected to the input end of the basic delay circuit (302), the output end of the basic delay circuit (302) being connected to the input end of the second sampling circuit (303), and the output end of the first sampling circuit (301) and the output end of the second sampling circuit (303) being both connected to the command adjusting circuit (304), wherein: The first sampling circuit (301) is used to receive a first command signal and a first clock signal, and perform sampling processing on the first command signal according to the first clock signal to obtain a first intermediate signal; The basic delay circuit (302) is used to receive the first intermediate signal, the first clock signal and the first control signal, and perform sampling and shift processing on the first intermediate signal according to the first control signal and the first clock signal to obtain a second intermediate signal; wherein the shift length between the second intermediate signal and the first intermediate signal is associated with the first control signal; The second sampling circuit (303) is used to receive the first clock signal, the first intermediate signal and the second intermediate signal, perform setting processing on the second sampling circuit according to the first intermediate signal, and perform sampling processing on the second intermediate signal according to the first clock signal to obtain a third intermediate signal; The command adjustment circuit (304) is used to receive the first intermediate signal and the third intermediate signal, perform pulse width adjustment processing on the first command signal according to the first intermediate signal and the third intermediate signal, and generate a second command signal, wherein the pulse width of the second command signal is greater than the pulse width of the first command signal.

2. The command generating circuit (30) according to claim 1, wherein: The value of the first control signal is associated with the data burst length BL.

3. The command generating circuit (30) according to claim 1, wherein: The pulse width of the second command signal is equal to the shift length between the third intermediate signal and the first intermediate signal, and the pulse width of the second command signal is associated with the data burst length BL; wherein: When the data burst length BL increases, controlling the shift length between the second intermediate signal and the first intermediate signal to increase according to the first control signal, so that the pulse width of the second command signal is widened; When the data burst length BL decreases, the shift length between the second intermediate signal and the first intermediate signal is controlled to decrease according to the first control signal, so that the pulse width of the second command signal is narrowed.

4. The command generating circuit (30) according to any one of claims 1 to 3, wherein: The command generating circuit (30) further comprises a clock processing circuit (305), wherein: The clock processing circuit (305) is used to receive a clock gating signal and a second clock signal, and to control and process the second clock signal according to the clock gating signal to generate the first clock signal; When the clock gating signal is in a first level state, the first clock signal has the same frequency as the second clock signal; when the clock gating signal is in a second level state, the first clock signal is in a low level state.

5. The command generating circuit (30) according to claim 4, wherein: The clock processing circuit (305) comprises a first NAND gate (A1) and a first inversion module (A2), wherein: The first input end of the first NAND gate (A1) is used to receive the clock gating signal, the second input end of the first NAND gate (A1) is used to receive the second clock signal, the output end of the first NAND gate (A1) is connected to the input end of the first inverting module (A2), and the output end of the first inverting module (A2) is used to output the first clock signal.

6. The command generating circuit (30) according to claim 1, wherein: The first sampling circuit (301) comprises a first trigger (A3), wherein: The input end of the first trigger (A3) is used to receive the first command signal, the clock end of the first trigger (A3) is used to receive the first clock signal, and the first output end of the first trigger (A3) is used to output the first intermediate signal; wherein the first output end of the first trigger (A3) is used to reflect the value of the input end of the first trigger (A3) after being sampled by the first clock signal.

7. The command generating circuit (30) according to any one of claims 1 to 6, wherein: The basic delay circuit (302) comprises M second flip-flops (U1, U2, ...UM) and N selection units (D1, D2, ...DN), and the clock terminals of the M second flip-flops are all used to receive the first clock signal, and each sub-control signal in the first control signal is respectively connected to the control terminals of the N selection units; wherein: The input end of the first second trigger (U1) is used to receive the first intermediate signal, and the first output end of the first second trigger (U1) is connected to the input end of the second second trigger (U2) and the first input ends of the N selection units respectively; The first output terminal of the kth second trigger (Uk) is connected to the input terminal of the next second trigger, until the first output terminal of the jth second trigger (Uj) is connected to the second input terminal of the i-th selection unit (Di). The output end of (Di) is connected to the input end of the j+1th second flip-flop (Uj+1), and the first output end of the j+1th second flip-flop (Uj+1) is connected to the input end of the next second flip-flop; The first output terminal of the Mth second trigger (UM) is connected to the second input terminal of the Nth selection unit (DN), and the output terminal of the Nth selection unit (DN) is used to output the second intermediate signal; Wherein, i is an integer greater than or equal to 1 and less than N, k is an integer greater than 1 and less than j, and j is an integer greater than k and less than M; the first output end of each second trigger is used to reflect the value of the input end of the second trigger after being sampled by the first clock signal.

8. The command generating circuit (30) according to claim 7, wherein: When the value of M is equal to 7 and the value of N is equal to 2, the first control signal includes a first sub-control signal and a second sub-control signal, and the clock terminals of the seven second flip-flops are all used to receive the first clock signal; wherein: The control end of the first selection unit (D1) is connected to the first sub-control signal, and the control end of the second selection unit (D2) is connected to the second sub-control signal; The input end of the first second trigger (U1) is used to receive the first intermediate signal, and the first output end of the first second trigger (U1) is respectively connected to the input end of the second second trigger (U2), the first input end of the first selection unit (D1) and the first input end of the second selection unit (D2); The first output end of the second second trigger (U2) is connected to the input end of the third second trigger (U3), the first output end of the third second trigger (U3) is connected to the input end of the fourth second trigger (U4), the first output end of the fourth second trigger (U4) is connected to the input end of the fifth second trigger (U5), the first output end of the fifth second trigger (U5) is connected to the second input end of the first selection unit (D1), the output end of the first selection unit (D1) is connected to the input end of the sixth second trigger (U6), the first output end of the sixth second trigger (U6) is connected to the input end of the seventh second trigger (U7), the first output end of the seventh second trigger (U7) is connected to the second input end of the second selection unit (D2), and the output end of the second selection unit (D2) is used to output the second intermediate signal.

9. The command generating circuit (30) according to claim 8, wherein: The second sampling circuit (303) comprises a third trigger (U8), wherein: The input end of the third trigger (U8) is used to receive the second intermediate signal, the clock end of the third trigger (U8) is used to receive the first clock signal, the set end of the third trigger (U8) is used to receive the first intermediate signal, and the first output end of the third trigger (U8) is used to output the third intermediate signal; wherein the first output end of the third trigger (U8) is used to reflect the value of the input end of the third trigger (U8) after being sampled by the first clock signal.

10. The command generating circuit (30) according to claim 9, wherein: When the first sub-control signal and the second sub-control signal are both in the second level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 8 preset clock cycles; When the first sub-control signal is in a first level state and the second sub-control signal is in a second level state, a shift length between the third intermediate signal and the first intermediate signal is equal to 4 preset clock cycles; When the first sub-control signal is in the second level state and the second sub-control signal is in the first level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 2 preset clock cycles; The preset clock period is equal to the clock period of the first clock signal.

11. The command generating circuit (30) according to claim 9, wherein: The third trigger (U8) is used to control the third intermediate signal to be in the first level state when the first intermediate signal is in the second level state.

12. The command generating circuit (30) according to claim 4, 10 or 11, wherein: The first level state is a high level, and the second level state is a low level.

13. The command generating circuit (30) according to any one of claims 1 to 12, wherein: The command adjustment circuit (304) comprises an SR latch (401) and a second inversion module (402), wherein the SR latch (401) comprises a second NAND gate (B1) and a third NAND gate (B2); wherein: The first input end of the second NAND gate (B1) is used to receive the first intermediate signal, and the second input end of the second NAND gate (B1) is connected to the output end of the third NAND gate (B2); The second input end of the third NAND gate (B2) is used to receive the third intermediate signal, the first input end of the third NAND gate (B2) is connected to the output end of the second NAND gate (B1), and the output end of the second NAND gate (B1) is also connected to the input end of the second inverting module (402), and the output end of the second inverting module (402) is used to output the second command signal.

14. The command generating circuit (30) according to any one of claims 1 to 13, wherein: The command generating circuit (30) further comprises a delay shift circuit (306), wherein: The delay shift circuit (306) is used to receive the first clock signal and the second command signal, and to sample and shift the second command signal according to the first clock signal to obtain a third command signal; wherein the third command signal is used to control the terminal The resistance value of the terminal resistor is switched.

15. A memory (160), the memory (160) comprising at least the command generating circuit (30) according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Control circuit, control method, and semiconductor memory

    CN115295040A

  • Signal shielding circuit and semiconductor memory

    CN115798539A

  • Command generation circuit and memory

    CN116092546A

  • Method for adjusting duty cycle, controller chip, and flash memory

    WO2020154989A1