[go: up one dir, main page]

WO2024212509A1 - Command generation circuit and memory - Google Patents

Command generation circuit and memory Download PDF

Info

Publication number
WO2024212509A1
WO2024212509A1 PCT/CN2023/131540 CN2023131540W WO2024212509A1 WO 2024212509 A1 WO2024212509 A1 WO 2024212509A1 CN 2023131540 W CN2023131540 W CN 2023131540W WO 2024212509 A1 WO2024212509 A1 WO 2024212509A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
trigger
command
intermediate signal
clock
Prior art date
Application number
PCT/CN2023/131540
Other languages
French (fr)
Chinese (zh)
Inventor
邵亚年
郑载勲
Original Assignee
长鑫存储技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 长鑫存储技术有限公司 filed Critical 长鑫存储技术有限公司
Publication of WO2024212509A1 publication Critical patent/WO2024212509A1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C11/00Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor
    • G11C11/21Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements
    • G11C11/34Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices
    • G11C11/40Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors
    • G11C11/401Digital stores characterised by the use of particular electric or magnetic storage elements; Storage elements therefor using electric elements using semiconductor devices using transistors forming cells needing refreshing or charge regeneration, i.e. dynamic cells
    • G11C11/4063Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing or timing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present disclosure relates to, but is not limited to, a command generating circuit and a memory.
  • DDR double data rate
  • DRAM dynamic random access memory
  • ODT on-die termination
  • Embodiments of the present disclosure provide a command generation circuit and a memory.
  • an embodiment of the present disclosure provides a command generation circuit, the command generation circuit comprising a first sampling circuit, a basic delay circuit, a second sampling circuit and a command adjustment circuit, the output end of the first sampling circuit is connected to the input end of the basic delay circuit, the output end of the basic delay circuit is connected to the input end of the second sampling circuit, and the output end of the first sampling circuit and the output end of the second sampling circuit are both connected to the command adjustment circuit, wherein:
  • a first sampling circuit is used to receive a first command signal and a first clock signal, and to 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 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 associated with the first control signal;
  • a second sampling circuit configured to receive the first clock signal, the first intermediate signal, and the second intermediate signal, perform a setting process on the second sampling circuit according to the first intermediate signal, and perform a sampling process on the second intermediate signal according to the first clock signal to obtain a third intermediate signal;
  • 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.
  • the value of the first control signal is associated with the data burst length BL.
  • 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;
  • 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;
  • the shift length between the second intermediate signal and the first intermediate signal is controlled to be reduced according to the first control signal, so that the pulse width of the second command signal is narrowed.
  • the command generation circuit further comprises a clock processing circuit, wherein:
  • 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;
  • 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.
  • the clock processing circuit includes a first NAND gate and a first inversion module, wherein:
  • 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
  • the output end of the first inverting module is used to output the first clock signal.
  • the first sampling circuit includes a first trigger, wherein:
  • 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
  • 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.
  • the basic delay circuit includes M second flip-flops and N selection units, 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 terminal of the first second trigger is used to receive the first intermediate signal, and the first output terminal of the first second trigger is connected to the input terminal of the second second trigger and the first input terminals of the N selection units respectively;
  • the first output terminal of the kth second flip-flop is connected to the input terminal of the next second flip-flop, until 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;
  • a first output terminal of the Mth second trigger is connected to a second input terminal of the Nth selection unit, and an output terminal of the Nth selection unit is used to output a second intermediate signal;
  • 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
  • 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.
  • the first control signal 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;
  • the control end of the first selection unit is connected to the first sub-control signal, and the control end of the second selection unit is connected to the second sub-control signal;
  • the input terminal of the first second trigger is used to receive the first intermediate signal, and the first output terminal of the first second trigger is respectively connected to the input terminal of the second second trigger, the first input terminal of the first selection unit, and the first input terminal of the second selection unit;
  • the first output terminal of the second second trigger is connected to the input terminal of the third second trigger
  • the first output terminal of the third second trigger is connected to the input terminal of the fourth second trigger
  • the first output terminal of the fourth second trigger is connected to the input terminal of the fifth second trigger
  • the first output terminal of the fifth second trigger is connected to the second input terminal of the first selection unit
  • the output terminal of the first selection unit is connected to the input terminal of the sixth second trigger
  • the first output terminal of the sixth second trigger is connected to the input terminal of the seventh second trigger
  • the first output terminal of the seventh second trigger is connected to the second input terminal of the second selection unit
  • the output terminal of the second selection unit is used to output the second intermediate signal.
  • the second sampling circuit includes a third trigger, wherein:
  • the input end of the third trigger is used to receive the second intermediate signal
  • the clock end of the third trigger is used to receive the first clock signal
  • the set end of the third trigger is used to receive the first intermediate signal
  • the first output end of the third trigger is used to output the third intermediate signal; wherein, the first output end of the third trigger is used to reflect the value of the input end of the third trigger after being sampled by the first clock signal.
  • the shift length between the third intermediate signal and the first intermediate signal is equal to 8 preset clock cycles
  • the shift length between the third intermediate signal and the first intermediate signal is equal to 4 preset clock cycles
  • 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.
  • the third trigger 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.
  • the first level state is a high level
  • the second level state is a low level
  • 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:
  • 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;
  • the second input terminal of the third NAND gate is used to receive the third intermediate signal
  • the first input terminal of the third NAND gate is connected to the output terminal of the second NAND gate
  • the output terminal of the second NAND gate is also connected to the input terminal of the second inverting module
  • the output terminal of the second inverting module is used to output the second command signal
  • the command generation circuit further includes a delay shift circuit, wherein:
  • 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.
  • an embodiment of the present disclosure provides a memory, the memory at least comprising a command generating circuit as described in any one of the first aspects.
  • FIG1 is a schematic diagram of the structure of an ODT functional circuit
  • FIG2 is a schematic diagram of a signal timing sequence of an ODT function
  • FIG3 is a schematic diagram of a structure of a command generating circuit provided in an embodiment of the present disclosure
  • FIG4 is a second schematic diagram of the structure of a command generating circuit provided in an embodiment of the present disclosure.
  • FIG5 is a partial structural schematic diagram 1 of a command generating circuit provided in an embodiment of the present disclosure
  • FIG6 is a schematic diagram of a basic delay circuit according to an embodiment of the present disclosure.
  • FIG. 7 is a second schematic diagram of the structure of a basic delay circuit provided in an embodiment of the present disclosure.
  • FIG8 is a second partial structural diagram of a command generating circuit provided in an embodiment of the present disclosure.
  • FIG9 is a schematic diagram of the structure of a command adjustment circuit provided in an embodiment of the present disclosure.
  • FIG10 is a third schematic diagram of the structure of a command generating circuit provided in an embodiment of the present disclosure.
  • FIG11 is a first detailed structural diagram of a command generating circuit provided in an embodiment of the present disclosure.
  • FIG12 is a first schematic diagram of a signal timing sequence provided by an embodiment of the present disclosure.
  • FIG13 is a second schematic diagram of a signal timing sequence provided by an embodiment of the present disclosure.
  • FIG14 is a second detailed structural diagram of a command generating circuit provided in an embodiment of the present disclosure.
  • FIG15 is a third signal timing diagram provided by an embodiment of the present disclosure.
  • FIG. 16 is a schematic diagram of the composition structure of a memory provided in an embodiment of the present disclosure.
  • 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 in 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.
  • DRAM Dynamic Random Access Memory
  • the third generation double data rate (Double Data Rate 3, DDR3);
  • the fifth generation of double data rate (Double Data Rate 5, DDR5);
  • Termination resistance/terminal resistance Terminal Resistance
  • Non-Target Write (NTWR);
  • Non-Target Read (NTRD);
  • DFF Data Flip-Flop or Delay Flip-Flop, DFF
  • CPU Central Processing Unit
  • MCS Mode Register Setting
  • ODT resistors can be added to the DQ pin for the WR/NTRD/NTWR mode.
  • ODT resistors can be added to match the impedance of the transmission line to set 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.
  • DDR5DRAM supports ODT function, which can adjust the terminal resistance (also called “termination resistance") of the DQ, DQS_t/c, DM_n and TDQS_t/c ports of each device through ODT pin control, write command or mode register setting default resistance value.
  • 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.
  • the ODT functional circuit may include at least a switch S1, a terminal resistor RTT and a power supply VDDQ.
  • 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 DQ, DQS, DM, and TDQS ports.
  • DQS can be a pair of differential data selection signals DQS_t and DQS_c
  • TDQS can be a pair of differential data selection signals TDQS_t and TDQS_c.
  • switch S1 in Figure 1 is controlled by the ODT control logic.
  • the ODT control logic contains external ODT pin input, mode register configuration, and other control information.
  • the value of RTT is controlled by the configuration information in the mode register.
  • RTT_NOM is disabled in self-refresh mode or mode register configuration, the control of the ODT pin is ignored.
  • the ODT function is turned on. In this case, the actual resistance of the ODT resistor is determined by these configuration bits.
  • the DDR5 DRAM After entering the self-refresh mode, the DDR5 DRAM automatically disables the ODT function, and the terminal resistor is set to high impedance (Hi-Z) to discard all mode register settings.
  • FIG2 shows a signal timing diagram of an ODT function, specifically a control timing diagram of an ODT function during a write operation in DDR5.
  • DDR5 receives a command (CMD)
  • CMD command
  • DQ end control the resistance change of RTT.
  • 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.
  • the resistance value switching of RTT does not occur immediately, but takes time to change.
  • the time for the resistance value switching of RTT is represented by tADC, where the maximum and minimum values of tADC can be set, respectively represented as: tADC.Max and tADC.Min.
  • DDR5 When DDR5 receives a Write command, if it is to control the resistance change of RTT, it needs to convert the Write command into an internal ODT command to control the resistance change of RTT.
  • the resistance of RTT needs to be switched from RTT_PARK to RTT_WR. After the DQ end receives data, the resistance of RTT is switched from RTT_WR to RTT_PARK.
  • ODT_offset is determined according to the instructions issued by the CPU and is used to further widen the pulse width of the ODT command.
  • Table 1 shows the relevant provisions of DDR5 regarding BL, as shown below.
  • the above content is the relevant provisions for the ODT function in the technical specifications of DDR5.
  • the resistance value of the terminal resistor can be switched, but how to switch needs to follow certain timing requirements.
  • a suitable terminal resistor can be set at the DQ pin to improve signal integrity.
  • DDR5 requires that the data burst length can support BL8, BL16, BL32, etc.
  • 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.
  • the second ODT command may have no output, thereby affecting the ODT function of the memory.
  • 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 of 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 adjust the pulse width of 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.
  • 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, and the value of the first control signal is associated with BL, that is, the shift length between the second intermediate signal and the first intermediate signal is associated with BL; in addition, since the first intermediate signal is used as the set signal of the second sampling circuit, when the first intermediate signal is at a low level, the sampled third intermediate signal can be kept at a high level, so that when there are two consecutive ODT commands, not only can the second ODT command be prevented from having no output, but the pulse width of the second command signal is equal to the shift length between the third intermediate signal and the first intermediate signal, that is, the pulse width of the second command signal is also affected by BL, and the pulse width of the second command signal can be adaptively adjusted according to the length of BL; 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 is controlled according to the finally generated ODT
  • 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 end of the first sampling circuit 301 is connected to the input end of the basic delay circuit 302
  • the output end of the basic delay circuit 302 is connected to the input end of the second sampling circuit 303
  • the output end of the first sampling circuit 301 and the output end of the second sampling circuit 303 are both connected to the command adjustment circuit 304, wherein:
  • the first sampling circuit 301 is used to receive a first command signal and a first clock signal, and to sample 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 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 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, 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;
  • 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, and the pulse width of the second command signal is greater than the pulse width of the first command signal.
  • 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., which is not specifically limited here.
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • the command generating circuit 30 is specifically a circuit for generating an ODT command, which can support the ODT function introduced in DDR5.
  • the first intermediate signal is used as the set signal of the second sampling circuit 303, so that in the second sampling circuit 303, when the first intermediate signal is at a low level, the third intermediate signal sampled 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.
  • the value of the first control signal is associated with the data burst length BL.
  • 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.
  • the value of the first control signal can be set by the mode register. 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; if the value of the first control signal is the third value, the value of BL can be 32.
  • the first value, the second value and the third value are all different.
  • the first control signal including the first sub-control signal SEL1 and the second sub-control signal SEL0 as an example, for the value of the first control signal, illustratively, the first value can be set to 01, that is, the value of SEL1 is 0, and the value of SEL0 is 1; the second value can be set to 10, that is, the value of SEL1 is 1, and the value of SEL0 is 0; the third value can be set to 00, That is, the value of SEL1 is 0, and the value of SEL0 is 0; there is no specific limitation on this here.
  • 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.
  • the shift length between the second intermediate signal and the first intermediate signal is longer; if the value of BL is smaller, the shift length between the second intermediate signal and the first intermediate signal is shorter.
  • 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 associated with a data burst length BL.
  • 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.
  • 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
  • the shift length between the third intermediate signal and the second intermediate signal is C
  • the pulse width of the second command signal is wider.
  • the pulse width of the second command signal is narrower.
  • different BLs may correspond to different values of the first control signal.
  • the larger the value of BL the longer the shift length generated by the basic delay circuit 302, and the wider the pulse width of the second command signal generated at this time, so that the width of the finally generated ODT pulse can cover the entire DQ data writing process.
  • the command generation circuit 30 may further include a clock processing circuit 305 , wherein:
  • the clock processing circuit 305 is used to receive the clock gating signal and the second clock signal, and control the second clock signal according to the clock gating signal to generate the first clock signal.
  • the frequency of the first clock signal is the same as that of the second clock signal; when the clock gating signal is in the second level state, the first clock signal is in a low level state.
  • 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.
  • 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.
  • the clock processing circuit 305 may include a first NAND gate A1 and a first inverting module A2 , wherein:
  • 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.
  • the first inversion module A2 may be composed of first NOT gates, and the number of the first NOT gates is an odd number. The more the number of the 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 the first NOT gates may be set to 1, but is not specifically limited.
  • the first sampling circuit 301 may include a first trigger A3, wherein:
  • 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
  • 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.
  • the first trigger A3 may be a D-type trigger (Data Flip-Flop or Delay Flip-Flop, DFF).
  • DFF Data Flip-Flop or Delay Flip-Flop
  • the D-type trigger is an information storage device with a memory function and two stable states. It is the most basic logic unit constituting a variety of sequential circuits and an important unit circuit in digital logic circuits.
  • the D-type trigger has two stable states, namely "0" and "1", and can flip from one stable state to another stable state under the action of the signal received at the clock end.
  • 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 There is an anti-correlation between
  • the first trigger A3 may also include a set terminal (SET) and a reset terminal (RST), but they are not shown in the figure.
  • the first clock signal can sample 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 .
  • the basic delay circuit 302 may include 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:
  • An input terminal of the first second trigger U1 is used to receive a 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;
  • 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 ith selection unit Di, the output terminal of the ith selection unit Di is connected to the input terminal of the j+1th second trigger Uj+1, and the first output terminal of the j+1th second trigger Uj+1 is connected to the input terminal of the next second trigger;
  • a first output terminal of the Mth second flip-flop UM is connected to a second input terminal of the Nth selection unit DN, and an output terminal of the Nth selection unit DN is used to output a second intermediate signal;
  • 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
  • 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.
  • the first control signal may include N sub-control signals (SEL0, SEL1, ..., SELN-1), and these N sub-control signals are respectively connected to the control terminals of the N selection units.
  • 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
  • the control terminal of the N-th selection unit DN is connected to the N-th sub-control signal SEL0.
  • the number of second triggers that actually play a shifting role on the first intermediate signal can be determined, and then the shift length between the second intermediate signal and the first intermediate signal can be determined.
  • the shift length between the second intermediate signal and the first intermediate signal is longer; conversely, if the number of second triggers that actually play a shifting role on the first intermediate signal is smaller, the shift length between the second intermediate signal and the first intermediate signal is shorter.
  • the value of M may be equal to 7, and the value of N may be equal to 2.
  • the first control signal may include a first sub-control signal SEL1 and a second sub-control signal SEL0.
  • the basic delay circuit 302 may 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:
  • the control end of the first selection unit D1 is connected to the first sub-control signal SEL1, and the control end of the second selection unit D2 is connected to the second sub-control signal SEL0;
  • An input terminal of the first second trigger U1 is used to receive a first intermediate signal, and a first output terminal of the first second trigger U1 is respectively connected to an input terminal of the second second trigger U2, a first input terminal of the first selection unit D1, and a first input terminal 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.
  • the number of second triggers in the basic delay circuit 302 that actually play a shifting role on the first intermediate signal can be determined, and then the shift length between the second intermediate signal and the first intermediate signal can be determined.
  • the basic delay circuit 302 has seven second triggers ....
  • the preset clock cycle can be the clock cycle of the first clock signal.
  • the second sampling circuit 303 may include a first Three triggers U8, where:
  • 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
  • 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.
  • both the second trigger and the third trigger may be D-type triggers.
  • 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.
  • the shift length between the third intermediate signal and the first intermediate signal is equal to 8 preset clock cycles
  • the shift length between the third intermediate signal and the first intermediate signal is equal to 4 preset clock cycles
  • 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.
  • 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.
  • 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.
  • 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.
  • the shift length between the third intermediate signal and the first intermediate signal is related to the value of the first control signal, or it can be said that the shift length between the third intermediate signal and the first intermediate signal is related to the value of BL.
  • 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.
  • the first level state may be a high level, and the second level state may be a low level.
  • the first level state may be a logic 1
  • the second level state may be a logic 0.
  • 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 prevented from having no output.
  • the logic here can also be: when the first intermediate signal is at a high level, the third intermediate signal output by the third trigger U8 is always at a high level. That is to say, 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 can be considered to add some inverters here, and then the subsequent logic needs to be adjusted accordingly, so that the same effect can be achieved.
  • the command adjustment circuit 304 may include an SR latch 401 and a second inversion module 402, and the SR latch 401 includes a second NAND gate B1 and a third NAND gate B2; wherein:
  • 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;
  • 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
  • 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.
  • the output end of the SR latch 401 is used to output the fourth intermediate signal, and then the input end of the second inverting module 402 is used to receive the fourth intermediate signal, and the output end of the second inverting module 402 is used to output the second command signal.
  • the fourth intermediate signal there is a delay and inversion relationship between the fourth intermediate signal and the second command signal.
  • the rising edge of the fourth intermediate signal may be generated according to the level flipping moment of the first intermediate signal (specifically, flipping from a high level to a low level), and the falling edge of the fourth intermediate signal may be generated according to the level flipping moment of the first intermediate signal.
  • the fourth intermediate signal is generated according to the level flipping moment of the third intermediate signal (specifically, from a high level to a low level).
  • the fourth intermediate signal is a high-level effective pulse signal, and the pulse width is widened to the preset shift length.
  • the SR latch 401 is used to generate a fourth intermediate signal that is widened compared to the pulse width of the first command signal, and the pulse width of the fourth intermediate signal is a preset shift length.
  • the preset shift length can be equal to 8 preset clock cycles; if the value of SEL1 is equal to 1 and the value of SEL0 is equal to 0, then the preset shift length can be equal to 4 preset clock cycles; if the value of SEL1 is equal to 0 and the value of SEL0 is equal to 1, then the preset shift length can be equal to 2 preset clock cycles.
  • the second inverting module 402 may be composed of a second NOT gate B3, and the number of the second NOT gates B3 may 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.
  • the second inverting module 402 may be composed of one second NOT gate B3, or may be composed of three, five, or more second NOT gates B3 connected in series. Exemplarily, the number of the second NOT gate B3 may be set to 1, but this is not specifically limited.
  • the embodiment of the present disclosure can determine the specific number of second NOT gates in the second inversion module 402 according to the required delay time.
  • the command generation circuit 30 may further include a delay shift circuit 306 , wherein:
  • 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.
  • 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.
  • the delay shift circuit 306 can further widen the pulse width of the ODT command according to the ODT_offset required by the CPU to generate the final ODT pulse at the DQ pin, that is, the third command signal here.
  • the pulse width difference between the third command signal and the second command signal can be expressed as ODT_offset, and different on-chip termination compensation values can be set by the controller; in addition, ODT_offset can have nine possibilities such as 0 to 8tck, which are not specifically limited here.
  • 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.
  • the present embodiment provides a command generation circuit, which includes a first sampling circuit, a basic delay circuit, a second sampling circuit and a command adjustment circuit.
  • the first intermediate signal is used as a set signal of the second sampling circuit, when the first intermediate signal is at a low level, the sampled third intermediate signal can be kept at a high level, so that when there are two consecutive ODT commands, the second ODT command can be effectively prevented from having no output;
  • 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 BL, that is, the pulse width of the second command signal will be affected by BL, and the pulse width of the second command signal can be adaptively adjusted according to the length of BL; 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 is controlled according to the finally generated ODT pulse, and the energy loss and reflection of
  • the command generation circuit 30 may include a first NAND gate 501, a first NOT gate 502, a first trigger 503, a second trigger 504, a third trigger 505, a fourth trigger 506, a fifth trigger 507, a sixth trigger 508, a seventh trigger 509, an eighth trigger 510, a ninth trigger 511, a first selection unit 512, a second selection unit 513, an SR latch 514 and a second NOT gate 515, and the specific connection relationship is shown 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 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
  • the third intermediate signal can be represented by CMD_shift
  • the first delay signal can be represented by CMD_delay
  • the second command signal can be represented by OUTPUT.
  • the trigger 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 intermediate signal Q1 and the first delayed signal CMD_delay is t1 . Since t1 is generated by the transmission path, t1 is relatively small and can usually be ignored.
  • the first intermediate signal Q1 is sampled by the second trigger 504 to obtain the fifth intermediate signal Q3, and the delay time between the fifth intermediate signal Q3 and the first intermediate signal Q1 is 1tck (i.e., one preset clock cycle).
  • the fifth intermediate signal Q3 needs to continue to be sampled by the seventh trigger 509, the eighth trigger 510 and the ninth trigger 511 to obtain the third intermediate signal CMD_shift, and the delay time between the third intermediate signal CMD_shift and the first intermediate signal Q1 is 4tck (i.e., four preset clock cycles).
  • the first delay signal CMD_delay and the third intermediate signal CMD_shift can generate the falling edge and the rising edge of the second command signal OUTPUT respectively, and the pulse width of the second command signal OUTPUT is equal to the delay time between the third intermediate signal CMD_shift and the first intermediate signal Q1 (i.e., 4tck).
  • the first intermediate signal Q1 and the first delayed signal CMD_delay can be obtained by the first trigger 503 sampling and processing the first command signal CMD_IN; wherein the delay time between the first delayed signal CMD_delay and the first command signal CMD_IN is t 2 , and t 2 can be jointly generated by the device delay of the first trigger 503 and the transmission path delay.
  • the device delay of the first trigger 503 is mainly manifested as the delay time between the first command signal CMD_IN and the first intermediate signal Q1
  • the transmission path delay is mainly manifested as the delay time between the first intermediate signal Q1 and the first delayed signal CMD_delay.
  • the delay time of the transmission path is small and can usually be ignored.
  • the first intermediate signal Q1 is sampled and processed by the second trigger 504, the seventh trigger 509, the eighth trigger 510 and the ninth trigger 511 in sequence, thereby generating the third intermediate signal CMD_shift.
  • the delay time caused by these delays is set to t3 ; then the delay time between the third intermediate signal CMD_shift and the first delayed signal CMD_delay is the sum of 4tck and t3 . In an ideal case, t3 can be ignored, that is, the delay time between the third intermediate signal CMD_shift and the first delayed signal CMD_delay can be regarded as 4tck.
  • 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 inability to set the correct terminal resistance value at the DQ end.
  • the third intermediate signal CMD_shift is also at a low level (this is because the time interval between the two commands is 4tck, and the signal shift is also exactly 4tck), so at the end of the second pulse of CMD_delay, the second command signal OUTPUT changes from a low level to a high level; but at this time, the third intermediate signal CMD_shift is still at a low level.
  • the second command signal OUTPUT finally output is still at a high level, and there is no situation where the second command signal OUTPUT changes to a low level afterwards, that is, the OUTPUT corresponding to the second command remains at a high level. That is to say, in the second command signal OUTPUT, only the pulse corresponding to the first command is output as a low-level valid pulse and the pulse width is widened to cover the process of writing the DQ data corresponding to the first command; but the second command does not output the correct level through the second command signal OUTPUT, resulting in the DQ end being unable to set the correct resistance value of the terminal resistor.
  • 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.
  • FIG14 is a detailed structural diagram of another command generating circuit 30 provided in the embodiment of the present disclosure.
  • the command generating circuit 30 may include a first NAND gate 601, a first NOT gate 602, a first trigger 603, a second trigger 604, a third trigger 605, a fourth trigger 606, a fifth trigger 607, a sixth trigger 608, a seventh trigger 609, an eighth trigger 610, a ninth trigger 611, a first selection unit 612, a second selection unit 613, an SR latch 614 and a second NOT gate 615.
  • a first NAND gate 601 a first NOT gate 602
  • a first trigger 603, a second trigger 604 a third trigger 605, a fourth trigger 606, a fifth trigger 607, a sixth trigger 608, a seventh trigger 609, an eighth trigger 610, a ninth trigger 611, a first selection unit 612, a second selection unit 613, an SR latch 614 and a second NOT gate 615.
  • 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 delay signal can be represented by CMD_delay; and the second command signal can be represented by OUTPUT.
  • the set terminal (SET) of the ninth flip-flop 611 is used to receive the first delay signal CMD_delay.
  • first intermediate signal Q1 and the first delayed signal CMD_delay there is a slight delay between the first intermediate signal Q1 and the first delayed signal CMD_delay due to the transmission path. Usually, 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 are slightly delayed due to the transmission path.
  • the first delay signal CMD_delay may be regarded as one signal.
  • the first delay signal CMD_delay can be obtained by the sampling process of the first command signal CMD_IN by the first trigger 603.
  • the delay time can be jointly generated by the device delay of the first trigger 603 and the transmission path delay.
  • the fifth intermediate signal Q3 can be obtained; then the fifth intermediate signal Q3 continues to be sampled by the seventh trigger 609, the eighth trigger 610 and the ninth trigger 611, so as to generate the third intermediate signal CMD_shift.
  • the first command signal is pulse widened 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, and the pulse width of the second command signal OUTPUT is equal to 8tck (i.e., eight preset clock cycles).
  • the falling edge here refers to the time when the high level changes to the low level, and the rising edge refers to the time when the low level changes to the high level.
  • the third intermediate signal CMD_shift can be kept at a high level all the time when the first delay signal CMD_delay is at a low level.
  • 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, so that the pulse width of the second command signal OUTPUT when it is at a low level is equal to 8tck, thereby avoiding the phenomenon that the second ODT command has no output when there are two consecutive ODT commands, so that the resistance value of the terminal resistor can be correctly set.
  • This embodiment provides a command generation circuit, which can support data burst lengths such as BL8, BL16, and BL32; and when in WR/NTRD/NTWR mode, a suitable terminal resistor can be set at the DQ pin.
  • a command generation circuit which can support data burst lengths such as BL8, BL16, and BL32; and when in WR/NTRD/NTWR mode, a suitable terminal resistor can be set at the DQ pin.
  • Fig. 16 a schematic diagram of the composition structure of a memory provided by the embodiment of the present disclosure is shown.
  • the memory 160 at least includes the command generating circuit 30 as described in the above embodiment.
  • the memory 160 may include a DRAM chip.
  • the DRAM chip may not only comply with memory specifications such as DDR, DDR2, DDR3, DDR4, DDR5, and DDR6, but may also comply with memory specifications such as LPDDR, LPDDR2, LPDDR3, LPDDR4, LPDDR5, and LPDDR6, which are not specifically limited here.
  • the first intermediate signal is used as a set signal, so that when the first intermediate signal is at a low level, the sampled third intermediate signal can be maintained at a high level, thereby effectively avoiding the second ODT command from having no output when there are two consecutive ODT commands;
  • 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, and the pulse width of the second command signal can be adaptively adjusted according to the length of BL; 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 is controlled according to the finally generated ODT pulse, which can also reduce the energy loss and reflection of the signal during transmission, improve the signal integrity, and thus improve the memory performance.
  • the present embodiment provides a command generating circuit and a memory, in which a first sampling circuit 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; a basic delay circuit is used 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; a second sampling circuit is used to receive a first clock signal, a first intermediate signal and a second intermediate signal, and 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; a command adjustment circuit is used to receive a first intermediate signal and a third intermediate signal, and perform pulse width adjustment processing on the first command signal according to the first intermediate signal and the third intermediate signal to generate a second command signal, and a pulse width of the second command signal is greater than a pulse width of the
  • the sampling and shift processing of the first intermediate signal can be realized through the basic delay circuit, and the shift length between the obtained second intermediate signal and the first intermediate signal is affected by the first control signal, and the value of the first control signal is associated with BL, that is, the shift length between the second intermediate signal and the first intermediate signal is associated with BL; in addition, since the first intermediate signal is used as the set signal of the second sampling circuit, when the first intermediate signal is at a low level, the sampled third intermediate signal can be kept at a high level, so that when there are two consecutive ODT commands, not only can the second ODT command be prevented from having no output, but the pulse width of the second command signal is equal to the shift length between the third intermediate signal and the first intermediate signal, that is, the pulse width of the second command signal is also affected by BL, and the pulse width of the second command signal can be adaptively adjusted according to the length of BL; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Hardware Design (AREA)
  • Dram (AREA)
  • Networks Using Active Elements (AREA)

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.

Description

一种命令产生电路及存储器A command generation circuit and memory

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本公开要求在2023年04月11日提交中国专利局、申请号为202310381529.1、申请名称为“一种命令产生电路及存储器”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application filed with the Chinese Patent Office 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 in this disclosure.

技术领域Technical Field

本公开涉及但不限于一种命令产生电路及存储器。The present disclosure relates to, but is not limited to, a command generating circuit and a memory.

背景技术Background Art

随着半导体技术的不断发展,人们在制造和使用计算机等设备时,对数据的传输速度提出了越来越高的要求。为了获得更快的数据传输速度,应运而生了一系列数据可以双倍速率(Double Data Rate,DDR)传输的存储器等器件。With the continuous development of semiconductor technology, people have put forward higher and higher requirements for data transmission speed when manufacturing and using computers and other equipment. In order to obtain faster data transmission speed, a series of memory devices such as memory that can transmit data at double data rate (DDR) have emerged.

在动态随机存取存储器(Dynamic Random Access Memory,DRAM)芯片中,对于芯片的片内终结(On Die Termination,ODT)功能,终端电阻的阻值切换需要遵循一定的时序要求。In a dynamic random access memory (DRAM) chip, for the on-die termination (ODT) function of the chip, the resistance switching of the terminal resistor needs to follow certain timing requirements.

发明内容Summary of the invention

本公开实施例提供了一种命令产生电路及存储器。Embodiments of the present disclosure provide a command generation circuit and a memory.

第一方面,本公开实施例提供了一种命令产生电路,命令产生电路包括第一采样电路、基础延时电路、第二采样电路和命令调整电路,第一采样电路的输出端与基础延时电路的输入端连接,基础延时电路的输出端与第二采样电路的输入端连接,且第一采样电路的输出端和第二采样电路的输出端均与命令调整电路连接,其中:In a first aspect, an embodiment of the present disclosure provides a command generation circuit, the command generation circuit comprising a first sampling circuit, a basic delay circuit, a second sampling circuit and a command adjustment circuit, the output end of the first sampling circuit is connected to the input end of the basic delay circuit, the output end of the basic delay circuit is connected to the input end of the second sampling circuit, and the output end of the first sampling circuit and the output end of the second sampling circuit are both connected to the command adjustment circuit, wherein:

第一采样电路,用于接收第一命令信号和第一时钟信号,根据第一时钟信号对第一命令信号进行采样处理,得到第一中间信号;A first sampling circuit is used to receive a first command signal and a first clock signal, and to 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 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 associated with the first control signal;

第二采样电路,用于接收第一时钟信号、第一中间信号和第二中间信号,根据第一中间信号对第二采样电路进行置位处理,以及根据第一时钟信号对第二中间信号进行采样处理,得到第三中间信号;a second sampling circuit, configured to receive the first clock signal, the first intermediate signal, and the second intermediate signal, perform a setting process on the second sampling circuit according to the first intermediate signal, and perform a sampling process on the second intermediate signal according to the first clock signal to obtain a third intermediate signal;

命令调整电路,用于接收第一中间信号和第三中间信号,根据第一中间信号和第三中间信号对第一命令信号进行脉宽调整处理,生成第二命令信号,且第二命令信号的脉冲宽度大于第一命令信号的脉冲宽度。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.

在一些实施例中,第一控制信号的取值与数据突发长度BL具有关联关系。In some embodiments, the value of the first control signal is associated with the data burst length BL.

在一些实施例中,第二命令信号的脉冲宽度等于第三中间信号与第一中间信号之间的移位长度,且第二命令信号的脉冲宽度与数据突发长度BL具有关联关系;其中:In some embodiments, 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:

在数据突发长度BL增大时,根据第一控制信号控制第二中间信号与第一中间信号之间的移位长度增加,以使得第二命令信号的脉冲宽度增宽;When the data burst length 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;

在数据突发长度BL减小时,根据第一控制信号控制第二中间信号与第一中间信号之间的移位长度减小,以使得第二命令信号的脉冲宽度减窄。When the data burst length BL is reduced, the shift length between the second intermediate signal and the first intermediate signal is controlled to be reduced according to the first control signal, so that the pulse width of the second command signal is narrowed.

在一些实施例中,命令产生电路还包括时钟处理电路,其中:In some embodiments, the command generation circuit further comprises a clock processing circuit, wherein:

时钟处理电路,用于接收时钟门控信号和第二时钟信号,根据时钟门控信号对第二时钟信号进行控制处理,生成第一时钟信号;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;

其中,在时钟门控信号处于第一电平状态时,第一时钟信号与第二时钟信号的频率相同;在时钟门控信号处于第二电平状态时,第一时钟信号处于低电平状态。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.

在一些实施例中,时钟处理电路包括第一与非门和第一反相模块,其中:In some embodiments, the clock processing circuit includes a first NAND gate and a first inversion module, wherein:

第一与非门的第一输入端用于接收时钟门控信号,第一与非门的第二输入端用于接收第二时钟信号,第一与非门的输出端与第一反相模块的输入端连接,第一反相模块的输出端用于输出第一时钟信号。 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.

在一些实施例中,第一采样电路包括第一触发器,其中:In some embodiments, the first sampling circuit includes a first trigger, wherein:

第一触发器的输入端用于接收第一命令信号,第一触发器的时钟端用于接收第一时钟信号,第一触发器的第一输出端用于输出第一中间信号;其中,第一触发器的第一输出端用于反映被第一时钟信号进行采样后的第一触发器的输入端的值。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.

在一些实施例中,基础延时电路包括M个第二触发器和N个选择单元,且M个第二触发器的时钟端均用于接收第一时钟信号,第一控制信号中的每一个子控制信号分别与N个选择单元的控制端连接;其中:In some embodiments, the basic delay circuit includes M second flip-flops and N selection units, 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:

第一个第二触发器的输入端用于接收第一中间信号,第一个第二触发器的第一输出端与第二个第二触发器的输入端、N个选择单元的第一输入端分别连接;The input terminal of the first second trigger is used to receive the first intermediate signal, and the first output terminal of the first second trigger is connected to the input terminal of the second second trigger and the first input terminals of the N selection units respectively;

第k个第二触发器的第一输出端与下一个第二触发器的输入端连接,直至第j个第二触发器的第一输出端与第i个选择单元的第二输入端连接,第i个选择单元的输出端与第j+1个第二触发器的输入端连接,第j+1个第二触发器的第一输出端与下一个第二触发器的输入端连接;The first output terminal of the kth second flip-flop is connected to the input terminal of the next second flip-flop, until 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;

第M个第二触发器的第一输出端与第N个选择单元的第二输入端连接,第N个选择单元的输出端用于输出第二中间信号;A first output terminal of the Mth second trigger is connected to a second input terminal of the Nth selection unit, and an output terminal of the Nth selection unit is used to output a second intermediate signal;

其中,i为大于或等于1且小于N的整数,k为大于1且小于j的整数,j为大于k且小于M的整数;每一个第二触发器的第一输出端用于反映被第一时钟信号进行采样后的第二触发器的输入端的值。Among them, 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.

在一些实施例中,在M的取值等于7,N的取值等于2时,第一控制信号包括第一子控制信号和第二子控制信号,且七个第二触发器的时钟端均用于接收第一时钟信号;其中: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:

第一个选择单元的控制端与第一子控制信号连接,第二个选择单元的控制端与第二子控制信号连接;The control end of the first selection unit is connected to the first sub-control signal, and the control end of the second selection unit is connected to the second sub-control signal;

第一个第二触发器的输入端用于接收第一中间信号,第一个第二触发器的第一输出端分别与第二个第二触发器的输入端、第一个选择单元的第一输入端和第二个选择单元的第一输入端连接;The input terminal of the first second trigger is used to receive the first intermediate signal, and the first output terminal of the first second trigger is respectively connected to the input terminal of the second second trigger, the first input terminal of the first selection unit, and the first input terminal of the second selection unit;

第二个第二触发器的第一输出端与第三个第二触发器的输入端连接,第三个第二触发器的第一输出端与第四个第二触发器的输入端连接,第四个第二触发器的第一输出端与第五个第二触发器的输入端连接,第五个第二触发器的第一输出端与第一个选择单元的第二输入端连接,第一个选择单元的输出端与第六个第二触发器的输入端连接,第六个第二触发器的第一输出端与第七个第二触发器的输入端连接,第七个第二触发器的第一输出端与第二个选择单元的第二输入端连接,第二个选择单元的输出端用于输出第二中间信号。The first output terminal of the second second trigger is connected to the input terminal of the third second trigger, the first output terminal of the third second trigger is connected to the input terminal of the fourth second trigger, the first output terminal of the fourth second trigger is connected to the input terminal of the fifth second trigger, the first output terminal of the fifth second trigger is connected to the second input terminal of the first selection unit, the output terminal of the first selection unit is connected to the input terminal of the sixth second trigger, the first output terminal of the sixth second trigger is connected to the input terminal of the seventh second trigger, the first output terminal of the seventh second trigger is connected to the second input terminal of the second selection unit, and the output terminal of the second selection unit is used to output the second intermediate signal.

在一些实施例中,第二采样电路包括第三触发器,其中:In some embodiments, the second sampling circuit includes a third trigger, wherein:

第三触发器的输入端用于接收第二中间信号,第三触发器的时钟端用于接收第一时钟信号,第三触发器的置位端用于接收第一中间信号,第三触发器的第一输出端用于输出第三中间信号;其中,第三触发器的第一输出端用于反映被第一时钟信号进行采样后的第三触发器的输入端的值。The input end of the third trigger is used to receive the second intermediate signal, the clock end of the third trigger is used to receive the first clock signal, the set end of the third trigger is used to receive the first intermediate signal, and the first output end of the third trigger is used to output the third intermediate signal; wherein, the first output end of the third trigger is used to reflect the value of the input end of the third trigger after being sampled by the first clock signal.

在一些实施例中,在第一子控制信号和第二子控制信号均处于第二电平状态时,第三中间信号与第一中间信号之间的移位长度等于8个预设时钟周期;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;

在第一子控制信号处于第一电平状态,且第二子控制信号处于第二电平状态时,第三中间信号与第一中间信号之间的移位长度等于4个预设时钟周期;When the first sub-control signal is in the first level state and the second sub-control signal is in the second level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 4 preset clock cycles;

在第一子控制信号处于第二电平状态,且第二子控制信号处于第一电平状态时,第三中间信号与第一中间信号之间的移位长度等于2个预设时钟周期;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.

在一些实施例中,第三触发器,用于在第一中间信号处于第二电平状态时,控制第三中间信号处于第一电平状态。In some embodiments, the third trigger 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.

在一些实施例中,第一电平状态为高电平,第二电平状态为低电平。In some embodiments, the first level state is a high level, and the second level state is a low level.

在一些实施例中,命令调整电路包括SR锁存器和第二反相模块,SR锁存器包括第二与非门和第三与非门;其中: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:

第二与非门的第一输入端用于接收第一中间信号,第二与非门的第二输入端与第三与非门的输出端连接;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;

第三与非门的第二输入端用于接收第三中间信号,第三与非门的第一输入端与第二与非门的输出端连接,且第二与非门的输出端还与第二反相模块的输入端连接,第二反相模块的输出端用于输出第二命令信号。The second input terminal of the third NAND gate is used to receive the third intermediate signal, the first input terminal of the third NAND gate is connected to the output terminal of the second NAND gate, and the output terminal of the second NAND gate is also connected to the input terminal of the second inverting module, and the output terminal of the second inverting module is used to output the second command signal.

在一些实施例中,命令产生电路还包括延迟移位电路,其中:In some embodiments, the command generation circuit further includes a delay shift circuit, wherein:

延迟移位电路,用于接收第一时钟信号和第二命令信号,根据第一时钟信号对第二命令信号进行采样及移位处理,得到第三命令信号;其中,第三命令信号用于控制终端电阻的阻值切换。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.

第二方面,本公开实施例提供了一种存储器,存储器至少包括如第一方面中任一项所述的命令产生电路。 In a second aspect, an embodiment of the present disclosure provides a memory, the memory at least comprising a command generating circuit as described in any one of the first aspects.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为一种ODT功能电路的结构示意图;FIG1 is a schematic diagram of the structure of an ODT functional circuit;

图2为一种ODT功能的信号时序示意图;FIG2 is a schematic diagram of a signal timing sequence of an ODT function;

图3为本公开实施例提供的一种命令产生电路的组成结构示意图一;FIG3 is a schematic diagram of a structure of a command generating circuit provided in an embodiment of the present disclosure;

图4为本公开实施例提供的一种命令产生电路的组成结构示意图二;FIG4 is a second schematic diagram of the structure of a command generating circuit provided in an embodiment of the present disclosure;

图5为本公开实施例提供的一种命令产生电路的局部结构示意图一;FIG5 is a partial structural schematic diagram 1 of a command generating circuit provided in an embodiment of the present disclosure;

图6为本公开实施例提供的一种基础延时电路的组成结构示意图一;FIG6 is a schematic diagram of a basic delay circuit according to an embodiment of the present disclosure;

图7为本公开实施例提供的一种基础延时电路的组成结构示意图二;FIG. 7 is a second schematic diagram of the structure of a basic delay circuit provided in an embodiment of the present disclosure;

图8为本公开实施例提供的一种命令产生电路的局部结构示意图二;FIG8 is a second partial structural diagram of a command generating circuit provided in an embodiment of the present disclosure;

图9为本公开实施例提供的一种命令调整电路的组成结构示意图;FIG9 is a schematic diagram of the structure of a command adjustment circuit provided in an embodiment of the present disclosure;

图10为本公开实施例提供的一种命令产生电路的组成结构示意图三;FIG10 is a third schematic diagram of the structure of a command generating circuit provided in an embodiment of the present disclosure;

图11为本公开实施例提供的一种命令产生电路的详细结构示意图一;FIG11 is a first detailed structural diagram of a command generating circuit provided in an embodiment of the present disclosure;

图12为本公开实施例提供的一种信号时序示意图一;FIG12 is a first schematic diagram of a signal timing sequence provided by an embodiment of the present disclosure;

图13为本公开实施例提供的一种信号时序示意图二;FIG13 is a second schematic diagram of a signal timing sequence provided by an embodiment of the present disclosure;

图14为本公开实施例提供的一种命令产生电路的详细结构示意图二;FIG14 is a second detailed structural diagram of a command generating circuit provided in an embodiment of the present disclosure;

图15为本公开实施例提供的一种信号时序示意图三;FIG15 is a third signal timing diagram provided by an embodiment of the present disclosure;

图16为本公开实施例提供的一种存储器的组成结构示意图。FIG. 16 is a schematic diagram of the composition structure of a memory provided in an embodiment of the present disclosure.

具体实施方式DETAILED DESCRIPTION

下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅用于解释相关公开,而非对该公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关公开相关的部分。The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It is understood that the specific embodiments described herein are only used to explain the relevant disclosure, rather than to limit the disclosure. It should also be noted that, for the convenience of description, only the parts related to the relevant disclosure are shown in the drawings.

除非另有定义,本文所使用的所有的技术和科学术语与属于本公开的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本公开实施例的目的,不是旨在限制本公开。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.

在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, reference is made to “some embodiments”, which describe 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.

需要指出,本公开实施例所涉及的术语“第一\第二\第三”仅是用于区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本公开实施例能够以除了在这里图示或描述的以外的顺序实施。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 in 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.

对本公开实施例进行进一步详细说明之前,先对本公开实施例中涉及的名词和术语进行说明,本公开实施例中涉及的名词和术语适用于如下的解释:Before further describing the embodiments of the present disclosure in detail, the nouns and terms involved in the embodiments of the present disclosure are described first. The nouns and terms involved in the embodiments of the present disclosure are subject to the following interpretations:

动态随机存取存储器(Dynamic Random Access Memory,DRAM);Dynamic Random Access Memory (DRAM);

双倍速率(Double Data Rate,DDR);Double Data Rate (DDR);

第三代双倍速率(Double Data Rate 3,DDR3);The third generation double data rate (Double Data Rate 3, DDR3);

第四代双倍速率(Double Data Rate 4,DDR4);The fourth generation of double data rate (Double Data Rate 4, DDR4);

第五代双倍速率(Double Data Rate 5,DDR5);The fifth generation of double data rate (Double Data Rate 5, DDR5);

片内终结(On Die Termination,ODT);On Die Termination (ODT);

终结电阻/终端电阻(Termination Resistance,RTT);Termination resistance/terminal resistance (Termination Resistance, RTT);

模式寄存器(Mode Register,MR);Mode Register (MR);

命令(CMD);Command (CMD);

数据(Data,DQ);Data (DQ);

预设时钟周期(tck);Preset clock cycle (tck);

读(Read,RD);Read (RD);

写(Write,WR);Write (WR);

非目标读(Non-Target Write,NTWR);Non-Target Write (NTWR);

非目标写(Non-Target Read,NTRD);Non-Target Read (NTRD);

突发长度(Burst Length,BL);Burst Length (BL);

写延迟(Write Latency,WL);Write Latency (WL);

D型触发器(Data Flip-Flop或Delay Flip-Flop,DFF);D-type flip-flop (Data Flip-Flop or Delay Flip-Flop, DFF);

置位/复位锁存器(Set/Reset Latch,SR锁存器);Set/Reset Latch (SR latch);

中央处理器(Central Processing Unit,CPU); Central Processing Unit (CPU);

模式寄存器设置(Mode Register Setting,MRS)。Mode Register Setting (MRS).

随着半导体工艺的快速发展,信号的传输速率越来越快,导致信号的完整性问题日益突出。在高速信号的传播过程中,由于阻抗的不连续性导致信号反射,因此会产生符号间干扰(Inter Symbol Interference,ISI)误差。为了更好地提高数据的信号完整性,在DDR3、DDR4和DDR5的设计中,针对WR/NTRD/NTWR模式,可以在DQ管脚处增加ODT电阻。这里,通过使用ODT电阻对传输线进行阻抗匹配的方式,以将终端电阻设置为一个合适值,能够减小信号在传输过程中的反射和能量损耗,从而可以保证DQ端接收到的信号完整性。With the rapid development of semiconductor technology, the transmission rate of signals is getting faster and faster, resulting in increasingly prominent signal integrity issues. In the process of high-speed signal propagation, the discontinuity of impedance causes signal reflection, which will cause inter-symbol interference (ISI) errors. 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 pin for the WR/NTRD/NTWR mode. Here, by using ODT resistors to match the impedance of the transmission line to set 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.

以DDR5DRAM为例,DDR5DRAM支持ODT功能,该功能可以通过ODT引脚控制、写命令或者模式寄存器设置默认阻值来调整每一设备的DQ、DQS_t/c、DM_n和TDQS_t/c端口的终端电阻(又可称为“终结电阻”)。另外,ODT功能的目的是减少反射,通过控制器独立的控制所有或任何一个DRAM的终端电阻来有效提高存储器接口上的信号完整性。如图1所示,其示出了一种ODT功能电路的结构示意图。在图1中,该ODT功能电路至少可以包括开关S1、终端电阻RTT和电源VDDQ。其中,开关S1的一端与终端电阻RTT的一端连接,终端电阻RTT的另一端与电源VDDQ连接,开关S1的另一端与其他电路、以及DQ、DQS、DM、TDQS端口连接。需要注意的是,DQS可以是一对差分数据选通信号DQS_t和DQS_c,TDQS可以是一对差分数据选通信号TDQS_t和TDQS_c。Taking DDR5DRAM as an example, DDR5DRAM supports ODT function, which can adjust the terminal resistance (also called "termination resistance") of the DQ, DQS_t/c, DM_n and TDQS_t/c ports of each device through ODT pin control, write command or mode register setting default resistance value. 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 functional circuit. In Figure 1, the ODT functional 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 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.

另外,图1中的开关S1是受控于ODT控制逻辑的。ODT控制逻辑包含外部ODT引脚输入、模式寄存器配置以及其他控制信息。RTT的值是受控于模式寄存器内的配置信息。另外,如果在自刷新模式或模式寄存器配置将RTT_NOM禁用之后,ODT引脚的控制就被忽略。In addition, switch S1 in Figure 1 is controlled by the ODT control logic. The ODT control logic contains external ODT pin input, mode register configuration, and other control information. The value of RTT is controlled by the configuration information in the mode register. In addition, if RTT_NOM is disabled in self-refresh mode or mode register configuration, the control of the ODT pin is ignored.

具体来说,当MR1{A10,A9,A8}或MR2{A10:A9}或MR5{A8:A6}这些配置位不为全零时,ODT功能开启。在这种情况下,ODT电阻的实际阻值则是由这些配置位来确定的。在进入自刷新模式后,DDR5DRAM自动的将ODT功能禁用,这时候终端电阻设置为高阻态(Hi-Z)以抛弃所有的模式寄存器设置。Specifically, when the configuration bits MR1{A10,A9,A8} or MR2{A10:A9} or MR5{A8:A6} are not all zero, the ODT function is turned on. In this case, the actual resistance of the ODT resistor is determined by these configuration bits. After entering the self-refresh mode, the DDR5 DRAM automatically disables the ODT function, and the terminal resistor is set to high impedance (Hi-Z) to discard all mode register settings.

示例性地,图2示出了一种ODT功能的信号时序示意图,具体为一种DDR5中写操作时ODT功能的控制时序示意图。如图2所示,当DDR5接收到命令(CMD)时,需要将该命令传输到DQ端,去控制RTT的阻值变化。而当DDR5接收到写(Write)命令时,RTT的阻值需要从RTT_PARK切换到RTT_WR,也就是说,在RTT的阻值处于RTT_PARK阶段时,DQ端不接收数据,当Write命令传输到DQ端时,此时RTT的阻值切换到RTT_WR阶段,DQ端接收并写入数据;RTT的阻值切换的时间用tODTLon_WR表示。也就是说,RTT的阻值从RTT_PARK切换到RTT_WR时,这时候需要等待tODTLon_WR个预设时钟周期,其中,tODTLon_WR=WL+ODTLon_WR_offset,ODTLon_WR_offset为控制器发出的对tODTLon_WR参数的调整值,ODTLon_WR_offset的值可以根据模式寄存器设置为-3、-2、-1、0或者1个预设时钟周期。另外,RTT的阻值切换并不是立刻发生,而是需要时间去变化,将RTT的阻值切换的时间用tADC表示,这里可以设置tADC的最大值和最小值,分别表示为:tADC.Max和tADC.Min。Exemplarily, FIG2 shows a signal timing diagram of an ODT function, specifically a control timing diagram of an 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 to say, when the resistance value of RTT 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, ODTLon_WR_offset is the adjustment value of the tODTLon_WR parameter issued by the controller, and 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 resistance value switching of RTT does not occur immediately, but takes time to change. The time for the resistance value switching of RTT is represented by tADC, where the maximum and minimum values of tADC can be set, respectively represented as: tADC.Max and tADC.Min.

当DDR5接收到Write命令时,如果要控制RTT的阻值变化,那么需要将Write命令转化为内部的ODT命令去控制RTT的阻值变化,如图2所示,数据的宽度等于突发长度(Burst Length,BL),那么ODT命令的脉冲宽度至少要等于预设时钟周期的BL倍,即ODT_width1=BL。另外,在DQ端接收数据之前,RTT的阻值需要从RTT_PARK切换到RTT_WR,在DQ端接收数据结束后,RTT的阻值再从RTT_WR切换到RTT_PARK,也就是说,在实际过程中,ODT命令的脉冲宽度需要有额外的补偿量(ODT_offset),从而可以满足RTT的阻值切换时的时序要求,即ODT_width1=BL+ODT_offset,其中ODT_offset是根据CPU发出的指令确定的,用于进一步拓宽ODT命令的脉冲宽度。When DDR5 receives a Write command, if it is to control the resistance change of RTT, it needs 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 cycle, 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 receives 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) so as to meet the timing requirements of the RTT resistance switching, that is, ODT_width1 = BL + ODT_offset, where ODT_offset is determined according to the instructions issued by the CPU and is used to further widen the pulse width of the ODT command.

表1示出了DDR5关于BL的相关规定,具体如下所示。Table 1 shows the relevant provisions of DDR5 regarding BL, as shown below.

表1
Table 1

可以理解,上述内容是DDR5的技术规范中对于ODT功能的相关规定。简单来说,终端电阻的阻值是可以切换的,但是如何切换需要遵循一定的时序要求。当DRAM处于WR/NTRD/NTWR模式时,DQ管脚处可以设置合适的终端电阻以提高信号完整性。It can be understood that the above content is the relevant provisions for the ODT function in the technical specifications of DDR5. In simple terms, the resistance value of the terminal resistor can be switched, but how to switch needs to follow certain timing requirements. When the DRAM is in WR/NTRD/NTWR mode, a suitable terminal resistor can be set at the DQ pin to improve signal integrity.

还可以理解,DDR5的技术规范中要求数据突发长度可以支持BL8、BL16、BL32等。相应的,对于不同的数据突发长度,ODT命令需要支持不同的脉冲宽度,以便根据最终产生的ODT脉冲来控制终端电阻的阻值切换。 It can also be understood that the technical specifications of DDR5 require that the data burst length can support BL8, BL16, BL32, etc. Correspondingly, 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.

在本公开实施例中,对于ODT电路来说,当连续的两个ODT命令到来时,如果两个ODT命令之间的时间间隔为特定的时钟周期,并且ODT命令的移位长度也恰好为特定的时钟周期时,这时候可能出现第二个ODT命令无输出现象,从而影响了存储器的ODT功能。In the disclosed embodiment, 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 have no output, thereby affecting the ODT function of the memory.

基于此,本公开实施例提供了一种命令产生电路,在该命令产生电路中,首先通过第一采样电路对第一命令信号进行采样处理,可以得到第一中间信号;然后通过基础延时电路,根据第一控制信号、第一时钟信号对第一中间信号进行采样及移位处理,得到第二中间信号;再将第一中间信号作为第二采样电路的置位信号,并根据第一时钟信号对第二中间信号进行采样处理,可以得到第三中间信号;最后通过命令调整电路,根据第一中间信号和第三中间信号对第一命令信号进行脉宽调整处理,生成第二命令信号,且第二命令信号的脉冲宽度大于第一命令信号的脉冲宽度。这样,通过基础延时电路所得到的第二中间信号与第一中间信号之间的移位长度受第一控制信号的影响,同时第一控制信号的取值与BL之间具有关联关系,也即第二中间信号与第一中间信号之间的移位长度与BL具有关联关系;另外,由于第一中间信号作为第二采样电路的置位信号,能够在第一中间信号处于低电平时,使得采样得到的第三中间信号保持为高电平,从而当存在连续的两个ODT命令时,不仅可以避免第二个ODT命令出现无输出现象,而且第二命令信号的脉冲宽度等于第三中间信号与第一中间信号之间的移位长度,即第二命令信号的脉冲宽度也受BL的影响,根据BL的长度大小,可以适应性调整第二命令信号的脉冲宽度;另外,考虑到控制器设置的片内终结补偿值,还可以继续对第二命令信号进行脉宽调整处理,以使得根据最终产生的ODT脉冲来控制终端电阻的阻值切换,还能够减小信号在传输过程中的能量损耗和反射,提高了信号完整性,进而提高了存储器性能。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 of 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 adjust the pulse width of 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, and the value of the first control signal is associated with BL, that is, the shift length between the second intermediate signal and the first intermediate signal is associated with BL; in addition, since the first intermediate signal is used as the set signal of the second sampling circuit, when the first intermediate signal is at a low level, the sampled third intermediate signal can be kept at a high level, so that when there are two consecutive ODT commands, not only can the second ODT command be prevented from having no output, but the pulse width of the second command signal is equal to the shift length between the third intermediate signal and the first intermediate signal, that is, the pulse width of the second command signal is also affected by BL, and the pulse width of the second command signal can be adaptively adjusted according to the length of BL; 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 is controlled according to the finally generated ODT pulse, and the energy loss and reflection of the signal during transmission can be reduced, the signal integrity is improved, and the memory performance is improved.

下面将结合附图对本公开各实施例进行详细说明。The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

本公开的一实施例中,参见图3,其示出了本公开实施例提供的一种命令产生电路的组成结构示意图一。如图3所示,该命令产生电路30可以包括第一采样电路301、基础延时电路302、第二采样电路303和命令调整电路304。第一采样电路301的输出端与基础延时电路302的输入端连接,基础延时电路302的输出端与第二采样电路303的输入端连接,且第一采样电路301的输出端和第二采样电路303的输出端均与命令调整电路304连接,其中:In one embodiment of the present disclosure, referring to FIG3, it shows a schematic diagram of a composition structure of a command generation circuit provided by an embodiment of the present disclosure. 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 end of the first sampling circuit 301 is connected to the input end of the basic delay circuit 302, the output end of the basic delay circuit 302 is 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 are both connected to the command adjustment circuit 304, wherein:

第一采样电路301,用于接收第一命令信号和第一时钟信号,根据第一时钟信号对第一命令信号进行采样处理,得到第一中间信号;The first sampling circuit 301 is used to receive a first command signal and a first clock signal, and to sample the first command signal according to the first clock signal to obtain a first intermediate signal;

基础延时电路302,用于接收第一中间信号、第一时钟信号和第一控制信号,根据第一控制信号、第一时钟信号对第一中间信号进行采样及移位处理,得到第二中间信号;其中,第二中间信号与第一中间信号之间的移位长度与第一控制信号具有关联关系;The basic delay circuit 302 is used to receive the first intermediate signal, the first clock signal and the 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 the shift length between the second intermediate signal and the first intermediate signal is associated with the first control signal;

第二采样电路303,用于接收第一时钟信号、第一中间信号和第二中间信号,根据第一中间信号对第二采样电路进行置位处理,以及根据第一时钟信号对第二中间信号进行采样处理,得到第三中间信号;The second sampling circuit 303 is used 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;

命令调整电路304,用于接收第一中间信号和第三中间信号,根据第一中间信号和第三中间信号对第一命令信号进行脉宽调整处理,生成第二命令信号,且第二命令信号的脉冲宽度大于第一命令信号的脉冲宽度。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, and the pulse width of the second command signal is greater than the pulse width of the first command signal.

需要说明的是,在本公开实施例中,命令产生电路30可以应用于存储器。其中,存储器可以是诸如静态随机存取存储器(Static Random Access Memory,SRAM)、动态随机存取存储器(Dynamic Random Access Memory,DRAM)、同步动态随机存取存储器(Synchronous Dynamic Random Access Memory,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)等等,这里对此并不作具体限定。It should be noted that, in the disclosed embodiment, 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., which is not specifically limited here.

还需要说明的是,在本公开实施例中,对于命令产生电路30而言,具体是一种用于产生ODT命令的电路,可以支持DDR5中引入的ODT功能。在这里,将第一中间信号作为第二采样电路303的置位信号,从而在第二采样电路303中,当第一中间信号处于低电平时,此时采样得到的第三中间信号保持为高电平;这样,当存在连续的两个ODT命令时,有效避免了第二个ODT命令出现无输出的现象。It should also be noted that in the embodiment of the present disclosure, the command generating circuit 30 is specifically a circuit for generating an ODT command, which can support the ODT function introduced in DDR5. Here, the first intermediate signal is used as the set signal of the second sampling circuit 303, so that in the second sampling circuit 303, when the first intermediate signal is at a low level, the third intermediate signal sampled 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.

在一些实施例中,第一控制信号的取值与数据突发长度BL具有关联关系。In some embodiments, the value of the first control signal is associated with the data burst length BL.

需要说明的是,在本公开实施例中,根据第一控制信号的取值不同,可以对应不同的BL。其中,BL的取值可以为8、16、32等,在此不作具体限定。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.

还需要说明的是,在本公开实施例中,第一控制信号的取值可以是通过模式寄存器来设置。其中,如果第一控制信号的取值为第一值,那么BL的取值可以为8;如果第一控制信号的取值为第二值,那么BL的取值可以为16;如果第一控制信号的取值为第三值,那么BL的取值可以为32。It should also be noted that, in the embodiment of the present disclosure, the value of the first control signal can be set by the mode register. 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; if the value of the first control signal is the third value, the value of BL can be 32.

在这里,第一值、第二值与第三值均不相同。以第一控制信号包括第一子控制信号SEL1和第二子控制信号SEL0为例,针对第一控制信号的取值,示例性地,第一值可以设置为01,即SEL1的取值为0,SEL0的取值为1;第二值可以设置为10,即SEL1的取值为1,SEL0的取值为0;第三值可以设置为00, 即SEL1的取值为0,SEL0的取值为0;这里对此均不作具体限定。Here, the first value, the second value and the third value are all different. Taking the first control signal including the first sub-control signal SEL1 and the second sub-control signal SEL0 as an example, for the value of the first control signal, illustratively, the first value can be set to 01, that is, the value of SEL1 is 0, and the value of SEL0 is 1; the second value can be set to 10, that is, the value of SEL1 is 1, and the value of SEL0 is 0; the third value can be set to 00, That is, the value of SEL1 is 0, and the value of SEL0 is 0; there is no specific limitation on this here.

还需要说明的是,在本公开实施例中,第二中间信号与第一中间信号之间的移位长度与第一控制信号具有关联关系,即第二中间信号与第一中间信号之间的移位长度与BL也具有关联关系。示例性地,如果BL的取值越大,那么第二中间信号与第一中间信号之间的移位长度越长;如果BL的取值越小,那么第二中间信号与第一中间信号之间的移位长度越短。It should also be noted that, in the embodiment of the present disclosure, 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. Exemplarily, if the value of BL is larger, the shift length between the second intermediate signal and the first intermediate signal is longer; if the value of BL is smaller, the shift length between the second intermediate signal and the first intermediate signal is shorter.

在一些实施例中,第二命令信号的脉冲宽度等于第三中间信号与第一中间信号之间的移位长度,且第二命令信号的脉冲宽度与数据突发长度BL具有关联关系。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 associated with a data burst length BL.

进一步地,在一些实施例中,在BL增大时,根据第一控制信号控制第二中间信号与第一中间信号之间的移位长度增加,以使得第二命令信号的脉冲宽度增宽;在BL减小时,根据第一控制信号控制第二中间信号与第一中间信号之间的移位长度减小,以使得第二命令信号的脉冲宽度减窄。Further, 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.

需要说明的是,在本公开实施例中,假定第三中间信号与第一中间信号之间的移位长度为A,第二中间信号与第一中间信号之间的移位长度为B,第三中间信号与第二中间信号之间的移位长度为C,那么A=B+C,而且C等于第一时钟信号的一个时钟周期。由于B的长度受到BL的影响,那么A的长度也相应受到BL的影响,也就是说,第三中间信号与第一中间信号之间的移位长度(即第二命令信号的脉冲宽度)会受到BL的影响。It should be noted that, in the embodiment of the present disclosure, assuming that 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. Since the length of B is affected by BL, the length of A is also affected by BL accordingly, that is, 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.

示例性地,如果BL的取值越大,那么根据第一控制信号所控制的第二中间信号与第一中间信号之间的移位长度越长,此时第三中间信号与第一中间信号之间的移位长度也越长,相应地,第二命令信号的脉冲宽度越宽;反之,如果BL的取值越小,那么根据第一控制信号所控制的第二中间信号与第一中间信号之间的移位长度越短,此时第三中间信号与第一中间信号之间的移位长度也越短,相应地,第二命令信号的脉冲宽度越窄。Exemplarily, 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. Correspondingly, 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. Correspondingly, the pulse width of the second command signal is narrower.

简单来说,在本公开实施例中,根据第一控制信号的不同取值,可以对应不同的BL。另外,BL的取值越大,基础延时电路302所产生的移位长度越长,这时候生成的第二命令信号的脉冲宽度越宽,以使得最终产生的ODT脉冲的宽度能够覆盖整个DQ数据写入的过程。In short, in the embodiment of the present disclosure, different BLs may correspond to different values of the first control signal. In addition, the larger the value of BL, the longer the shift length generated by the basic delay circuit 302, and the wider the pulse width of the second command signal generated at this time, so that the width of the finally generated ODT pulse can cover the entire DQ data writing process.

在一些实施例中,在图3所示命令产生电路30的基础上,参见图4,命令产生电路30还可以包括时钟处理电路305,其中:In some embodiments, based on the command generation circuit 30 shown in FIG. 3 , referring to FIG. 4 , the command generation circuit 30 may further include a clock processing circuit 305 , wherein:

时钟处理电路305,用于接收时钟门控信号和第二时钟信号,根据时钟门控信号对第二时钟信号进行控制处理,生成第一时钟信号。The clock processing circuit 305 is used to receive the clock gating signal and the second clock signal, and control the second clock signal according to the clock gating signal to generate the first clock signal.

在本公开实施例中,在时钟门控信号处于第一电平状态时,第一时钟信号与第二时钟信号的频率相同;在时钟门控信号处于第二电平状态时,第一时钟信号处于低电平状态。In the disclosed embodiment, when the clock gating signal is in the first level state, the frequency of the first clock signal is the same as that of the second clock signal; when the clock gating signal is in the second level state, the first clock signal is in a low level state.

在本公开实施例中,第一电平状态可以为高电平,如逻辑1;第二电平状态可以为低电平,如逻辑0,但是对此不作具体限定。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.

这样,如果时钟门控信号处于高电平,这时候输出的第一时钟信号即为第二时钟信号;如果时钟门控信号处于低电平,这时候屏蔽第二时钟信号,使得输出的第一时钟信号处于低电平,不再具有时钟功能。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.

在一些实施例中,在图4所示命令产生电路30的基础上,参见图5,时钟处理电路305可以包括第一与非门A1和第一反相模块A2,其中:In some embodiments, based on the command generating circuit 30 shown in FIG. 4 , referring to FIG. 5 , the clock processing circuit 305 may include a first NAND gate A1 and a first inverting module A2 , wherein:

第一与非门A1的第一输入端用于接收时钟门控信号,第一与非门A1的第二输入端用于接收第二时钟信号,第一与非门A1的输出端与第一反相模块A2的输入端连接,第一反相模块A2的输出端用于输出第一时钟信号。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.

需要说明的是,在本公开实施例中,第一反相模块A2可以是由第一非门组成,而且第一非门的数量为奇数个。其中,第一非门的数量越多,第一时钟信号与第二时钟信号之间的延迟时间越长;因此,在本公开实施例中,第一非门的数量可以设置为1个,但是并不作具体限定。It should be noted that, in the embodiment of the present disclosure, the first inversion module A2 may be composed of first NOT gates, and the number of the first NOT gates is an odd number. The more the number of the 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 the first NOT gates may be set to 1, but is not specifically limited.

进一步地,在一些实施例中,如图5所示,第一采样电路301可以包括第一触发器A3,其中:Further, in some embodiments, as shown in FIG5 , the first sampling circuit 301 may include a first trigger A3, wherein:

第一触发器A3的输入端用于接收第一命令信号,第一触发器A3的时钟端用于接收第一时钟信号,第一触发器A3的第一输出端用于输出第一中间信号;其中,第一触发器A3的第一输出端用于反映被第一时钟信号进行采样后的第一触发器A3的输入端的值。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.

需要说明的是,在本公开实施例中,第一触发器A3可以为D型触发器(Data Flip-Flop或Delay Flip-Flop,DFF)。其中,D型触发器是一个具有记忆功能的、具有两个稳定状态的信息存储器件,是构成多种时序电路的最基本逻辑单元,也是数字逻辑电路中一种重要的单元电路。这里,D型触发器具有两个稳定状态,即“0”和“1”,在时钟端接收到的信号的作用下,可以从一个稳定状态翻转到另一个稳定状态。It should be noted that, in the disclosed embodiment, the first trigger A3 may be a D-type trigger (Data Flip-Flop or Delay Flip-Flop, DFF). The D-type trigger is an information storage device with a memory function and two stable states. It is the most basic logic unit constituting a variety of sequential circuits and 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 stable state under the action of the signal received at the clock end.

还需要说明的是,在本公开实施例中,对于第一触发器A3而言,这里可以包括时钟端(CK)、输入端(D)、第一输出端(Q)和第二输出端而且第一输出端(Q)与第二输出端之间为反相关 系。除此之外,第一触发器A3也可以包括置位端(SET)和复位端(RST)等,但是图中未示出。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 There is an anti-correlation between 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.

也就是说,在第一采样电路301中,通过第一触发器A3可以实现第一时钟信号对第一命令信号的采样处理,从而能够输出第一中间信号,而且该第一中间信号可以作为后续第二采样电路303的置位信号。That is, in the first sampling circuit 301 , the first clock signal can sample 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 .

在一些实施例中,对于基础延时电路302而言,参见图6,基础延时电路302可以包括M个第二触发器(U1,U2,…UM)和N个选择单元(D1,D2,…DN),且M个第二触发器的时钟端均用于接收第一时钟信号,第一控制信号中的每一个子控制信号分别与N个选择单元的控制端连接;其中:In some embodiments, for the basic delay circuit 302, referring to FIG. 6, the basic delay circuit 302 may include 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:

第一个第二触发器U1的输入端用于接收第一中间信号,第一个第二触发器U1的第一输出端与第二个第二触发器U2的输入端、N个选择单元的第一输入端分别连接;An input terminal of the first second trigger U1 is used to receive a 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;

第k个第二触发器Uk的第一输出端与下一个第二触发器的输入端连接,直至第j个第二触发器Uj的第一输出端与第i个选择单元Di的第二输入端连接,第i个选择单元Di的输出端与第j+1个第二触发器Uj+1的输入端连接,第j+1个第二触发器Uj+1的第一输出端与下一个第二触发器的输入端连接;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 ith selection unit Di, the output terminal of the ith selection unit Di is connected to the input terminal of the j+1th second trigger Uj+1, and the first output terminal of the j+1th second trigger Uj+1 is connected to the input terminal of the next second trigger;

第M个第二触发器UM的第一输出端与第N个选择单元DN的第二输入端连接,第N个选择单元DN的输出端用于输出第二中间信号;A first output terminal of the Mth second flip-flop UM is connected to a second input terminal of the Nth selection unit DN, and an output terminal of the Nth selection unit DN is used to output a second intermediate signal;

其中,i为大于或等于1且小于N的整数,k为大于1且小于j的整数,j为大于k且小于M的整数;每一个第二触发器的第一输出端用于反映被第一时钟信号进行采样后的第二触发器的输入端的值。Among them, 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.

在本公开实施例中,第一控制信号可以包括N个子控制信号(SEL0、SEL1、…、SELN-1),这N个子控制信号分别与N个选择单元的控制端连接。具体地,第一选择单元D1的控制端与第一子控制信号SELN-1连接,第二选择单元D2的控制端与第二子控制信号SELN-2连接,第i选择单元Di的控制端与第i子控制信号SELN-i连接,第N选择单元DN的控制端与第N子控制信号SEL0连接。这样,根据这N个子控制信号的取值,可以确定出对第一中间信号真正起到移位作用的第二触发器的数量,进而可以确定出第二中间信号与第一中间信号之间的移位长度。示例性地,根据这N个子控制信号的取值,如果对第一中间信号真正起到移位作用的第二触发器的数量越多,那么第二中间信号与第一中间信号之间的移位长度越长;反之,如果对第一中间信号真正起到移位作用的第二触发器的数量越少,那么第二中间信号与第一中间信号之间的移位长度越短。In the embodiment of the present disclosure, the first control signal may include N sub-control signals (SEL0, SEL1, ..., SELN-1), and these N sub-control signals are respectively connected to the control terminals of the 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. In this way, according to the values of these N sub-control signals, the number of second triggers that actually play a shifting role on the first intermediate signal can be determined, and then the shift length between the second intermediate signal and the first intermediate signal can be determined. Exemplarily, according to the values of the N sub-control signals, if the number of second triggers that actually play a shifting role on the first intermediate signal is greater, the shift length between the second intermediate signal and the first intermediate signal is longer; conversely, if the number of second triggers that actually play a shifting role on the first intermediate signal is smaller, the shift length between the second intermediate signal and the first intermediate signal is shorter.

进一步地,在本公开实施例中,M的取值可以等于7,N的取值可以等于2,这时候第一控制信号可以包括第一子控制信号SEL1和第二子控制信号SEL0。在一些实施例中,参见图7,基础延时电路302可以包括七个第二触发器(U1,U2,…U7)和2个选择单元(D1,D2),且七个第二触发器的时钟端均用于接收第一时钟信号;其中:Further, in the embodiment of the present disclosure, the value of M may be equal to 7, and the value of N may be equal to 2. In this case, the first control signal may include a first sub-control signal SEL1 and a second sub-control signal SEL0. In some embodiments, referring to FIG. 7 , the basic delay circuit 302 may 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:

第一个选择单元D1的控制端与第一子控制信号SEL1连接,第二个选择单元D2的控制端与第二子控制信号SEL0连接;The control end of the first selection unit D1 is connected to the first sub-control signal SEL1, and the control end of the second selection unit D2 is connected to the second sub-control signal SEL0;

第一个第二触发器U1的输入端用于接收第一中间信号,第一个第二触发器U1的第一输出端分别与第二个第二触发器U2的输入端、第一个选择单元D1的第一输入端和第二个选择单元D2的第一输入端连接;An input terminal of the first second trigger U1 is used to receive a first intermediate signal, and a first output terminal of the first second trigger U1 is respectively connected to an input terminal of the second second trigger U2, a first input terminal of the first selection unit D1, and a first input terminal of the second selection unit D2;

第二个第二触发器U2的第一输出端与第三个第二触发器U3的输入端连接,第三个第二触发器U3的第一输出端与第四个第二触发器U4的输入端连接,第四个第二触发器U4的第一输出端与第五个第二触发器U5的输入端连接,第五个第二触发器U5的第一输出端与第一个选择单元D1的第二输入端连接,第一个选择单元D1的输出端与第六个第二触发器U6的输入端连接,第六个第二触发器U6的第一输出端与第七个第二触发器U7的输入端连接,第七个第二触发器U7的第一输出端与第二个选择单元D2的第二输入端连接,第二个选择单元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.

还需要说明的是,在本公开实施例中,根据第一子控制信号SEL1和第二子控制信号SEL0的取值,可以确定基础延时电路302中对第一中间信号真正起到移位作用的第二触发器的数量,进而可以确定出第二中间信号与第一中间信号之间的移位长度。在这里,如果第一子控制信号和第二子控制信号均处于第二电平状态(例如SEL1的取值等于0,SEL0的取值等于0),那么基础延时电路302中对第一中间信号真正起到移位作用的有七个第二触发器,具体是第二触发器U1~U7,此时第二中间信号与第一中间信号之间的移位长度等于7个预设时钟周期;如果第一子控制信号处于第一电平状态,且第二子控制信号处于第二电平状态(例如SEL1的取值等于1,SEL0的取值等于0),那么基础延时电路302中对第一中间信号真正起到移位作用的有三个第二触发器,具体是第二触发器U1、U6和U7,此时第二中间信号与第一中间信号之间的移位长度等于3个预设时钟周期;如果第一子控制信号处于第二电平状态,且第二子控制信号处于第一电平状态(例如SEL1的取值等于0,SEL0的取值等于1),那么基础延时电路302中对第一中间信号真正起到移位作用的只有一个第二触发器,具体是第二触发器U1,此时第二中间信号与第一中间信号之间的移位长度等于1个预设时钟周期。其中,预设时钟周期可以为第一时钟信号的时钟周期。It should also be noted that, in the embodiment of the present disclosure, according to the values of the first sub-control signal SEL1 and the second sub-control signal SEL0, the number of second triggers in the basic delay circuit 302 that actually play a shifting role on the first intermediate signal can be determined, and then 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 triggers in the basic delay circuit 302 that actually play a shifting role on the first intermediate signal, specifically the second triggers U1 to U7, and 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 basic delay circuit 302 has seven second triggers .... There are three second triggers that actually play a shifting role for an intermediate signal, specifically the second triggers U1, U6 and U7, and at this time the shift length between the second intermediate signal and the first intermediate signal is equal to 3 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 there is only one second trigger in the basic delay circuit 302 that actually plays a shifting role for the first intermediate signal, specifically the second trigger U1, and at this time the shift length between the second intermediate signal and the first intermediate signal is equal to 1 preset clock cycle. The preset clock cycle can be the clock cycle of the first clock signal.

在一些实施例中,在图7所示基础延时电路302的基础上,参见图8,第二采样电路303可以包括第 三触发器U8,其中: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 first Three triggers U8, where:

第三触发器U8的输入端用于接收第二中间信号,第三触发器U8的时钟端用于接收第一时钟信号,第三触发器U8的置位端用于接收第一中间信号,第三触发器U8的第一输出端用于输出第三中间信号;其中,第三触发器U8的第一输出端用于反映被第一时钟信号进行采样后的第三触发器U8的输入端的值。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.

需要说明的是,在本公开实施例中,无论是第二触发器还是第三触发器,这里均可以为D型触发器。It should be noted that in the embodiments of the present disclosure, both the second trigger and the third trigger may be D-type triggers.

还需要说明的是,在本公开实施例中,通过第三触发器U8可以实现第一时钟信号对第二中间信号的采样处理,从而能够输出第三中间信号,而且第三中间信号与第二中间信号之间的移位长度等于1个预设时钟周期。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.

进一步地,在一些实施例中,在第一子控制信号和第二子控制信号均处于第二电平状态时,第三中间信号与第一中间信号之间的移位长度等于8个预设时钟周期;Further, 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;

在第一子控制信号处于第一电平状态,且第二子控制信号处于第二电平状态时,第三中间信号与第一中间信号之间的移位长度等于4个预设时钟周期;When the first sub-control signal is in the first level state and the second sub-control signal is in the second level state, the shift length between the third intermediate signal and the first intermediate signal is equal to 4 preset clock cycles;

在第一子控制信号处于第二电平状态,且第二子控制信号处于第一电平状态时,第三中间信号与第一中间信号之间的移位长度等于2个预设时钟周期。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.

需要说明的是,在本公开实施例中,在第一子控制信号和第二子控制信号均处于第二电平状态(例如SEL1的取值等于0,SEL0的取值等于0)时,由于第二中间信号与第一中间信号之间的移位长度等于7个预设时钟周期,第三中间信号与第二中间信号之间的移位长度等于1个预设时钟周期;因此,第三中间信号与第一中间信号之间的移位长度等于8个预设时钟周期。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.

还需要说明的是,在本公开实施例中,在第一子控制信号处于第一电平状态,且第二子控制信号处于第二电平状态(例如SEL1的取值等于1,SEL0的取值等于0)时,由于第二中间信号与第一中间信号之间的移位长度等于3个预设时钟周期,第三中间信号与第二中间信号之间的移位长度等于1个预设时钟周期;因此,第三中间信号与第一中间信号之间的移位长度等于4个预设时钟周期。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.

还需要说明的是,在本公开实施例中,在第一子控制信号处于第二电平状态,且第二子控制信号处于第一电平状态(例如SEL1的取值等于0,SEL0的取值等于1)时,由于第二中间信号与第一中间信号之间的移位长度等于1个预设时钟周期,第三中间信号与第二中间信号之间的移位长度等于1个预设时钟周期;因此,第三中间信号与第一中间信号之间的移位长度等于2个预设时钟周期。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.

简单来说,在本公开实施例中,第三中间信号与第一中间信号之间的移位长度与第一控制信号的取值有关,或者也可以说第三中间信号与第一中间信号之间的移位长度与BL的取值有关。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 it can be said that the shift length between the third intermediate signal and the first intermediate signal is related to the value of BL.

进一步地,在一些实施例中,第三触发器U8,用于在第一中间信号处于第二电平状态时,控制第三中间信号处于第一电平状态。Furthermore, in some embodiments, 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.

在本公开实施例中,第一电平状态可以为高电平,第二电平状态可以为低电平。或者,第一电平状态可以为逻辑1,第二电平状态可以为逻辑0。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.

在本公开实施例中,对于第三触发器U8而言,由于将第一中间信号作为第三触发器U8的置位信号,根据置位信号的作用,在置位信号处于低电平时,这时候第三触发器U8输出的第三中间信号始终为高电平;这样,当存在连续的两个ODT命令时,可以有效避免第二个ODT命令出现无输出现象。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 prevented from having no output.

需要注意的是,对于第三触发器U8的置位端,如果额外增加一些反相器,那么这里的逻辑也可以是:在第一中间信号处于高电平时,第三触发器U8输出的第三中间信号始终为高电平。也就是说,在本公开实施例中,第一电平状态也可以为低电平(即逻辑0),第二电平状态也可以为高电平(即逻辑1)。其中,针对不同的运算逻辑,这里可以考虑增加一些反相器,那么后续的逻辑则需进行相应调整,从而也可以达到相同效果。It should be noted that for the set end of the third trigger U8, if some 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 trigger U8 is always at a high level. That is to say, 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 can be considered to add some inverters here, and then the subsequent logic needs to be adjusted accordingly, so that the same effect can be achieved.

在一些实施例中,对于命令调整电路304而言,参见图9,命令调整电路304可以包括SR锁存器401和第二反相模块402,SR锁存器401包括第二与非门B1和第三与非门B2;其中:In some embodiments, for the command adjustment circuit 304, referring to FIG. 9, the command adjustment circuit 304 may include an SR latch 401 and a second inversion module 402, and the SR latch 401 includes a second NAND gate B1 and a third NAND gate B2; wherein:

第二与非门B1的第一输入端用于接收第一中间信号,第二与非门B1的第二输入端与第三与非门B2的输出端连接;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;

第三与非门B2的第二输入端用于接收第三中间信号,第三与非门B2的第一输入端与第二与非门B1的输出端连接,且第二与非门B1的输出端还与第二反相模块402的输入端连接,第二反相模块402的输出端用于输出第二命令信号。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, and the output terminal of the second inverting module 402 is used to output the second command signal.

需要说明的是,在本公开实施例中,SR锁存器401的输出端用于输出第四中间信号,然后第二反相模块402的输入端用于接收第四中间信号,第二反相模块402的输出端用于输出第二命令信号。在这里,第四中间信号与第二命令信号之间具有延迟以及反相关系。It should be noted that, in the embodiment of the present disclosure, the output end of the SR latch 401 is used to output the fourth intermediate signal, and then the input end of the second inverting module 402 is used to receive the fourth intermediate signal, and the output end of the second inverting module 402 is used to output the second command signal. Here, there is a delay and inversion relationship between the fourth intermediate signal and the second command signal.

还需要说明的是,在本公开实施例中,对于SR锁存器401来说,第四中间信号的上升沿可以是根据第一中间信号的电平翻转时刻(具体是由高电平翻转为低电平)产生的,第四中间信号的下降沿可以是 根据第三中间信号的电平翻转时刻(具体是由高电平翻转到低电平)产生的。另外,又因为第三中间信号相比第一中间信号延迟预设移位长度,那么在经过SR锁存器401对第一中间信号和第三中间信号的逻辑处理后,所得到的第四中间信号是一个高电平有效的脉冲信号,并且脉冲宽度被拓宽为预设移位长度。It should also be noted that, in the embodiment of the present disclosure, for the SR latch 401, the rising edge of the fourth intermediate signal may be generated according to the level flipping moment of the first intermediate signal (specifically, flipping from a high level to a low level), and the falling edge of the fourth intermediate signal may be generated according to the level flipping moment of the first intermediate signal. The fourth intermediate signal is generated according to the level flipping moment of the third intermediate signal (specifically, from a high level to a low level). In addition, because the third intermediate signal is delayed by a preset shift length compared to the first intermediate signal, after the SR latch 401 performs logic processing on the first intermediate signal and the third intermediate signal, the fourth intermediate signal is a high-level effective pulse signal, and the pulse width is widened to the preset shift length.

也就是说,SR锁存器401是用来产生相比第一命令信号的脉冲宽度进行拓宽后的第四中间信号,而且第四中间信号的脉冲宽度为预设移位长度。示例性地,对于第一控制信号来说,如果SEL1的取值等于0,SEL0的取值等于0,那么预设移位长度可以等于8个预设时钟周期;如果SEL1的取值等于1,SEL0的取值等于0,那么预设移位长度可以等于4个预设时钟周期;如果SEL1的取值等于0,SEL0的取值等于1,那么预设移位长度可以等于2个预设时钟周期。That is, the SR latch 401 is used to generate a fourth intermediate signal that is widened compared to the pulse width of the first command signal, and the pulse width of the fourth intermediate signal is a preset shift length. Exemplarily, for the first control signal, if the value of SEL1 is equal to 0 and the value of SEL0 is equal to 0, then the preset shift length can be equal to 8 preset clock cycles; if the value of SEL1 is equal to 1 and the value of SEL0 is equal to 0, then the preset shift length can be equal to 4 preset clock cycles; if the value of SEL1 is equal to 0 and the value of SEL0 is equal to 1, then the preset shift length can be equal to 2 preset clock cycles.

另外,在本公开实施例中,第二反相模块402可以是由第二非门B3组成,第二非门B3的数量可以为奇数个。因为第二反相模块402包括有奇数个第二非门,所以针对SR锁存器401的输出信号不仅进行了延迟处理,而且相比该输出信号的电平状态也发生改变。在这里,第二反相模块402可以由一个第二非门B3组成,也可以由三个、五个、或者更多个第二非门B3串联而成。示例性地,第二非门B3的数量可以设置为1个,但是对此不作具体限定。In addition, in the disclosed embodiment, the second inverting module 402 may be composed of a second NOT gate B3, and the number of the second NOT gates B3 may 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 may be composed of one second NOT gate B3, or may be composed of three, five, or more second NOT gates B3 connected in series. Exemplarily, the number of the second NOT gate B3 may be set to 1, but this is not specifically limited.

还需要说明的是,在本公开实施例中,第二非门的数量越多,SR锁存器401的输出信号与第二命令信号之间的延迟时间越长。换句话说,根据第二反相模块402中第二非门的数量不同,SR锁存器401的输出信号与第二命令信号之间的延迟时间也相应存在不同。这样,本公开实施例可以根据需要的延迟时间来确定第二反相模块402中第二非门的具体数量。It should also be noted that, in the embodiment of the present disclosure, the more 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, according to the different numbers of second NOT gates in the second inversion module 402, the delay time between the output signal of the SR latch 401 and the second command signal is also different accordingly. In this way, the embodiment of the present disclosure can determine the specific number of second NOT gates in the second inversion module 402 according to the required delay time.

在一些实施例中,在图4所示命令产生电路30的基础上,参见图10,命令产生电路30还可以包括延迟移位电路306,其中:In some embodiments, based on the command generation circuit 30 shown in FIG. 4 , referring to FIG. 10 , the command generation circuit 30 may further include a delay shift circuit 306 , wherein:

延迟移位电路306,用于接收第一时钟信号和第二命令信号,根据第一时钟信号对第二命令信号进行采样及移位处理,得到第三命令信号;其中,第三命令信号用于控制终端电阻的阻值切换。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.

需要说明的是,在本公开实施例中,第三命令信号与第二命令信号之间的脉宽差值与控制器设置的片内终结补偿值具有关联关系。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.

还需要说明的是,在本公开实施例中,为了保证在接收DQ数据时降低DQ管脚的反射,这时候延迟移位电路306可以根据CPU要求的ODT_offset来进一步拓宽ODT命令的脉宽,以生成DQ管脚处的最终ODT脉冲,即这里的第三命令信号。在这里,第三命令信号与第二命令信号之间的脉宽差值可以表示为ODT_offset,可以通过控制器来设置不同的片内终结补偿值;另外,ODT_offset可以有0~8tck等九种可能,这里对此不作具体限定。It should also be noted that in the embodiment of the present disclosure, in order to ensure that the reflection of the DQ pin is reduced when receiving DQ data, the delay shift circuit 306 can further widen the pulse width of the ODT command according to the ODT_offset required by the CPU to generate the final ODT pulse at the DQ pin, that is, the third command signal here. Here, the pulse width difference between the third command signal and the second command signal can be expressed as ODT_offset, and different on-chip termination compensation values can be set by the controller; in addition, ODT_offset can have nine possibilities such as 0 to 8tck, which are not specifically limited here.

另外,在本公开实施例中,对于第三命令信号而言,第三命令信号的脉宽不仅与BL的取值有关,而且还与ODT_offset有关,以使得最终在接收DQ数据时能够很好降低DQ管脚的反射。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.

本实施例提供了一种命令产生电路,该命令产生电路包括第一采样电路、基础延时电路、第二采样电路和命令调整电路。其中,由于第一中间信号作为第二采样电路的置位信号,能够在第一中间信号处于低电平时,使得采样得到的第三中间信号保持为高电平,从而当存在连续的两个ODT命令时,可以有效避免第二个ODT命令出现无输出现象;另外,第二命令信号的脉冲宽度等于第三中间信号与第一中间信号之间的移位长度,而且第三中间信号与第一中间信号之间的移位长度与BL有关,即第二命令信号的脉冲宽度会受BL的影响,根据BL的长度大小,可以适应性调整第二命令信号的脉冲宽度;另外,考虑到控制器设置的片内终结补偿值,还可以继续对第二命令信号进行脉宽调整处理,以使得根据最终产生的ODT脉冲来控制终端电阻的阻值切换,还能够减小信号在传输过程中的能量损耗和反射,提高了信号完整性,进而提高了存储器性能。The present embodiment provides a command generation circuit, which includes a first sampling circuit, a basic delay circuit, a second sampling circuit and a command adjustment circuit. In which, since the first intermediate signal is used as a set signal of the second sampling circuit, when the first intermediate signal is at a low level, the sampled third intermediate signal can be kept at a high level, so that when there are two consecutive ODT commands, the second ODT command can be effectively prevented from having no output; 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 shift length between the third intermediate signal and the first intermediate signal is related to BL, that is, the pulse width of the second command signal will be affected by BL, and the pulse width of the second command signal can be adaptively adjusted according to the length of BL; 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 is controlled according to the finally generated ODT pulse, and the energy loss and reflection of the signal during transmission can be reduced, the signal integrity is improved, and the memory performance is improved.

本公开的另一实施例中,基于前述实施例所述的命令产生电路30,参见图11,其示出了本公开实施例提供的一种命令产生电路的详细结构示意图。如图11所示,命令产生电路30可以包括第一与非门501、第一非门502、第一触发器503、第二触发器504、第三触发器505、第四触发器506、第五触发器507、第六触发器508、第七触发器509、第八触发器510、第九触发器511、第一选择单元512、第二选择单元513、SR锁存器514和第二非门515,具体连接关系参见图11。In another embodiment of the present disclosure, based on the command generation circuit 30 described in the above embodiment, see Figure 11, which shows a detailed structural diagram of a command generation circuit provided by the 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 trigger 503, a second trigger 504, a third trigger 505, a fourth trigger 506, a fifth trigger 507, a sixth trigger 508, a seventh trigger 509, an eighth trigger 510, a ninth trigger 511, a first selection unit 512, a second selection unit 513, an SR latch 514 and a second NOT gate 515, and the specific connection relationship is shown in Figure 11.

在图11中,第一子控制信号可以用SEL1表示,第二子控制信号可以用SEL0表示;第一命令信号用CMD_IN表示,第一时钟信号用CLK1表示,时钟门控信号用CLK_Gating表示,第二时钟信号用CLK表示,第一中间信号可以用Q1表示,第二中间信号可以用Q2表示,第三中间信号可以用CMD_shift表示;第一延迟信号可以用CMD_delay表示;第二命令信号可以用OUTPUT表示。需要注意的是,第一中间信号Q1与第一延迟信号CMD_delay之间存在由于传输路径带来的略微延迟。通常情况下,这点延迟可以忽略不计,此时第一中间信号Q1与第一延迟信号CMD_delay可以看作是一个信号。In FIG11 , 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. It should be noted that there is a slight delay between the first intermediate signal Q1 and the first delay signal CMD_delay due to the transmission path. Normally, this delay can be ignored, and the first intermediate signal Q1 and the first delay signal CMD_delay can be regarded as one signal.

需要说明的是,对于图11而言,在第一命令信号CMD_IN包括单个命令,以及第一子控制信号SEL1的取值为1,第二子控制信号SEL0的取值为0时,此时对应的信号时序如图12所示。其中,通过第一 触发器503对第一命令信号CMD_IN的采样处理,可以得到第一中间信号Q1和第一延迟信号CMD_delay,这里的第一中间信号Q1与第一延迟信号CMD_delay之间的延迟时间为t1,t1是由传输路径产生的,故t1比较小,通常可以忽略不计。It should be noted that, for FIG. 11 , when the first command signal CMD_IN includes a single command, and 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 FIG. 12 . The trigger 503 samples the first command signal CMD_IN to obtain a first intermediate signal Q1 and a first delayed signal CMD_delay. Here, the delay time between the first intermediate signal Q1 and the first delayed signal CMD_delay is t1 . Since t1 is generated by the transmission path, t1 is relatively small and can usually be ignored.

进一步地,通过第二触发器504对第一中间信号Q1进行采样处理,可以得到第五中间信号Q3,而且第五中间信号Q3与第一中间信号Q1之间的延迟时间为1tck(即一个预设时钟周期)。另外,由于第一子控制信号SEL1的取值为1,第二子控制信号SEL0的取值为0,那么第五中间信号Q3需要继续经过第七触发器509、第八触发器510以及第九触发器511的采样处理,可以得到第三中间信号CMD_shift,而且第三中间信号CMD_shift与第一中间信号Q1之间的延迟时间为4tck(即四个预设时钟周期)。最后,通过SR锁存器514和第二非门515,可以是由第一延迟信号CMD_delay和第三中间信号CMD_shift分别产生第二命令信号OUTPUT的下降沿和上升沿,而且第二命令信号OUTPUT的脉冲宽度等于第三中间信号CMD_shift与第一中间信号Q1之间的延迟时间(即为4tck)。Further, the first intermediate signal Q1 is sampled by the second trigger 504 to obtain the fifth intermediate signal Q3, and the delay time between the fifth intermediate signal Q3 and the first intermediate signal Q1 is 1tck (i.e., one preset clock cycle). In addition, since the value of the first sub-control signal SEL1 is 1 and the value of the second sub-control signal SEL0 is 0, the fifth intermediate signal Q3 needs to continue to be sampled by the seventh trigger 509, the eighth trigger 510 and the ninth trigger 511 to obtain the third intermediate signal CMD_shift, and the delay time between the third intermediate signal CMD_shift and the first intermediate signal Q1 is 4tck (i.e., four preset clock cycles). Finally, through the SR latch 514 and the second NOT gate 515, the first delay signal CMD_delay and the third intermediate signal CMD_shift can generate the falling edge and the rising edge of the second command signal OUTPUT respectively, and the pulse width of the second command signal OUTPUT is equal to the delay time between the third intermediate signal CMD_shift and the first intermediate signal Q1 (i.e., 4tck).

还需要说明的是,对于图11而言,在第一命令信号CMD_IN包括连续的两个命令,且两个命令之间的时间间隔为4tck;以及第一子控制信号SEL1的取值为1,第二子控制信号SEL0的取值为0时,此时对应的信号时序如图13所示。其中,通过第一触发器503对第一命令信号CMD_IN的采样处理,可以得到第一中间信号Q1和第一延迟信号CMD_delay;其中,这里的第一延迟信号CMD_delay与第一命令信号CMD_IN之间的延迟时间为t2,t2可以是由第一触发器503的器件延迟以及传输路径延迟共同产生的。在这里,第一触发器503的器件延迟主要表现为第一命令信号CMD_IN与第一中间信号Q1之间的延迟时间,传输路径延迟主要表现为第一中间信号Q1与第一延迟信号CMD_delay之间的延迟时间,传输路径的延迟时间较小,通常可以忽略不计。It should also be noted that, for FIG. 11 , when the first command signal CMD_IN includes two consecutive commands, and the time interval between the two commands is 4tck; and 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 FIG. 13 . Among them, the first intermediate signal Q1 and the first delayed signal CMD_delay can be obtained by the first trigger 503 sampling and processing the first command signal CMD_IN; wherein the delay time between the first delayed signal CMD_delay and the first command signal CMD_IN is t 2 , and t 2 can be jointly generated by the device delay of the first trigger 503 and the transmission path delay. Here, the device delay of the first trigger 503 is mainly manifested as the delay time between the first command signal CMD_IN and the first intermediate signal Q1, and the transmission path delay is mainly manifested as the delay time between the first intermediate signal Q1 and the first delayed signal CMD_delay. The delay time of the transmission path is small and can usually be ignored.

进一步地,由于第一子控制信号SEL1的取值为1,第二子控制信号SEL0的取值为0,那么对于第一中间信号Q1来说,依次经过第二触发器504、第七触发器509、第八触发器510以及第九触发器511的采样处理,从而能够生成第三中间信号CMD_shift。在这里,考虑到第二触发器504、第七触发器509、第八触发器510以及第九触发器511等器件延迟以及传输路径的延迟,将这些延迟所带来的延迟时间设置为t3;那么第三中间信号CMD_shift与第一延迟信号CMD_delay之间的延迟时间为4tck与t3之和。在理想情况下,t3可以忽略不计,也就是说,第三中间信号CMD_shift与第一延迟信号CMD_delay之间的延迟时间可以看作为4tck。Furthermore, since the value of the first sub-control signal SEL1 is 1 and the value of the second sub-control signal SEL0 is 0, the first intermediate signal Q1 is sampled and processed by the second trigger 504, the seventh trigger 509, the eighth trigger 510 and the ninth trigger 511 in sequence, thereby generating the third intermediate signal CMD_shift. Here, considering the delay of the second trigger 504, the seventh trigger 509, the eighth trigger 510 and the ninth trigger 511 and the delay of the transmission path, the delay time caused by these delays is set to t3 ; then the delay time between the third intermediate signal CMD_shift and the first delayed signal CMD_delay is the sum of 4tck and t3 . In an ideal case, t3 can be ignored, that is, the delay time between the third intermediate signal CMD_shift and the first delayed signal CMD_delay can be regarded as 4tck.

对于图11所示的命令产生电路30,如果在接收到连续的两个命令,且两个命令之间的时间间隔为4tck,并且第三中间信号CMD_shift与第一延迟信号CMD_delay之间的延迟时间也为4tck时,这时候第一命令信号CMD_IN中的第二个命令没有通过第二命令信号OUTPUT输出正确的电平,导致DQ端无法设置正确的终端电阻的阻值。从图13可以看出,对于第一命令信号CMD_IN中的第二个命令,第二个命令对应的CMD_delay处于低电平的时候,正好第三中间信号CMD_shift也是处于低电平(这是因为两个命令之间的时间间隔为4tck,而信号移位也恰好为4tck),所以在CMD_delay的第二个脉冲结束时刻,第二命令信号OUTPUT由低电平变为高电平;但是此时第三中间信号CMD_shift仍为低电平,根据SR锁存器514和第二非门515的逻辑处理,最终输出的第二命令信号OUTPUT仍为高电平,并且之后也没有发生第二命令信号OUTPUT变为低电平的情况,即第二个命令对应的OUTPUT保持高电平。也就是说,在第二命令信号OUTPUT中,仅对应第一个命令输出为低电平有效的脉冲并且拓宽脉冲宽度,以覆盖第一个命令对应的DQ数据写入的过程;但是第二个命令没有通过第二命令信号OUTPUT输出正确的电平,导致DQ端无法设置正确的终端电阻的阻值。For the command generating circuit 30 shown in FIG11 , 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 inability to set the correct terminal resistance value at the DQ end. As can be seen from FIG. 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 4tck, and the signal shift is also exactly 4tck), so at the end of the second pulse of CMD_delay, the second command signal OUTPUT changes from a low level to a high level; but 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 second command signal OUTPUT finally output is still at a high level, and there is no situation where the second command signal OUTPUT changes to a low level afterwards, that is, the OUTPUT corresponding to the second command remains at a high level. That is to say, in the second command signal OUTPUT, only the pulse corresponding to the first command is output as a low-level valid pulse and the pulse width is widened to cover the process of writing the DQ data corresponding to the first command; but the second command does not output the correct level through the second command signal OUTPUT, resulting in the DQ end being unable to set the correct resistance value of the terminal resistor.

综上可知,在本公开实施例中,当连续的两个ODT命令到来时,如果两个ODT命令之间的时间间隔为特定数量的预设时钟周期,并且ODT命令的移位长度也恰好为特定数量的预设时钟周期,例如特定数量为4;那么对于该命令产生电路,最终输出的ODT脉冲中会出现第二个ODT命令无输出现象。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.

基于此,针对前述实施例所述的命令产生电路30,图14为本公开实施例提供的另一种命令产生电路30的详细结构示意图。如图14所示,命令产生电路30可以包括第一与非门601、第一非门602、第一触发器603、第二触发器604、第三触发器605、第四触发器606、第五触发器607、第六触发器608、第七触发器609、第八触发器610、第九触发器611、第一选择单元612、第二选择单元613、SR锁存器614和第二非门615,具体连接关系参见图14。Based on this, for the command generating circuit 30 described in the above embodiment, FIG14 is a detailed structural diagram of another command generating circuit 30 provided in the embodiment of the present disclosure. As shown in FIG14, the command generating circuit 30 may include a first NAND gate 601, a first NOT gate 602, a first trigger 603, a second trigger 604, a third trigger 605, a fourth trigger 606, a fifth trigger 607, a sixth trigger 608, a seventh trigger 609, an eighth trigger 610, a ninth trigger 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.

在图14中,第一子控制信号可以用SEL1表示,第二子控制信号可以用SEL0表示;第一命令信号用CMD_IN表示,第一时钟信号用CLK1表示,时钟门控信号用CLK_Gating表示,第二时钟信号用CLK表示,第一中间信号可以用Q1表示,第二中间信号可以用Q2表示,第三中间信号可以用CMD_shift表示;第一延迟信号可以用CMD_delay表示;第二命令信号可以用OUTPUT表示。另外,与图11所示的命令产生电路30相比,在图14中,第九触发器611的置位端(SET)用于接收第一延迟信号CMD_delay。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 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 delay signal can be represented by CMD_delay; and the second command signal can be represented by OUTPUT. In addition, compared with 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.

此外,还需要注意的是,第一中间信号Q1与第一延迟信号CMD_delay之间存在由于传输路径带来的略微延迟。通常情况下,这点延迟可以忽略不计,也就是说,在本公开实施例中,第一中间信号Q1与 第一延迟信号CMD_delay可以看作是一个信号。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. Usually, 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 are slightly delayed due to the transmission path. The first delay signal CMD_delay may be regarded as one signal.

还需要说明的是,对于图14而言,在第一命令信号CMD_IN为连续的两个命令,且两个命令之间的时间间隔为4tck;以及第一子控制信号SEL1的取值为1,第二子控制信号SEL0的取值为0时,此时对应的信号时序如图15所示。其中,通过第一触发器603对第一命令信号CMD_IN的采样处理,可以得到第一延迟信号CMD_delay,这里的第一延迟信号CMD_delay与第一命令信号CMD_IN之间存在延迟,该延迟时间可以是由第一触发器603的器件延迟以及传输路径延迟共同产生的。It should also be noted that, for FIG. 14 , when the first command signal CMD_IN is two consecutive commands and the time interval between the two commands is 4tck; and 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 FIG. 15 . Among them, the first delay signal CMD_delay can be obtained by the sampling process of the first command signal CMD_IN by the first trigger 603. Here, there is a delay between the first delay signal CMD_delay and the first command signal CMD_IN, and the delay time can be jointly generated by the device delay of the first trigger 603 and the transmission path delay.

进一步地,由于第一子控制信号SEL1的取值为1,第二子控制信号SEL0的取值为0,那么对于第一中间信号Q1来说,在经过第二触发器604的采样处理后,可以得到第五中间信号Q3;然后第五中间信号Q3继续经过第七触发器609、第八触发器610以及第九触发器611的采样处理,从而能够生成第三中间信号CMD_shift。紧接着,通过SR锁存器614和第二非门615对第一命令信号进行脉冲拓宽处理,具体可以是由第一延迟信号CMD_delay的第一个下降沿产生第二命令信号OUTPUT的下降沿,由第三中间信号CMD_shift的下降沿产生第二命令信号OUTPUT的上升沿,而且第二命令信号OUTPUT的脉冲宽度等于8tck(即八个预设时钟周期)。其中,这里的下降沿是指由高电平变为低电平的时候,上升沿是指由低电平变为高电平的时候。Further, since the value of the first sub-control signal SEL1 is 1 and the value of the second sub-control signal SEL0 is 0, then for the first intermediate signal Q1, after being sampled by the second trigger 604, the fifth intermediate signal Q3 can be obtained; then the fifth intermediate signal Q3 continues to be sampled by the seventh trigger 609, the eighth trigger 610 and the ninth trigger 611, so as to generate the third intermediate signal CMD_shift. Next, the first command signal is pulse widened 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, and the pulse width of the second command signal OUTPUT is equal to 8tck (i.e., eight preset clock cycles). The falling edge here refers to the time when the high level changes to the low level, and the rising edge refers to the time when the low level changes to the high level.

另外,基于图14所示的命令产生电路30,如果在接收到连续的两个命令,且两个命令之间的时间间隔为4tck,并且第三中间信号CMD_shift与第一延迟信号CMD_delay之间的延迟时间也为4tck时,从图15可以看出,对于第一命令信号CMD_IN中的第二个命令,第二个命令对应的第一延迟信号CMD_delay处于低电平的时候,第三中间信号CMD_shift保持为高电平(这是因为CMD_delay作为第九触发器611的置位信号导致的),所以在CMD_delay的第二个脉冲结束时刻,第二命令信号OUTPUT仍然保持低电平;根据SR锁存器614和第二非门615的逻辑处理,最终输出的第二命令信号OUTPUT为低电平,直至在第三中间信号CMD_shift的下降沿时刻,第二命令信号OUTPUT由低电平变为高电平,这时候第二命令信号OUTPUT的低电平有效的脉冲宽度为8tck。In addition, based on the command generating circuit 30 shown in FIG14 , 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, it can be seen from FIG15 that for the second command in the first command signal CMD_IN, when the first delay 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 is the set signal of the ninth flip-flop 611), so at the end of the second pulse of CMD_delay, the second command signal OUTPUT still 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 finally output at a low level until the second command signal OUTPUT changes from a low level to a high level at the falling edge of the third intermediate signal CMD_shift, and at this time, the pulse width of the second command signal OUTPUT that is effective at a low level is 8tck.

在本公开实施例中,由于第一延迟信号CMD_delay作为第九触发器611的置位信号,可以在第一延迟信号CMD_delay处于低电平时,能够保持第三中间信号CMD_shift始终为高电平。这样,通过第一延迟信号CMD_delay来对第三中间信号CMD_shift进行设置,可以有效防止通过SR锁存器和第二非门之后输出的第二命令信号OUTPUT被重置为高电平,使得第二命令信号OUTPUT处于低电平时的脉冲宽度等于8tck,从而能够避免存在连续的两个ODT命令时第二个ODT命令无输出现象,从而能够正确的设置终端电阻的阻值。In the embodiment of the present disclosure, since the first delay signal CMD_delay is used as the set signal of the ninth trigger 611, the third intermediate signal CMD_shift can be kept at a high level all the time when the first delay signal CMD_delay is at a low level. In this way, by setting the third intermediate signal CMD_shift through the first delay signal CMD_delay, 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, so that the pulse width of the second command signal OUTPUT when it is at a low level is equal to 8tck, thereby avoiding the phenomenon that the second ODT command has no output when there are two consecutive ODT commands, so that the resistance value of the terminal resistor can be correctly set.

本实施例提供了一种命令产生电路,该命令产生电路可以支持BL8、BL16、BL32等数据突发长度;以及在处于WR/NTRD/NTWR模式时,DQ管脚处可以设置合适的终端电阻。如此,当存在连续的两个ODT命令时,不仅可以避免第二个ODT命令无输出现象,而且还能够减小信号在传输过程中的能量损耗和反射,提高了信号完整性,进而提高了存储器性能。This embodiment provides a command generation circuit, which can support data burst lengths such as BL8, BL16, and BL32; and when in WR/NTRD/NTWR mode, a suitable terminal resistor can be set at the DQ pin. In this way, when there are two consecutive ODT commands, not only can the second ODT command be prevented from having no output, but also the energy loss and reflection of the signal during transmission can be reduced, the signal integrity is improved, and the memory performance is improved.

本公开的又一实施例中,参见图16,其示出了本公开实施例提供的一种存储器的组成结构示意图。如图16所示,存储器160至少包括如前述实施例所述的命令产生电路30。In another embodiment of the present disclosure, referring to Fig. 16, a schematic diagram of the composition structure of a memory provided by the embodiment of the present disclosure is shown. As shown in Fig. 16, the memory 160 at least includes the command generating circuit 30 as described in the above embodiment.

在一些实施例中,存储器160可以包括DRAM芯片。其中,对于DRAM芯片来说,不仅可以符合DDR、DDR2、DDR3、DDR4、DDR5、DDR6等内存规格,还可以符合LPDDR、LPDDR2、LPDDR3、LPDDR4、LPDDR5、LPDDR6等内存规格,这里对此也不作具体限定。In some embodiments, the memory 160 may include a DRAM chip. The DRAM chip may not only comply with memory specifications such as DDR, DDR2, DDR3, DDR4, DDR5, and DDR6, but may also comply with memory specifications such as LPDDR, LPDDR2, LPDDR3, LPDDR4, LPDDR5, and LPDDR6, which are not specifically limited here.

在本公开实施例中,对于该存储器160而言,将第一中间信号作为置位信号,能够在第一中间信号处于低电平时,使得采样得到的第三中间信号保持为高电平,从而当存在连续的两个ODT命令时,可以有效避免第二个ODT命令出现无输出现象;另外,第二命令信号的脉冲宽度等于第三中间信号与第一中间信号之间的移位长度,而第二命令信号的脉冲宽度会受BL的影响,根据BL的长度大小,可以适应性调整第二命令信号的脉冲宽度;另外,考虑到控制器设置的片内终结补偿值,还可以继续对第二命令信号进行脉宽调整处理,以使得根据最终产生的ODT脉冲来控制终端电阻的阻值切换,如此还能够减小信号在传输过程中的能量损耗和反射,提高了信号完整性,进而提高了存储器性能。In the embodiment of the present disclosure, for the memory 160, the first intermediate signal is used as a set signal, so that when the first intermediate signal is at a low level, the sampled third intermediate signal can be maintained at a high 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, and the pulse width of the second command signal can be adaptively adjusted according to the length of BL; 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 is controlled according to the finally generated ODT pulse, which can also reduce the energy loss and reflection of the signal during transmission, improve the signal integrity, and thus improve the memory performance.

以上所述,仅为本公开的较佳实施例而已,并非用于限定本公开的保护范围。The above description is only a preferred embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure.

需要说明的是,在本公开中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.

本公开所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法 实施例。The methods disclosed in the several method embodiments provided in this disclosure can be combined arbitrarily without conflict to obtain new methods. Example.

本公开所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in several product embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments.

本公开所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in several method or device embodiments provided in the present disclosure may be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

以上所述,仅为本公开的一些实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。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 substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure.

工业实用性Industrial Applicability

本实施例提供了一种命令产生电路及存储器,在该命令产生电路中,第一采样电路用于接收第一命令信号和第一时钟信号,根据第一时钟信号对第一命令信号进行采样处理,得到第一中间信号;基础延时电路用于接收第一中间信号、第一时钟信号和第一控制信号,根据第一控制信号、第一时钟信号对第一中间信号进行采样及移位处理,得到第二中间信号;第二采样电路用于接收第一时钟信号、第一中间信号和第二中间信号,根据第一中间信号对第二采样电路进行置位处理,以及根据第一时钟信号对第二中间信号进行采样处理,得到第三中间信号;命令调整电路用于接收第一中间信号和第三中间信号,根据第一中间信号和第三中间信号对第一命令信号进行脉宽调整处理,生成第二命令信号,且第二命令信号的脉冲宽度大于第一命令信号的脉冲宽度。这样,通过基础延时电路可以实现对第一中间信号的采样及移位处理,而且所得到的第二中间信号与第一中间信号之间的移位长度受第一控制信号的影响,同时第一控制信号的取值与BL之间具有关联关系,也即第二中间信号与第一中间信号之间的移位长度与BL具有关联关系;另外,由于第一中间信号作为第二采样电路的置位信号,能够在第一中间信号处于低电平时,使得采样得到的第三中间信号保持为高电平,从而当存在连续的两个ODT命令时,不仅可以避免第二个ODT命令出现无输出现象,而且第二命令信号的脉冲宽度等于第三中间信号与第一中间信号之间的移位长度,即第二命令信号的脉冲宽度也受BL的影响,根据BL的长度大小,可以适应性调整第二命令信号的脉冲宽度;另外,考虑到控制器设置的片内终结补偿值,还可以继续对第二命令信号进行脉宽调整处理,以使得根据最终产生的ODT脉冲来控制终端电阻的阻值切换,还能够减小信号在传输过程中的能量损耗和反射,提高了信号完整性,进而提高了存储器性能。 The present embodiment provides a command generating circuit and a memory, in which a first sampling circuit 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; a basic delay circuit is used 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; a second sampling circuit is used to receive a first clock signal, a first intermediate signal and a second intermediate signal, and 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; a command adjustment circuit is used to receive a first intermediate signal and a third intermediate signal, and perform pulse width adjustment processing on the first command signal according to the first intermediate signal and the third intermediate signal to generate a second command signal, and a pulse width of the second command signal is greater than a pulse width of the first command signal. In this way, the sampling and shift processing of the first intermediate signal can be realized through the basic delay circuit, and the shift length between the obtained second intermediate signal and the first intermediate signal is affected by the first control signal, and the value of the first control signal is associated with BL, that is, the shift length between the second intermediate signal and the first intermediate signal is associated with BL; in addition, since the first intermediate signal is used as the set signal of the second sampling circuit, when the first intermediate signal is at a low level, the sampled third intermediate signal can be kept at a high level, so that when there are two consecutive ODT commands, not only can the second ODT command be prevented from having no output, but the pulse width of the second command signal is equal to the shift length between the third intermediate signal and the first intermediate signal, that is, the pulse width of the second command signal is also affected by BL, and the pulse width of the second command signal can be adaptively adjusted according to the length of BL; 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 is controlled according to the finally generated ODT pulse, and the energy loss and reflection of the signal during transmission can be reduced, the signal integrity is improved, and the memory performance is improved.

Claims (15)

一种命令产生电路(30),所述命令产生电路(30)包括第一采样电路(301)、基础延时电路(302)、第二采样电路(303)和命令调整电路(304),所述第一采样电路(301)的输出端与所述基础延时电路(302)的输入端连接,所述基础延时电路(302)的输出端与所述第二采样电路(303)的输入端连接,且所述第一采样电路(301)的输出端和所述第二采样电路(303)的输出端均与所述命令调整电路(304)连接,其中: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: 所述第一采样电路(301),用于接收第一命令信号和第一时钟信号,根据所述第一时钟信号对所述第一命令信号进行采样处理,得到第一中间信号;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; 所述基础延时电路(302),用于接收所述第一中间信号、所述第一时钟信号和第一控制信号,根据所述第一控制信号、所述第一时钟信号对所述第一中间信号进行采样及移位处理,得到第二中间信号;其中,所述第二中间信号与所述第一中间信号之间的移位长度与所述第一控制信号具有关联关系;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; 所述第二采样电路(303),用于接收所述第一时钟信号、所述第一中间信号和所述第二中间信号,根据所述第一中间信号对所述第二采样电路进行置位处理,以及根据所述第一时钟信号对所述第二中间信号进行采样处理,得到第三中间信号;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; 所述命令调整电路(304),用于接收所述第一中间信号和所述第三中间信号,根据所述第一中间信号和所述第三中间信号对所述第一命令信号进行脉宽调整处理,生成第二命令信号,且所述第二命令信号的脉冲宽度大于所述第一命令信号的脉冲宽度。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. 根据权利要求1所述的命令产生电路(30),其中,所述第一控制信号的取值与数据突发长度BL具有关联关系。The command generating circuit (30) according to claim 1, wherein the value of the first control signal is associated with a data burst length BL. 根据权利要求1所述的命令产生电路(30),其中,所述第二命令信号的脉冲宽度等于所述第三中间信号与所述第一中间信号之间的移位长度,且所述第二命令信号的脉冲宽度与数据突发长度BL具有关联关系;其中: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: 在所述数据突发长度BL增大时,根据所述第一控制信号控制所述第二中间信号与所述第一中间信号之间的移位长度增加,以使得所述第二命令信号的脉冲宽度增宽;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; 在所述数据突发长度BL减小时,根据所述第一控制信号控制所述第二中间信号与所述第一中间信号之间的移位长度减小,以使得所述第二命令信号的脉冲宽度减窄。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. 根据权利要求1至3中任一项所述的命令产生电路(30),其中,所述命令产生电路(30)还包括时钟处理电路(305),其中: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: 所述时钟处理电路(305),用于接收时钟门控信号和第二时钟信号,根据所述时钟门控信号对所述第二时钟信号进行控制处理,生成所述第一时钟信号;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. 根据权利要求4所述的命令产生电路(30),其中,所述时钟处理电路(305)包括第一与非门(A1)和第一反相模块(A2),其中:The command generating circuit (30) according to claim 4, wherein the clock processing circuit (305) comprises a first NAND gate (A1) and a first inverting module (A2), wherein: 所述第一与非门(A1)的第一输入端用于接收所述时钟门控信号,所述第一与非门(A1)的第二输入端用于接收所述第二时钟信号,所述第一与非门(A1)的输出端与所述第一反相模块(A2)的输入端连接,所述第一反相模块(A2)的输出端用于输出所述第一时钟信号。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. 根据权利要求1所述的命令产生电路(30),其中,所述第一采样电路(301)包括第一触发器(A3),其中:The command generating circuit (30) according to claim 1, wherein the first sampling circuit (301) comprises a first trigger (A3), wherein: 所述第一触发器(A3)的输入端用于接收所述第一命令信号,所述第一触发器(A3)的时钟端用于接收所述第一时钟信号,所述第一触发器(A3)的第一输出端用于输出所述第一中间信号;其中,所述第一触发器(A3)的第一输出端用于反映被所述第一时钟信号进行采样后的所述第一触发器(A3)的输入端的值。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. 根据权利要求1至6中任一项所述的命令产生电路(30),其中,所述基础延时电路(302)包括M个第二触发器(U1,U2,…UM)和N个选择单元(D1,D2,…DN),且M个所述第二触发器的时钟端均用于接收所述第一时钟信号,所述第一控制信号中的每一个子控制信号分别与N个所述选择单元的控制端连接;其中: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: 第一个所述第二触发器(U1)的输入端用于接收所述第一中间信号,第一个所述第二触发器(U1)的第一输出端与第二个所述第二触发器(U2)的输入端、N个所述选择单元的第一输入端分别连接;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; 第k个所述第二触发器(Uk)的第一输出端与下一个所述第二触发器的输入端连接,直至第j个所述第二触发器(Uj)的第一输出端与第i个所述选择单元(Di)的第二输入端连接,第i个所述选择单元 (Di)的输出端与第j+1个所述第二触发器(Uj+1)的输入端连接,第j+1个所述第二触发器(Uj+1)的第一输出端与下一个所述第二触发器的输入端连接;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; 第M个所述第二触发器(UM)的第一输出端与第N个所述选择单元(DN)的第二输入端连接,第N个所述选择单元(DN)的输出端用于输出所述第二中间信号;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; 其中,i为大于或等于1且小于N的整数,k为大于1且小于j的整数,j为大于k且小于M的整数;每一个所述第二触发器的第一输出端用于反映被所述第一时钟信号进行采样后的所述第二触发器的输入端的值。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. 根据权利要求7所述的命令产生电路(30),其中,在M的取值等于7,N的取值等于2时,所述第一控制信号包括第一子控制信号和第二子控制信号,且七个所述第二触发器的时钟端均用于接收所述第一时钟信号;其中: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: 第一个所述选择单元(D1)的控制端与所述第一子控制信号连接,第二个所述选择单元(D2)的控制端与所述第二子控制信号连接;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; 第一个所述第二触发器(U1)的输入端用于接收所述第一中间信号,第一个所述第二触发器(U1)的第一输出端分别与第二个所述第二触发器(U2)的输入端、第一个所述选择单元(D1)的第一输入端和第二个所述选择单元(D2)的第一输入端连接;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); 第二个所述第二触发器(U2)的第一输出端与第三个所述第二触发器(U3)的输入端连接,第三个所述第二触发器(U3)的第一输出端与第四个所述第二触发器(U4)的输入端连接,第四个所述第二触发器(U4)的第一输出端与第五个所述第二触发器(U5)的输入端连接,第五个所述第二触发器(U5)的第一输出端与第一个所述选择单元(D1)的第二输入端连接,第一个所述选择单元(D1)的输出端与第六个所述第二触发器(U6)的输入端连接,第六个所述第二触发器(U6)的第一输出端与第七个所述第二触发器(U7)的输入端连接,第七个所述第二触发器(U7)的第一输出端与第二个所述选择单元(D2)的第二输入端连接,第二个所述选择单元(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. 根据权利要求8所述的命令产生电路(30),其中,所述第二采样电路(303)包括第三触发器(U8),其中:The command generating circuit (30) according to claim 8, wherein the second sampling circuit (303) comprises a third trigger (U8), wherein: 所述第三触发器(U8)的输入端用于接收所述第二中间信号,所述第三触发器(U8)的时钟端用于接收所述第一时钟信号,所述第三触发器(U8)的置位端用于接收所述第一中间信号,所述第三触发器(U8)的第一输出端用于输出所述第三中间信号;其中,所述第三触发器(U8)的第一输出端用于反映被所述第一时钟信号进行采样后的所述第三触发器(U8)的输入端的值。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. 根据权利要求9所述的命令产生电路(30),其中,The command generating circuit (30) according to claim 9, wherein: 在所述第一子控制信号和所述第二子控制信号均处于第二电平状态时,所述第三中间信号与所述第一中间信号之间的移位长度等于8个预设时钟周期;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; 在所述第一子控制信号处于第一电平状态,且所述第二子控制信号处于第二电平状态时,所述第三中间信号与所述第一中间信号之间的移位长度等于4个预设时钟周期;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; 在所述第一子控制信号处于第二电平状态,且所述第二子控制信号处于第一电平状态时,所述第三中间信号与所述第一中间信号之间的移位长度等于2个预设时钟周期;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. 根据权利要求9所述的命令产生电路(30),其中,The command generating circuit (30) according to claim 9, wherein: 所述第三触发器(U8),用于在所述第一中间信号处于第二电平状态时,控制所述第三中间信号处于第一电平状态。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. 根据权利要求4、10或11所述的命令产生电路(30),其中,所述第一电平状态为高电平,所述第二电平状态为低电平。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. 根据权利要求1至12中任一项所述的命令产生电路(30),其中,所述命令调整电路(304)包括SR锁存器(401)和第二反相模块(402),所述SR锁存器(401)包括第二与非门(B1)和第三与非门(B2);其中:The command generating circuit (30) according to any one of claims 1 to 12, wherein the command adjusting circuit (304) comprises an SR latch (401) and a second inverting module (402), and the SR latch (401) comprises a second NAND gate (B1) and a third NAND gate (B2); wherein: 所述第二与非门(B1)的第一输入端用于接收所述第一中间信号,所述第二与非门(B1)的第二输入端与所述第三与非门(B2)的输出端连接;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); 所述第三与非门(B2)的第二输入端用于接收所述第三中间信号,所述第三与非门(B2)的第一输入端与所述第二与非门(B1)的输出端连接,且所述第二与非门(B1)的输出端还与所述第二反相模块(402)的输入端连接,所述第二反相模块(402)的输出端用于输出所述第二命令信号。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. 根据权利要求1至13中任一项所述的命令产生电路(30),其中,所述命令产生电路(30)还包括延迟移位电路(306),其中:The command generation circuit (30) according to any one of claims 1 to 13, wherein the command generation circuit (30) further comprises a delay shift circuit (306), wherein: 所述延迟移位电路(306),用于接收所述第一时钟信号和所述第二命令信号,根据所述第一时钟信号对所述第二命令信号进行采样及移位处理,得到第三命令信号;其中,所述第三命令信号用于控制终 端电阻的阻值切换。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. 一种存储器(160),所述存储器(160)至少包括如权利要求1至14中任一项所述的命令产生电路(30)。 A memory (160), the memory (160) comprising at least the command generating circuit (30) according to any one of claims 1 to 14.
PCT/CN2023/131540 2023-04-11 2023-11-14 Command generation circuit and memory WO2024212509A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310381529.1A CN116092546B (en) 2023-04-11 2023-04-11 Command generating circuit and memory
CN202310381529.1 2023-04-11

Publications (1)

Publication Number Publication Date
WO2024212509A1 true WO2024212509A1 (en) 2024-10-17

Family

ID=86212397

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/131540 WO2024212509A1 (en) 2023-04-11 2023-11-14 Command generation circuit and memory

Country Status (2)

Country Link
CN (1) CN116092546B (en)
WO (1) WO2024212509A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116092546B (en) * 2023-04-11 2023-06-09 长鑫存储技术有限公司 Command generating circuit and memory
CN119068942A (en) * 2023-05-24 2024-12-03 长鑫存储技术有限公司 Control circuit and memory
CN119296606A (en) * 2023-07-03 2025-01-10 长鑫存储技术有限公司 Control circuit and memory
CN117331882B (en) * 2023-12-01 2024-03-29 深圳比特微电子科技有限公司 Chip configuration method and device of chip board, server, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020154989A1 (en) * 2019-01-30 2020-08-06 华为技术有限公司 Method for adjusting duty cycle, controller chip, and flash memory
CN115295040A (en) * 2022-10-08 2022-11-04 睿力集成电路有限公司 Control circuit, control method, and semiconductor memory
CN115798539A (en) * 2021-09-10 2023-03-14 长鑫存储技术有限公司 Signal shielding circuit and semiconductor memory
CN116092546A (en) * 2023-04-11 2023-05-09 长鑫存储技术有限公司 Command generating circuit and memory

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3703372B2 (en) * 1999-07-21 2005-10-05 松下電器産業株式会社 Semiconductor control device
JP4754704B2 (en) * 2001-03-27 2011-08-24 島田理化工業株式会社 Automatic sample hold device and pulse modulation high frequency signal generator
US6600681B1 (en) * 2002-06-10 2003-07-29 Lsi Logic Corporation Method and apparatus for calibrating DQS qualification in a memory controller
KR20060089357A (en) * 2005-02-04 2006-08-09 삼성전자주식회사 On-die termination synchronous buffer and control method in on-die termination circuit
KR102392055B1 (en) * 2017-08-09 2022-04-28 삼성전자주식회사 Memory device for efficiently determining whether or not to perform a re-training operation and memory systme including the same
KR102409744B1 (en) * 2018-02-28 2022-06-17 에스케이하이닉스 주식회사 Data receiving circuit
CN115602215B (en) * 2021-07-09 2025-07-04 长鑫存储技术有限公司 Enable control circuit and semiconductor memory
CN114678056A (en) * 2022-03-23 2022-06-28 长鑫存储技术有限公司 A signal sampling circuit and semiconductor memory

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020154989A1 (en) * 2019-01-30 2020-08-06 华为技术有限公司 Method for adjusting duty cycle, controller chip, and flash memory
CN115798539A (en) * 2021-09-10 2023-03-14 长鑫存储技术有限公司 Signal shielding circuit and semiconductor memory
CN115295040A (en) * 2022-10-08 2022-11-04 睿力集成电路有限公司 Control circuit, control method, and semiconductor memory
CN116092546A (en) * 2023-04-11 2023-05-09 长鑫存储技术有限公司 Command generating circuit and memory

Also Published As

Publication number Publication date
CN116092546B (en) 2023-06-09
CN116092546A (en) 2023-05-09

Similar Documents

Publication Publication Date Title
WO2024212509A1 (en) Command generation circuit and memory
CN109643566B (en) Apparatus and method for adjusting delay of command signal path
US7027336B2 (en) Semiconductor memory device for controlling output timing of data depending on frequency variation
US7786752B2 (en) Memory systems, on-die termination (ODT) circuits, and method of ODT control
KR100578649B1 (en) On-die termination control circuit and on-die termination control signal generation method
US9373376B2 (en) Latency control circuit and semiconductor apparatus using the same
JP5474458B2 (en) Semiconductor device and data processing system including the same
KR20110113737A (en) Mesochronous Signaling System with Core-Clock Synchronization
WO2023279510A1 (en) Enable control circuit and semiconductor memory
US11146275B2 (en) Signal generation circuit and a semiconductor apparatus using the signal generation circuit
US7227812B2 (en) Write address synchronization useful for a DDR prefetch SDRAM
US11881254B2 (en) Enable control circuit and semiconductor memory
US11495281B2 (en) Write interamble counter
US7394707B2 (en) Programmable data strobe enable architecture for DDR memory applications
CN110827889A (en) Buffer control circuit of memory device
WO2024197994A1 (en) Column control circuit and storage apparatus
WO2024124659A1 (en) Control circuit and method therefor, and memory
WO2024124678A1 (en) Control circuit and method therefor, and memory
WO2024152481A1 (en) Delay generation circuit and method, and memory
CN118899012A (en) Control circuit and memory
WO2024164463A9 (en) Control circuit and memory
WO2024108775A1 (en) Signal generation circuit, storage system and method
WO2024240143A1 (en) Control circuit and memory
Yoo High-speed DRAM interface
Charagulla et al. DesignCon East 2004

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23932780

Country of ref document: EP

Kind code of ref document: A1