[go: up one dir, main page]

CN116564380B - Correction method and device for gate pulse signals in DRAM (dynamic random Access memory) - Google Patents

Correction method and device for gate pulse signals in DRAM (dynamic random Access memory) Download PDF

Info

Publication number
CN116564380B
CN116564380B CN202310540538.0A CN202310540538A CN116564380B CN 116564380 B CN116564380 B CN 116564380B CN 202310540538 A CN202310540538 A CN 202310540538A CN 116564380 B CN116564380 B CN 116564380B
Authority
CN
China
Prior art keywords
pulse signal
gate pulse
sample value
phase
value sequence
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202310540538.0A
Other languages
Chinese (zh)
Other versions
CN116564380A (en
Inventor
钱阔
王晓阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Kuixin Integrated Circuit Design Co ltd
Original Assignee
Shanghai Kuixin Integrated Circuit Design Co ltd
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 Shanghai Kuixin Integrated Circuit Design Co ltd filed Critical Shanghai Kuixin Integrated Circuit Design Co ltd
Priority to CN202310540538.0A priority Critical patent/CN116564380B/en
Publication of CN116564380A publication Critical patent/CN116564380A/en
Application granted granted Critical
Publication of CN116564380B publication Critical patent/CN116564380B/en
Priority to TW113117466A priority patent/TWI862453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G11C11/407Auxiliary circuits, e.g. for addressing, decoding, driving, writing, sensing or timing for memory cells of the field-effect type
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/22Read-write [R-W] timing or clocking circuits; Read-write [R-W] control signal generators or management 
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Hardware Design (AREA)
  • Dram (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

The application provides a correction method and a correction device for a gate pulse signal in a DRAM (dynamic random access memory), belonging to the technical field of memories, wherein the method comprises the following steps: determining a maximum phase offset based on the clock period of the DRAM and determining a phase adjustment step based on the maximum phase offset; performing phase adjustment on the initial gating pulse signal based on the phase adjustment step length to obtain a first gating pulse signal set and a second gating pulse signal set; sampling the data strobe signal corresponding to the current correction node based on the gating pulse signals in the first gating pulse signal set and the second gating pulse signal set respectively to obtain a first sampling value sequence and a second sampling value sequence; and determining a phase correction value of the gating pulse signal based on the first sampling value sequence and the second sampling value sequence, correcting the initial gating pulse signal to obtain a target gating pulse signal, and taking the target gating pulse signal as the gating pulse signal corresponding to the current correction node, so that the correction can be performed under the condition of not influencing the working of the DRAM, and the working efficiency of the DRAM is improved.

Description

DRAM中门控脉冲信号的校正方法和装置Method and device for correcting gate pulse signals in DRAM

技术领域Technical field

本申请涉及存储器技术领域,尤其涉及一种DRAM中门控脉冲信号的校正方法和装置。The present application relates to the field of memory technology, and in particular to a method and device for correcting gate pulse signals in DRAM.

背景技术Background technique

在对动态随机存取存储器(Dynamic Random Access Memory,DRAM)颗粒的内存进行读操作时,存储控制器需要基于存储单元生成的数据选通信号(Bidirectional datastrobe,DQS)对内存中的数据进行读取。为了确保读取数据的准确性,需获取准确的DQS有效信号。When performing a read operation on the memory of a dynamic random access memory (Dynamic Random Access Memory, DRAM) particle, the storage controller needs to read the data in the memory based on the data strobe signal (Bidirectional datastrobe, DQS) generated by the storage unit. . In order to ensure the accuracy of reading data, it is necessary to obtain accurate DQS valid signals.

针对该问题,现有技术会通过存储控制器输出一个和DQS有效信号等长的门控脉冲信号(即DQS gating信号)以对存储单元输出的DQS信号进行门控操作得到门控DQS信号(即gated DQS信号),并基于gatedDQS信号进行数据读取。为了确保gatedDQS信号为准确的DQS有效信号,需要预先对DQSgating信号进行训练。DQSgating信号的训练过程为:对DRAM颗粒的内存进行多次读操作,每次读操作对应的DQS gating信号的相位不同,将最终读取的数据与预期数据进行比对以确定读操作是否正确,并将读操作正确时对应的DQSgating信号的相位作为后续读操作的门控脉冲信号相位。To address this problem, the existing technology outputs a gating pulse signal (i.e., DQS gating signal) with the same length as the effective DQS signal through the memory controller to perform a gating operation on the DQS signal output by the memory unit to obtain a gating DQS signal (i.e., DQS gating signal). gated DQS signal), and read data based on the gatedDQS signal. In order to ensure that the gatedDQS signal is an accurate and valid DQS signal, the DQSgating signal needs to be trained in advance. The training process of the DQSgating signal is: perform multiple read operations on the memory of the DRAM particle. The phase of the DQS gating signal corresponding to each read operation is different. The final read data is compared with the expected data to determine whether the read operation is correct. And the phase of the corresponding DQSgating signal when the read operation is correct is used as the gating pulse signal phase of the subsequent read operation.

采用上述方式能够最大限度保证对DRAM颗粒中的数据进行准确读取。然而DRAM在实际工作过程中,tdqsck参数会在设计规范规定的范围内随着温度电压的变化而动态变化,即DQS信号的相位会动态变化,因此DQS gating信号的相位需要重新训练以确保获取准确的DQS有效信号。然而由于DQS gating信号的训练过程耗时较长,且需要暂停对DRAM的正常访问,因此,频繁的DQS gating信号训练将导致DRAM的工作效率严重降低。Using the above method can ensure the accurate reading of data in DRAM particles to the greatest extent. However, during the actual operation of DRAM, the tdqsck parameters will dynamically change with changes in temperature and voltage within the range specified by the design specifications, that is, the phase of the DQS signal will dynamically change, so the phase of the DQS gating signal needs to be retrained to ensure accurate acquisition. DQS valid signal. However, because the training process of the DQS gating signal takes a long time and requires the suspension of normal access to the DRAM, frequent DQS gating signal training will cause a serious reduction in the working efficiency of the DRAM.

发明内容Contents of the invention

本申请提供一种DRAM中门控脉冲信号的校正方法和装置,以用于解决现有门控脉冲信号的校正方式降低DRAM的工作效率的问题。The present application provides a method and device for correcting a gate pulse signal in a DRAM to solve the problem that the existing correction method of the gate pulse signal reduces the working efficiency of the DRAM.

本申请提供一种DRAM中门控脉冲信号的校正方法,所述方法包括:This application provides a method for correcting gate pulse signals in DRAM. The method includes:

基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;Determine the maximum phase offset based on the clock cycle of the DRAM, and determine the phase adjustment step based on the maximum phase offset;

基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;The initial gating pulse signal is phase adjusted based on the phase adjustment step to obtain the first gating pulse signal set and the second gating pulse signal set; the initial gating pulse signal is the gating corresponding to the previous correction node. Pulse signal;

分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;Sampling the data strobe signal corresponding to the current correction node based on the gating pulse signal in the first gating pulse signal set and the second gating pulse signal set respectively to obtain the first sampling value sequence and the second sampling value sequence;

基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号。Determine the phase correction value of the gate pulse signal based on the first sample value sequence and the second sample value sequence, correct the initial gate pulse signal based on the phase correction value to obtain the target gate pulse signal, and The target gating pulse signal is used as the gating pulse signal corresponding to the current correction node.

根据本申请提供的一种DRAM中门控脉冲信号的校正方法,所述最大相位偏移量为DRAM的时钟周期的一半对应的相位偏移量,相应的,所述相位调节步长为所述最大相位偏移量与预设的相位调节档位数的商。According to a method for correcting gate pulse signals in DRAM provided by this application, the maximum phase offset is the phase offset corresponding to half of the clock cycle of the DRAM. Correspondingly, the phase adjustment step is the The quotient of the maximum phase offset and the preset number of phase adjustment gears.

根据本申请提供的一种DRAM中门控脉冲信号的校正方法,所述基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合,具体包括:According to a method for correcting gating pulse signals in DRAM provided by this application, the phase of the initial gating pulse signal is adjusted based on the phase adjustment step to obtain a first gating pulse signal set and a second gating pulse. Signal collection, specifically including:

基于所述相位调节步长将初始门控脉冲信号向左偏移N次以得到第一门控脉冲信号集合,并基于所述相位调节步长将初始门控脉冲信号向右偏移N次以得到第二门控脉冲信号集合;其中,N为所述预设的相位调节档位数。The initial gate pulse signal is shifted to the left N times based on the phase adjustment step to obtain the first gate pulse signal set, and the initial gate pulse signal is shifted to the right N times based on the phase adjustment step to obtain the first gate pulse signal set. A second set of gated pulse signals is obtained; where N is the preset number of phase adjustment gears.

根据本申请提供的一种DRAM中门控脉冲信号的校正方法,所述第一门控脉冲信号集合中包括N次向左偏移对应的N个门控脉冲信号,所述第二门控脉冲信号集合中包括N次向右偏移对应的N个门控脉冲信号。According to a method for correcting gate pulse signals in DRAM provided by this application, the first gate pulse signal set includes N gate pulse signals corresponding to N shifts to the left, and the second gate pulse signal The signal set includes N gate pulse signals corresponding to N shifts to the right.

根据本申请提供的一种DRAM中门控脉冲信号的校正方法,所述分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列,具体包括:According to a method for correcting gate pulse signals in DRAM provided by this application, the current correction node is corrected based on the gate pulse signals in the first gate pulse signal set and the second gate pulse signal set respectively. The corresponding data strobe signal is sampled to obtain the first sample value sequence and the second sample value sequence, specifically including:

基于所述第一门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第一采样值集合,并基于所述第一采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第一采样值集合中的各采样值进行排序以得到第一采样值序列;Based on the rising edges of N gate pulse signals in the first gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding first sample value set, and based on the first The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal, and sorting the sample values in the first sample value set to obtain the first sample value sequence;

基于所述第二门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第二采样值集合,并基于所述第二采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第二采样值集合中的各采样值进行排序以得到第二采样值序列。Based on the rising edges of N gate pulse signals in the second gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding second sample value set, and based on the second The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal is used to sort the sample values in the second sample value set to obtain a second sample value sequence.

根据本申请提供的一种DRAM中门控脉冲信号的校正方法,所述基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,具体包括:According to a method for correcting a gate pulse signal in a DRAM provided by this application, the step of determining the phase correction value of the gate pulse signal based on the first sample value sequence and the second sample value sequence specifically includes:

基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量;Determine the current phase offset direction and phase offset amount of the initial gate pulse signal based on the first sample value sequence and the second sample value sequence;

基于所述初始门控脉冲信号的当前相位偏移方向和相位偏移量确定门控脉冲信号的相位校正值。The phase correction value of the gate pulse signal is determined based on the current phase offset direction and phase offset amount of the initial gate pulse signal.

根据本申请提供的一种DRAM中门控脉冲信号的校正方法,所述基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量,具体包括:According to a method for correcting a gate pulse signal in a DRAM provided by this application, the current phase offset direction and phase offset of the initial gate pulse signal are determined based on the first sample value sequence and the second sample value sequence. Movement amount, specifically including:

在所述第一采样值序列中的采样值均为0,第二采样值序列中的采样值均为1的情况下,判断所述初始门控脉冲信号无偏移;When the sampled values in the first sampled value sequence are all 0 and the sampled values in the second sampled value sequence are all 1, it is determined that the initial gating pulse signal has no offset;

在所述第一采样值序列和第二采样值序列中的采样值均包括0和1的情况下,基于所述第一采样值序列和第二采样值序列中0和1的位置及数量确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量。In the case where the sample values in the first sample value sequence and the second sample value sequence both include 0 and 1, the determination is based on the positions and numbers of 0 and 1 in the first sample value sequence and the second sample value sequence. The current phase offset direction and phase offset amount of the initial gating pulse signal.

本申请还提供一种DRAM中门控脉冲信号的校正装置,所述装置包括:This application also provides a device for correcting gate pulse signals in DRAM. The device includes:

第一确定模块,用于基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;A first determination module, configured to determine the maximum phase offset based on the clock cycle of the DRAM, and determine the phase adjustment step based on the maximum phase offset;

门控脉冲信号集合生成模块,用于基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;A gated pulse signal set generation module, configured to perform phase adjustment on the initial gated pulse signal based on the phase adjustment step to obtain a first gated pulse signal set and a second gated pulse signal set; the initial gated pulse The signal is the gate pulse signal corresponding to the previous correction node;

采样值序列生成模块,用于分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;A sampling value sequence generating module, configured to sample the data strobe signal corresponding to the current correction node based on the gating pulse signal in the first gating pulse signal set and the second gating pulse signal set respectively to obtain the first a sequence of sampled values and a second sequence of sampled values;

信号校正模块,用于基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号。A signal correction module, configured to determine the phase correction value of the gate pulse signal based on the first sample value sequence and the second sample value sequence, and correct the initial gate pulse signal based on the phase correction value to obtain the target gate control pulse signal, and use the target gate control pulse signal as the gate control pulse signal corresponding to the current correction node.

本申请还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述DRAM中门控脉冲信号的校正方法的步骤。The present application also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for correcting a gate pulse signal in a DRAM as described above are implemented.

本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述DRAM中门控脉冲信号的校正方法的步骤。The present application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method for correcting a gate pulse signal in a DRAM as described above.

本申请提供的DRAM中门控脉冲信号的校正方法和装置,通过基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号,相对于现有的通过训练进行门控脉冲信号校正的方式,能够在不影响DRAM正常访问的情况下进行门控脉冲信号的快速精准校正,大大提高了DRAM的工作效率。The method and device for correcting gate pulse signals in DRAM provided by this application determine the maximum phase offset based on the clock cycle of the DRAM, and determine the phase adjustment step based on the maximum phase offset; based on the phase adjustment step Phase adjustment is performed on the initial gating pulse signal to obtain the first gating pulse signal set and the second gating pulse signal set; the initial gating pulse signal is the gating pulse signal corresponding to the previous correction node; respectively based on the The gated pulse signals in the first gated pulse signal set and the second gated pulse signal set sample the data strobe signal corresponding to the current correction node to obtain a first sampled value sequence and a second sampled value sequence; Determine the phase correction value of the gate pulse signal based on the first sample value sequence and the second sample value sequence, correct the initial gate pulse signal based on the phase correction value to obtain the target gate pulse signal, and The target gate pulse signal is used as the gate pulse signal corresponding to the current correction node. Compared with the existing method of correcting the gate pulse signal through training, the gate pulse signal can be corrected without affecting the normal access of the DRAM. Fast and accurate correction greatly improves the working efficiency of DRAM.

附图说明Description of drawings

为了更清楚地说明本申请或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in this application or the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are of the present invention. For some embodiments of the application, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.

图1是本申请提供的DRAM中门控脉冲信号的校正方法的流程示意图;Figure 1 is a schematic flow chart of the method for correcting gate pulse signals in DRAM provided by this application;

图2是本申请提供的DRAM中门控脉冲信号的校正方法对应的波形示意图;Figure 2 is a schematic waveform diagram corresponding to the correction method of the gate pulse signal in DRAM provided by this application;

图3是本申请提供的相位校正值的确定流程示意图;Figure 3 is a schematic flow chart for determining the phase correction value provided by this application;

图4是本申请提供的DRAM中门控脉冲信号的校正装置的结构示意图;Figure 4 is a schematic structural diagram of a correction device for gate pulse signals in DRAM provided by this application;

图5是本申请提供的电子设备的结构示意图。Figure 5 is a schematic structural diagram of an electronic device provided by this application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application. , not all examples. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

图1为本申请提供的DRAM中门控脉冲信号的校正方法的流程示意图,如图1所示,该方法包括:Figure 1 is a schematic flow chart of the method for correcting gate pulse signals in DRAM provided by this application. As shown in Figure 1, the method includes:

步骤101,基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长。Step 101: Determine the maximum phase offset based on the clock cycle of the DRAM, and determine the phase adjustment step based on the maximum phase offset.

具体的,所述最大相位偏移量为DRAM的时钟周期的一半对应的相位偏移量,相应的,所述相位调节步长为所述最大相位偏移量与预设的相位调节档位数的商。基于前述内容可知,DRAM在实际工作过程中,tdqsck参数会在设计规范规定的范围内随着温度电压的变化而动态变化,即DQS信号的相位会动态变化,图2是本申请提供的DRAM中门控脉冲信号的校正方法对应的波形示意图,如图2所示,为了保证读操作的准确性,需保证门控脉冲信号(即DQS gating信号)与DQS有效信号的上升沿对齐,因此,当DQS 信号的相位动态变化时,DQS gating信号的相位也必须跟随变化。基于此,本申请实施例首先基于tdqsck参数的波动范围确定DQS信号的相位波动范围,优选的,本申请实施例将DQS信号的相位波动范围设为DRAM的时钟周期的一半,基于此,要保证读操作的准确性,需保证DQS gating信号的相位调节范围与DQS信号的相位波动范围匹配,因此,本申请实施例将DRAM的时钟周期的一半对应的相位偏移量作为门控脉冲信号的最大相位偏移量(对应于最大相位调节范围)。在此基础上,出于保证实际应用过程中门控脉冲信号的调节精度,本申请实施例可以预先设置相位调节档位数(即门控脉冲信号的相位偏移量由0到最大相位偏移量对应的调节次数),基于所述最大相位偏移量和预设的相位调节档位数即可确定相位调节步长。可以理解的是,DQS信号的相位波动范围并不局限于DRAM的时钟周期的一半,在实际应用过程中,其可以基于tdqsck参数的波动范围进行灵活调整。还可以理解的是,在实际应用过程中,DQS信号的相位可能向左偏移也可能向右偏移,因此,前述最大相位偏移量实际指代单方向(即向左或向右)的最大相位偏移量。Specifically, the maximum phase offset is the phase offset corresponding to half of the clock cycle of the DRAM. Correspondingly, the phase adjustment step is the maximum phase offset and the preset number of phase adjustment gears. quotient. Based on the foregoing, it can be seen that during the actual operation of DRAM, the tdqsck parameter will dynamically change with changes in temperature and voltage within the range specified by the design specification, that is, the phase of the DQS signal will dynamically change. Figure 2 is a diagram of the DRAM provided by this application. The waveform diagram corresponding to the correction method of the gate pulse signal is shown in Figure 2. In order to ensure the accuracy of the read operation, it is necessary to ensure that the gate pulse signal (i.e., DQS gating signal) is aligned with the rising edge of the DQS valid signal. Therefore, when When the phase of the DQS signal changes dynamically, the phase of the DQS gating signal must also change accordingly. Based on this, the embodiment of the present application first determines the phase fluctuation range of the DQS signal based on the fluctuation range of the tdqsck parameter. Preferably, the embodiment of the present application sets the phase fluctuation range of the DQS signal to half of the clock cycle of the DRAM. Based on this, it is necessary to ensure The accuracy of the read operation needs to ensure that the phase adjustment range of the DQS gating signal matches the phase fluctuation range of the DQS signal. Therefore, in the embodiment of this application, the phase offset corresponding to half of the clock cycle of the DRAM is used as the maximum value of the gating pulse signal. Phase offset (corresponding to the maximum phase adjustment range). On this basis, in order to ensure the adjustment accuracy of the gate pulse signal during actual application, the embodiment of the present application can pre-set the number of phase adjustment gears (that is, the phase offset of the gate pulse signal from 0 to the maximum phase offset The number of adjustments corresponding to the amount), the phase adjustment step can be determined based on the maximum phase offset and the preset number of phase adjustment gears. It can be understood that the phase fluctuation range of the DQS signal is not limited to half of the clock cycle of the DRAM. In actual application, it can be flexibly adjusted based on the fluctuation range of the tdqsck parameter. It can also be understood that in actual application, the phase of the DQS signal may shift to the left or right. Therefore, the aforementioned maximum phase shift actually refers to one direction (ie, left or right). Maximum phase offset.

步骤102,基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号。Step 102: Phase-adjust the initial gating pulse signal based on the phase adjustment step to obtain a first gating pulse signal set and a second gating pulse signal set; the initial gating pulse signal corresponds to the previous correction node. gating pulse signal.

具体的,所述基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合,具体包括:Specifically, the phase adjustment of the initial gate pulse signal based on the phase adjustment step to obtain the first gate pulse signal set and the second gate pulse signal set specifically includes:

基于所述相位调节步长将初始门控脉冲信号向左偏移N次以得到第一门控脉冲信号集合,并基于所述相位调节步长将初始门控脉冲信号向右偏移N次以得到第二门控脉冲信号集合;其中,N为所述预设的相位调节档位数。The initial gate pulse signal is shifted to the left N times based on the phase adjustment step to obtain the first gate pulse signal set, and the initial gate pulse signal is shifted to the right N times based on the phase adjustment step to obtain the first gate pulse signal set. A second set of gated pulse signals is obtained; where N is the preset number of phase adjustment gears.

可以理解的是,本申请实施例的校正节点可以根据实际需要进行设定,例如基于预设时间间隔进行校正,也可以一次读操作为单位进行校正,本申请实施例对此不作具体限定。但值得注意的是,在DRAM正式投入使用之前,仍是采用预先对DQSgating信号进行训练的方式获取第一个准确的门控脉冲信号,基于此,在DRAM正式投入使用之后,即可采用本申请实施例的门控脉冲信号的校正方法对训练得到的门控脉冲信号进行校正,而无需进行再训练,进而在不影响DRAM正常访问的情况下进行门控脉冲信号的快速精准校正。It can be understood that the correction nodes in the embodiment of the present application can be set according to actual needs, for example, correction can be performed based on a preset time interval, or correction can be performed in units of one read operation, which is not specifically limited in the embodiment of the present application. However, it is worth noting that before the DRAM is officially put into use, the first accurate gating pulse signal is still obtained by training the DQSgating signal in advance. Based on this, after the DRAM is officially put into use, this application can be used The gate pulse signal correction method of the embodiment corrects the gate pulse signal obtained by training without re-training, thereby performing fast and accurate correction of the gate pulse signal without affecting normal access to the DRAM.

结合图2还可以理解的是,上一校正节点对应的门控脉冲信号的上升沿与上一校正节点对应的DQS有效信号的上升沿是对齐的,因此,上一校正节点能够进行准确的数据读取。但由于tdqsck参数的变化,DQS信号的相位也会变化,因此当前校正节点对应的DQS有效信号的上升沿会发生偏移,若仍采用上一校正节点对应的门控脉冲信号将导致数据读取错误。基于此,本申请实施例基于所述相位调节步长将初始门控脉冲信号向左偏移N次以得到第一门控脉冲信号集合,基于所述相位调节步长将初始门控脉冲信号向右偏移N次以得到第二门控脉冲信号集合,并通过第一和第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的DQS信号进行采样,即可判断当前校正节点对应的DQS信号的偏移情况,进而对门控脉冲信号进行校正。可以理解的是,N为所述预设的相位调节档位数,所述第一门控脉冲信号集合中包括N次向左偏移对应的N个门控脉冲信号,所述第二门控脉冲信号集合中包括N次向右偏移对应的N个门控脉冲信号。基于此,所述第一门控脉冲信号集合中即涵盖了相对于初始门控脉冲信号的向左相位偏移量由1个相位调节步长到N个相位调节步长(对应于最大相位偏移量)的N个门控脉冲信号,所述第二门控脉冲信号集合中即涵盖了相对于初始门控脉冲信号的向右相位偏移量由1个相位调节步长到N个相位调节步长(对应于最大相位偏移量)的N个门控脉冲信号,在此基础上,通过所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样,必定能够确定当前校正节点对应的DQS信号的偏移情况。It can also be understood from Figure 2 that the rising edge of the gate pulse signal corresponding to the previous correction node is aligned with the rising edge of the DQS valid signal corresponding to the previous correction node. Therefore, the previous correction node can perform accurate data Read. However, due to changes in the tdqsck parameter, the phase of the DQS signal will also change, so the rising edge of the DQS valid signal corresponding to the current correction node will be offset. If the gating pulse signal corresponding to the previous correction node is still used, data will be read. mistake. Based on this, the embodiment of the present application shifts the initial gate pulse signal to the left N times based on the phase adjustment step to obtain the first gate pulse signal set, and shifts the initial gate pulse signal to the left based on the phase adjustment step. Shift right N times to obtain the second gated pulse signal set, and sample the DQS signal corresponding to the current correction node through the gated pulse signals in the first and second gated pulse signal sets to determine the current correction node. The offset of the corresponding DQS signal is used to correct the gate pulse signal. It can be understood that N is the preset number of phase adjustment gears, the first gate pulse signal set includes N gate pulse signals corresponding to N shifts to the left, and the second gate pulse signal set The pulse signal set includes N gated pulse signals corresponding to N shifts to the right. Based on this, the first gating pulse signal set covers the leftward phase offset relative to the initial gating pulse signal from 1 phase adjustment step to N phase adjustment steps (corresponding to the maximum phase deviation Shift) N gating pulse signals, the second gating pulse signal set covers the rightward phase offset relative to the initial gating pulse signal from 1 phase adjustment step to N phase adjustment N gated pulse signals of step size (corresponding to the maximum phase offset). On this basis, through the gated pulse signals in the first gated pulse signal set and the second gated pulse signal set By sampling the data strobe signal corresponding to the current correction node, the offset of the DQS signal corresponding to the current correction node must be determined.

步骤103,分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列。Step 103: Sample the data strobe signal corresponding to the current correction node based on the gate pulse signal in the first gate pulse signal set and the second gate pulse signal set to obtain a first sample value sequence and The second sequence of sampled values.

具体的,所述分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列,具体包括:Specifically, the data strobe signal corresponding to the current correction node is sampled based on the gating pulse signal in the first gating pulse signal set and the second gating pulse signal set to obtain the first sampling value. sequence and the second sampled value sequence, specifically including:

基于所述第一门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第一采样值集合,并基于所述第一采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第一采样值集合中的各采样值进行排序以得到第一采样值序列;Based on the rising edges of N gate pulse signals in the first gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding first sample value set, and based on the first The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal, and sorting the sample values in the first sample value set to obtain the first sample value sequence;

基于所述第二门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第二采样值集合,并基于所述第二采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第二采样值集合中的各采样值进行排序以得到第二采样值序列。Based on the rising edges of N gate pulse signals in the second gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding second sample value set, and based on the second The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal is used to sort the sample values in the second sample value set to obtain a second sample value sequence.

可以理解的是,基于上述方式即可获得当前校正节点对应的数据选通信号不同位置的采样值。对于所述第一采样值集合,本申请实施例优选按照对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量由大到小的顺序对各采样值进行排序,对于所述第二采样值集合,本申请实施例优选按照对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量由小到大的顺序对各采样值进行排序,结合图2可知,基于此,能够保证第一采样值序列和第二采样值序列能够直观反馈当前校正节点对应的数据选通信号从左至右的采样值,基于此,能够基于所述第一采样值序列和第二采样值序列快速确定门控脉冲信号的相位校正值。It can be understood that based on the above method, the sampling values at different positions of the data strobe signal corresponding to the current correction node can be obtained. For the first set of sampled values, the embodiment of the present application preferably sorts the sampled values in descending order according to the phase offset of the corresponding gating pulse signal relative to the initial gating pulse signal. For the two sampled value sets, the embodiment of the present application preferably sorts the sampled values in order from small to large according to the phase offset of the corresponding gating pulse signal relative to the initial gating pulse signal. As can be seen from Figure 2, based on this, It can ensure that the first sampled value sequence and the second sampled value sequence can intuitively feedback the sampled values from left to right of the data strobe signal corresponding to the current correction node. Based on this, it can be based on the first sampled value sequence and the second sampled value. The sequence quickly determines the phase correction value of the gated pulse signal.

步骤104,基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号。Step 104: Determine the phase correction value of the gate pulse signal based on the first sample value sequence and the second sample value sequence, and correct the initial gate pulse signal based on the phase correction value to obtain the target gate pulse signal. , and use the target gating pulse signal as the gating pulse signal corresponding to the current correction node.

具体的,图3是本申请提供的相位校正值的确定流程示意图,如图3所示,所述基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,具体包括:Specifically, Figure 3 is a schematic flow chart of the phase correction value determination provided by the present application. As shown in Figure 3, the phase correction value of the gated pulse signal is determined based on the first sample value sequence and the second sample value sequence, Specifically include:

步骤201,基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量;Step 201: Determine the current phase offset direction and phase offset amount of the initial gate pulse signal based on the first sample value sequence and the second sample value sequence;

步骤202,基于所述初始门控脉冲信号的当前相位偏移方向和相位偏移量确定门控脉冲信号的相位校正值。Step 202: Determine the phase correction value of the gate pulse signal based on the current phase offset direction and phase offset amount of the initial gate pulse signal.

所述基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量,具体包括:Determining the current phase offset direction and phase offset amount of the initial gate pulse signal based on the first sample value sequence and the second sample value sequence specifically includes:

在所述第一采样值序列中的采样值均为0,第二采样值序列中的采样值均为1的情况下,判断所述初始门控脉冲信号无偏移;When the sampled values in the first sampled value sequence are all 0 and the sampled values in the second sampled value sequence are all 1, it is determined that the initial gating pulse signal has no offset;

在所述第一采样值序列和第二采样值序列中的采样值均包括0和1的情况下,基于所述第一采样值序列和第二采样值序列中0和1的位置及数量确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量。In the case where the sample values in the first sample value sequence and the second sample value sequence both include 0 and 1, the determination is based on the positions and numbers of 0 and 1 in the first sample value sequence and the second sample value sequence. The current phase offset direction and phase offset amount of the initial gating pulse signal.

结合图2可以理解的是,在所述第一采样值序列中的采样值均为0,第二采样值序列中的采样值均为1的情况下,说明DQS信号无偏移,因此判断所述初始门控脉冲信号无偏移;It can be understood from Figure 2 that when the sample values in the first sample value sequence are all 0 and the sample values in the second sample value sequence are all 1, it means that the DQS signal has no offset, so it is judged that the The initial gating pulse signal has no offset;

在所述第一采样值序列和第二采样值序列中的采样值均包括0和1的情况下,会存在两种情形,第一种情形:第一采样值序列中的采样值依次为N-M个0,M个1,第二采样值序列中的采样值依次为N-M个1,M个0,说明DQS信号相对于上一校正节点向左偏移了M个相位调节步长,即初始门控脉冲信号相对于DQS信号向右偏移了M个相位调节步长(即初始门控脉冲信号的当前相位偏移方向为向右,相位偏移量为M个相位调节步长),基于此即可确定门控脉冲信号的相位校正值并基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号。可以理解的是,本申请实施例的相位校正值可以为正值也可以为负值,正值代表向右偏移,负值代表向左偏移。When the sampled values in the first sampled value sequence and the second sampled value sequence both include 0 and 1, there will be two situations. The first situation: the sampled values in the first sampled value sequence are N-M in sequence. 0s and M 1s. The sampled values in the second sample value sequence are N-M 1s and M 0s, indicating that the DQS signal has been shifted to the left by M phase adjustment steps relative to the previous correction node, that is, the initial gate The control pulse signal is shifted to the right by M phase adjustment steps relative to the DQS signal (that is, the current phase shift direction of the initial gate pulse signal is to the right, and the phase shift amount is M phase adjustment steps). Based on this That is, the phase correction value of the gate pulse signal is determined and the initial gate pulse signal is corrected based on the phase correction value to obtain the target gate pulse signal. It can be understood that the phase correction value in the embodiment of the present application can be a positive value or a negative value. A positive value represents a shift to the right, and a negative value represents a shift to the left.

第二种情形:第一采样值序列中的采样值依次为M个1,N-M个0,第二采样值序列中的采样值依次为M个0,N-M个1,说明DQS信号相对于上一校正节点向右偏移了M个相位调节步长,即初始门控脉冲信号相对于DQS信号向左偏移了M个相位调节步长(即初始门控脉冲信号的当前相位偏移方向为向左,相位偏移量为M个相位调节步长),基于此即可确定门控脉冲信号的相位校正值并基于所述相位校正值对所述初始门控脉冲信号进行校正。可以理解的是,M为小于N的正整数。还可以理解的是,本申请实施例可以通过现有的任意相位调节电路和采样电路分别实现初始门控脉冲信号的相位调节及当前校正节点对应的数据选通信号的采样,对于具体采用哪一类电路,本申请实施例在此不作具体限定。The second situation: the sampled values in the first sampled value sequence are M 1s and N-M 0s, and the sampled values in the second sampled value sequence are M 0s and N-M 1s, indicating that the DQS signal is relatively different from the previous one. The correction node is shifted to the right by M phase adjustment steps, that is, the initial gate pulse signal is shifted to the left by M phase adjustment steps relative to the DQS signal (that is, the current phase shift direction of the initial gate pulse signal is toward Left, the phase offset is M phase adjustment steps), based on which the phase correction value of the gate pulse signal can be determined and the initial gate pulse signal can be corrected based on the phase correction value. It can be understood that M is a positive integer less than N. It can also be understood that the embodiments of the present application can respectively realize the phase adjustment of the initial gate pulse signal and the sampling of the data strobe signal corresponding to the current correction node through any existing phase adjustment circuit and sampling circuit. Which one is specifically used? Class circuit, the embodiments of this application are not specifically limited here.

本申请实施例提供的方法,通过基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号,相对于现有的通过训练进行门控脉冲信号校正的方式,能够在不影响DRAM正常访问的情况下进行门控脉冲信号的快速精准校正,大大提高了DRAM的工作效率。The method provided by the embodiment of the present application determines the maximum phase offset based on the clock cycle of the DRAM, and determines the phase adjustment step based on the maximum phase offset; the initial gating pulse signal is processed based on the phase adjustment step. The phase is adjusted to obtain the first gating pulse signal set and the second gating pulse signal set; the initial gating pulse signal is the gating pulse signal corresponding to the previous correction node; respectively based on the first gating pulse signal set Sampling the data strobe signal corresponding to the current correction node with the gate pulse signal in the second gate pulse signal set to obtain a first sample value sequence and a second sample value sequence; based on the first sample value sequence and the second sequence of sampled values to determine the phase correction value of the gated pulse signal, correct the initial gated pulse signal based on the phase correction value to obtain the target gated pulse signal, and use the target gated pulse signal as Compared with the existing method of correcting the gate pulse signal through training, the gate pulse signal corresponding to the current correction node can be quickly and accurately corrected without affecting the normal access of the DRAM, which greatly improves the performance of the DRAM. work efficiency.

基于上述任一实施例,图4是本申请提供的DRAM中门控脉冲信号的校正装置的结构示意图,如图4所示,该装置包括:Based on any of the above embodiments, Figure 4 is a schematic structural diagram of a device for correcting gate pulse signals in DRAM provided by this application. As shown in Figure 4, the device includes:

第一确定模块301,用于基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;The first determination module 301 is used to determine the maximum phase offset based on the clock cycle of the DRAM, and determine the phase adjustment step based on the maximum phase offset;

门控脉冲信号集合生成模块302,用于基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;The gate pulse signal set generation module 302 is configured to perform phase adjustment on the initial gate pulse signal based on the phase adjustment step to obtain a first gate pulse signal set and a second gate pulse signal set; the initial gate The pulse signal is the gate pulse signal corresponding to the previous correction node;

采样值序列生成模块303,用于分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;The sampling value sequence generation module 303 is configured to sample the data strobe signal corresponding to the current correction node based on the gating pulse signal in the first gating pulse signal set and the second gating pulse signal set respectively to obtain a first sequence of sampled values and a sequence of second sampled values;

信号校正模块304,用于基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号。Signal correction module 304, configured to determine the phase correction value of the gate pulse signal based on the first sample value sequence and the second sample value sequence, and correct the initial gate pulse signal based on the phase correction value to obtain the target Gating pulse signal, and using the target gate pulse signal as the gating pulse signal corresponding to the current correction node.

本申请实施例提供的装置,通过第一确定模块301基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;门控脉冲信号集合生成模块302基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;采样值序列生成模块303分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;信号校正模块304基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号,相对于现有的通过训练进行门控脉冲信号校正的方式,能够在不影响DRAM正常访问的情况下进行门控脉冲信号的快速精准校正,大大提高了DRAM的工作效率。The device provided by the embodiment of the present application uses the first determination module 301 to determine the maximum phase offset based on the clock cycle of the DRAM, and determines the phase adjustment step based on the maximum phase offset; the gate pulse signal set generation module 302 is based on The phase adjustment step performs phase adjustment on the initial gating pulse signal to obtain the first gating pulse signal set and the second gating pulse signal set; the initial gating pulse signal is the gating pulse corresponding to the previous correction node signal; the sampling value sequence generation module 303 samples the data strobe signal corresponding to the current correction node based on the gate pulse signal in the first gate pulse signal set and the second gate pulse signal set respectively to obtain the third A sequence of sampled values and a second sequence of sampled values; the signal correction module 304 determines the phase correction value of the gated pulse signal based on the first sequence of sampled values and the second sequence of sampled values, and corrects the initial gate pulse signal based on the phase corrected value. The gated pulse signal is corrected to obtain the target gated pulse signal, and the target gated pulse signal is used as the gated pulse signal corresponding to the current correction node. Compared with the existing method of correcting the gated pulse signal through training, it is possible to The gate pulse signal can be quickly and accurately corrected without affecting the normal access of the DRAM, which greatly improves the working efficiency of the DRAM.

基于上述实施例,所述最大相位偏移量为DRAM的时钟周期的一半对应的相位偏移量,相应的,所述相位调节步长为所述最大相位偏移量与预设的相位调节档位数的商。Based on the above embodiment, the maximum phase offset is the phase offset corresponding to half of the clock cycle of the DRAM. Correspondingly, the phase adjustment step is the maximum phase offset and the preset phase adjustment gear. Quotient of digits.

基于上述任一实施例,所述基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合,具体包括:Based on any of the above embodiments, the phase adjustment of the initial gate pulse signal based on the phase adjustment step to obtain the first gate pulse signal set and the second gate pulse signal set specifically includes:

基于所述相位调节步长将初始门控脉冲信号向左偏移N次以得到第一门控脉冲信号集合,并基于所述相位调节步长将初始门控脉冲信号向右偏移N次以得到第二门控脉冲信号集合;其中,N为所述预设的相位调节档位数。The initial gate pulse signal is shifted to the left N times based on the phase adjustment step to obtain the first gate pulse signal set, and the initial gate pulse signal is shifted to the right N times based on the phase adjustment step to obtain the first gate pulse signal set. A second set of gated pulse signals is obtained; where N is the preset number of phase adjustment gears.

基于上述任一实施例,所述第一门控脉冲信号集合中包括N次向左偏移对应的N个门控脉冲信号,所述第二门控脉冲信号集合中包括N次向右偏移对应的N个门控脉冲信号。Based on any of the above embodiments, the first gate pulse signal set includes N gate pulse signals corresponding to N shifts to the left, and the second gate pulse signal set includes N shifts to the right. Corresponding N gate pulse signals.

基于上述任一实施例,所述分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列,具体包括:Based on any of the above embodiments, the data strobe signal corresponding to the current correction node is sampled based on the gating pulse signal in the first gating pulse signal set and the second gating pulse signal set to obtain The first sample value sequence and the second sample value sequence specifically include:

基于所述第一门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第一采样值集合,并基于所述第一采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第一采样值集合中的各采样值进行排序以得到第一采样值序列;Based on the rising edges of N gate pulse signals in the first gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding first sample value set, and based on the first The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal, and sorting the sample values in the first sample value set to obtain the first sample value sequence;

基于所述第二门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第二采样值集合,并基于所述第二采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第二采样值集合中的各采样值进行排序以得到第二采样值序列。Based on the rising edges of N gate pulse signals in the second gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding second sample value set, and based on the second The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal is used to sort the sample values in the second sample value set to obtain a second sample value sequence.

基于上述任一实施例,所述基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,具体包括:Based on any of the above embodiments, determining the phase correction value of the gated pulse signal based on the first sample value sequence and the second sample value sequence specifically includes:

基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量;Determine the current phase offset direction and phase offset amount of the initial gate pulse signal based on the first sample value sequence and the second sample value sequence;

基于所述初始门控脉冲信号的当前相位偏移方向和相位偏移量确定门控脉冲信号的相位校正值。The phase correction value of the gate pulse signal is determined based on the current phase offset direction and phase offset amount of the initial gate pulse signal.

基于上述任一实施例,所述基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量,具体包括:Based on any of the above embodiments, determining the current phase offset direction and phase offset amount of the initial gate pulse signal based on the first sample value sequence and the second sample value sequence specifically includes:

在所述第一采样值序列中的采样值均为0,第二采样值序列中的采样值均为1的情况下,判断所述初始门控脉冲信号无偏移;When the sampled values in the first sampled value sequence are all 0 and the sampled values in the second sampled value sequence are all 1, it is determined that the initial gating pulse signal has no offset;

在所述第一采样值序列和第二采样值序列中的采样值均包括0和1的情况下,基于所述第一采样值序列和第二采样值序列中0和1的位置及数量确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量。In the case where the sample values in the first sample value sequence and the second sample value sequence both include 0 and 1, the determination is based on the positions and numbers of 0 and 1 in the first sample value sequence and the second sample value sequence. The current phase offset direction and phase offset amount of the initial gating pulse signal.

图5示例了一种电子设备的实体结构示意图,如图5所示,该电子设备可以包括:处理器401、通信接口402、存储器403和通信总线404,其中,处理器401,通信接口402,存储器403通过通信总线404完成相互间的通信。处理器401可以调用存储器403中的逻辑指令,以执行上述各方法所提供的DRAM中门控脉冲信号的校正方法,所述方法包括:基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号。Figure 5 illustrates a schematic diagram of the physical structure of an electronic device. As shown in Figure 5, the electronic device may include: a processor 401, a communication interface 402, a memory 403, and a communication bus 404. The processor 401, the communication interface 402, The memories 403 communicate with each other through the communication bus 404. The processor 401 can call the logic instructions in the memory 403 to execute the correction method of the gate pulse signal in the DRAM provided by the above methods. The method includes: determining the maximum phase offset based on the clock cycle of the DRAM, and based on the The maximum phase offset determines the phase adjustment step; the initial gate pulse signal is phase adjusted based on the phase adjustment step to obtain the first gate pulse signal set and the second gate pulse signal set; the initial gate The control pulse signal is the gate control pulse signal corresponding to the previous correction node; the data corresponding to the current correction node is selected based on the gate control pulse signals in the first gate control pulse signal set and the second gate control pulse signal set respectively. The pass signal is sampled to obtain a first sampled value sequence and a second sampled value sequence; a phase correction value of the gated pulse signal is determined based on the first sampled value sequence and the second sampled value sequence, and the phase correction value of the gated pulse signal is determined based on the phase correction value. The initial gating pulse signal is corrected to obtain a target gating pulse signal, and the target gating pulse signal is used as the gating pulse signal corresponding to the current correction node.

此外,上述的存储器403中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logical instructions in the memory 403 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), magnetic disk or optical disk and other various media that can store program codes.

另一方面,本申请还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,计算机程序可存储在非暂态计算机可读存储介质上,所述计算机程序被处理器执行时,计算机能够执行上述各方法所提供的DRAM中门控脉冲信号的校正方法,所述方法包括:基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号。On the other hand, the present application also provides a computer program product. The computer program product includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can Execute the method for correcting the gate pulse signal in the DRAM provided by the above methods. The method includes: determining the maximum phase offset based on the clock cycle of the DRAM, and determining the phase adjustment step based on the maximum phase offset; The phase adjustment step performs phase adjustment on the initial gating pulse signal to obtain the first gating pulse signal set and the second gating pulse signal set; the initial gating pulse signal is the gating pulse corresponding to the previous correction node signal; sampling the data strobe signal corresponding to the current correction node based on the gate pulse signal in the first gate pulse signal set and the second gate pulse signal set respectively to obtain the first sample value sequence and the first sample value sequence. Two sampling value sequences; determining the phase correction value of the gating pulse signal based on the first sampling value sequence and the second sampling value sequence, and correcting the initial gating pulse signal based on the phase correction value to obtain the target gating pulse signal, and use the target gate pulse signal as the gate pulse signal corresponding to the current correction node.

又一方面,本申请还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各方法提供的DRAM中门控脉冲信号的校正方法,所述方法包括:基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号。On the other hand, the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored. The computer program is implemented when executed by the processor to perform the correction of the gate pulse signal in the DRAM provided by the above methods. Method, the method includes: determining the maximum phase offset based on the clock cycle of the DRAM, and determining the phase adjustment step based on the maximum phase offset; performing phase adjustment on the initial gating pulse signal based on the phase adjustment step To obtain the first gating pulse signal set and the second gating pulse signal set; the initial gating pulse signal is the gating pulse signal corresponding to the previous correction node; respectively based on the first gating pulse signal set and the The gate pulse signal in the second gate pulse signal set samples the data strobe signal corresponding to the current correction node to obtain a first sample value sequence and a second sample value sequence; based on the first sample value sequence and the second sample value sequence The two-sample value sequence determines the phase correction value of the gated pulse signal, corrects the initial gated pulse signal based on the phase correction value to obtain the target gated pulse signal, and uses the target gated pulse signal as the current correction The gate pulse signal corresponding to the node.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in One location, or it can be distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Persons of ordinary skill in the art can understand and implement the method without any creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions can be embodied in the form of software products in essence or in part that contribute to the existing technology. The computer software products can be stored in computer-readable storage media, such as ROM, disks, Optical disc, etc., including a number of instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical features; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (6)

1.一种DRAM中门控脉冲信号的校正方法,其特征在于,所述方法包括:1. A method for correcting gate pulse signals in DRAM, characterized in that the method includes: 基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;Determine the maximum phase offset based on the clock cycle of the DRAM, and determine the phase adjustment step based on the maximum phase offset; 基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;The initial gating pulse signal is phase adjusted based on the phase adjustment step to obtain the first gating pulse signal set and the second gating pulse signal set; the initial gating pulse signal is the gating corresponding to the previous correction node. Pulse signal; 分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;Sampling the data strobe signal corresponding to the current correction node based on the gating pulse signal in the first gating pulse signal set and the second gating pulse signal set respectively to obtain the first sampling value sequence and the second sampling value sequence; 基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号;Determine the phase correction value of the gate pulse signal based on the first sample value sequence and the second sample value sequence, correct the initial gate pulse signal based on the phase correction value to obtain the target gate pulse signal, and The target gate pulse signal is used as the gate pulse signal corresponding to the current correction node; 所述最大相位偏移量为DRAM的时钟周期的一半对应的相位偏移量,相应的,所述相位调节步长为所述最大相位偏移量与预设的相位调节档位数的商;The maximum phase offset is the phase offset corresponding to half of the clock cycle of the DRAM. Correspondingly, the phase adjustment step is the quotient of the maximum phase offset and the preset number of phase adjustment gears; 所述基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合,具体包括:The phase adjustment of the initial gating pulse signal based on the phase adjustment step to obtain the first gating pulse signal set and the second gating pulse signal set specifically includes: 基于所述相位调节步长将初始门控脉冲信号向左偏移N次以得到第一门控脉冲信号集合,并基于所述相位调节步长将初始门控脉冲信号向右偏移N次以得到第二门控脉冲信号集合;其中,N为所述预设的相位调节档位数;The initial gate pulse signal is shifted to the left N times based on the phase adjustment step to obtain the first gate pulse signal set, and the initial gate pulse signal is shifted to the right N times based on the phase adjustment step to obtain the first gate pulse signal set. Obtain a second set of gated pulse signals; where N is the preset number of phase adjustment gears; 所述分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列,具体包括:The data strobe signal corresponding to the current correction node is sampled based on the gate pulse signal in the first gate pulse signal set and the second gate pulse signal set respectively to obtain the first sample value sequence and the first sample value sequence. Two sample value sequences, including: 基于所述第一门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第一采样值集合,并基于所述第一采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第一采样值集合中的各采样值进行排序以得到第一采样值序列;Based on the rising edges of N gate pulse signals in the first gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding first sample value set, and based on the first The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal, and sorting the sample values in the first sample value set to obtain the first sample value sequence; 基于所述第二门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第二采样值集合,并基于所述第二采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第二采样值集合中的各采样值进行排序以得到第二采样值序列;Based on the rising edges of N gate pulse signals in the second gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding second sample value set, and based on the second The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal, and sorting each sample value in the second sample value set to obtain a second sample value sequence; 所述基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,具体包括:Determining the phase correction value of the gated pulse signal based on the first sample value sequence and the second sample value sequence specifically includes: 基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量;Determine the current phase offset direction and phase offset amount of the initial gate pulse signal based on the first sample value sequence and the second sample value sequence; 基于所述初始门控脉冲信号的当前相位偏移方向和相位偏移量确定门控脉冲信号的相位校正值。The phase correction value of the gate pulse signal is determined based on the current phase offset direction and phase offset amount of the initial gate pulse signal. 2.根据权利要求1所述的DRAM中门控脉冲信号的校正方法,其特征在于,所述第一门控脉冲信号集合中包括N次向左偏移对应的N个门控脉冲信号,所述第二门控脉冲信号集合中包括N次向右偏移对应的N个门控脉冲信号。2. The method for correcting gate pulse signals in DRAM according to claim 1, wherein the first gate pulse signal set includes N gate pulse signals corresponding to N times of leftward shift, so The second gating pulse signal set includes N gating pulse signals corresponding to N rightward shifts. 3.根据权利要求1所述的DRAM中门控脉冲信号的校正方法,其特征在于,所述基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量,具体包括:3. The method for correcting gate pulse signals in DRAM according to claim 1, wherein the current phase of the initial gate pulse signal is determined based on the first sample value sequence and the second sample value sequence. Offset direction and phase offset, including: 在所述第一采样值序列中的采样值均为0,第二采样值序列中的采样值均为1的情况下,判断所述初始门控脉冲信号无偏移;When the sampled values in the first sampled value sequence are all 0 and the sampled values in the second sampled value sequence are all 1, it is determined that the initial gating pulse signal has no offset; 在所述第一采样值序列和第二采样值序列中的采样值均包括0和1的情况下,基于所述第一采样值序列和第二采样值序列中0和1的位置及数量确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量。In the case where the sample values in the first sample value sequence and the second sample value sequence both include 0 and 1, the determination is based on the positions and numbers of 0 and 1 in the first sample value sequence and the second sample value sequence. The current phase offset direction and phase offset amount of the initial gating pulse signal. 4.一种DRAM中门控脉冲信号的校正装置,其特征在于,所述装置包括:4. A device for correcting gate pulse signals in DRAM, characterized in that the device includes: 第一确定模块,用于基于DRAM的时钟周期确定最大相位偏移量,并基于所述最大相位偏移量确定相位调节步长;A first determination module, configured to determine the maximum phase offset based on the clock cycle of the DRAM, and determine the phase adjustment step based on the maximum phase offset; 门控脉冲信号集合生成模块,用于基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合;所述初始门控脉冲信号为上一校正节点对应的门控脉冲信号;A gated pulse signal set generation module, configured to perform phase adjustment on the initial gated pulse signal based on the phase adjustment step to obtain a first gated pulse signal set and a second gated pulse signal set; the initial gated pulse The signal is the gate pulse signal corresponding to the previous correction node; 采样值序列生成模块,用于分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列;A sampling value sequence generating module, configured to sample the data strobe signal corresponding to the current correction node based on the gating pulse signal in the first gating pulse signal set and the second gating pulse signal set respectively to obtain the first a sequence of sampled values and a second sequence of sampled values; 信号校正模块,用于基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,基于所述相位校正值对所述初始门控脉冲信号进行校正以得到目标门控脉冲信号,并将所述目标门控脉冲信号作为当前校正节点对应的门控脉冲信号;A signal correction module, configured to determine the phase correction value of the gate pulse signal based on the first sample value sequence and the second sample value sequence, and correct the initial gate pulse signal based on the phase correction value to obtain the target gate control pulse signal, and use the target gate pulse signal as the gate pulse signal corresponding to the current correction node; 所述最大相位偏移量为DRAM的时钟周期的一半对应的相位偏移量,相应的,所述相位调节步长为所述最大相位偏移量与预设的相位调节档位数的商;The maximum phase offset is the phase offset corresponding to half of the clock cycle of the DRAM. Correspondingly, the phase adjustment step is the quotient of the maximum phase offset and the preset number of phase adjustment gears; 所述基于所述相位调节步长对初始门控脉冲信号进行相位调节以得到第一门控脉冲信号集合和第二门控脉冲信号集合,具体包括:The phase adjustment of the initial gating pulse signal based on the phase adjustment step to obtain the first gating pulse signal set and the second gating pulse signal set specifically includes: 基于所述相位调节步长将初始门控脉冲信号向左偏移N次以得到第一门控脉冲信号集合,并基于所述相位调节步长将初始门控脉冲信号向右偏移N次以得到第二门控脉冲信号集合;其中,N为所述预设的相位调节档位数;The initial gate pulse signal is shifted to the left N times based on the phase adjustment step to obtain the first gate pulse signal set, and the initial gate pulse signal is shifted to the right N times based on the phase adjustment step to obtain the first gate pulse signal set. Obtain a second set of gated pulse signals; where N is the preset number of phase adjustment gears; 所述分别基于所述第一门控脉冲信号集合和所述第二门控脉冲信号集合中的门控脉冲信号对当前校正节点对应的数据选通信号进行采样以得到第一采样值序列和第二采样值序列,具体包括:The data strobe signal corresponding to the current correction node is sampled based on the gate pulse signal in the first gate pulse signal set and the second gate pulse signal set respectively to obtain the first sample value sequence and the first sample value sequence. Two sample value sequences, including: 基于所述第一门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第一采样值集合,并基于所述第一采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第一采样值集合中的各采样值进行排序以得到第一采样值序列;Based on the rising edges of N gate pulse signals in the first gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding first sample value set, and based on the first The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal, and sorting the sample values in the first sample value set to obtain the first sample value sequence; 基于所述第二门控脉冲信号集合中的N个门控脉冲信号的上升沿分别对当前校正节点对应的数据选通信号进行采样以得到对应的第二采样值集合,并基于所述第二采样值集合中各采样值对应的门控脉冲信号相对于初始门控脉冲信号的相位偏移量,对所述第二采样值集合中的各采样值进行排序以得到第二采样值序列;Based on the rising edges of N gate pulse signals in the second gate pulse signal set, the data strobe signal corresponding to the current correction node is sampled respectively to obtain the corresponding second sample value set, and based on the second The phase offset of the gate pulse signal corresponding to each sample value in the sample value set relative to the initial gate pulse signal, and sorting each sample value in the second sample value set to obtain a second sample value sequence; 所述基于所述第一采样值序列和第二采样值序列确定门控脉冲信号的相位校正值,具体包括:Determining the phase correction value of the gated pulse signal based on the first sample value sequence and the second sample value sequence specifically includes: 基于所述第一采样值序列和第二采样值序列确定所述初始门控脉冲信号的当前相位偏移方向和相位偏移量;Determine the current phase offset direction and phase offset amount of the initial gate pulse signal based on the first sample value sequence and the second sample value sequence; 基于所述初始门控脉冲信号的当前相位偏移方向和相位偏移量确定门控脉冲信号的相位校正值。The phase correction value of the gate pulse signal is determined based on the current phase offset direction and phase offset amount of the initial gate pulse signal. 5.一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1至3任一项所述DRAM中门控脉冲信号的校正方法的步骤。5. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that when the processor executes the program, it implements claim 1 Go to the steps of the method for correcting the gate pulse signal in DRAM described in any one of 3. 6.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至3任一项所述DRAM中门控脉冲信号的校正方法的步骤。6. A non-transitory computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the gating pulse in the DRAM according to any one of claims 1 to 3 is realized. Signal correction method steps.
CN202310540538.0A 2023-05-12 2023-05-12 Correction method and device for gate pulse signals in DRAM (dynamic random Access memory) Active CN116564380B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310540538.0A CN116564380B (en) 2023-05-12 2023-05-12 Correction method and device for gate pulse signals in DRAM (dynamic random Access memory)
TW113117466A TWI862453B (en) 2023-05-12 2024-05-10 Correction method and apparatus of the gate pulse signal in dram and electronic apparatus and non-transitory computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310540538.0A CN116564380B (en) 2023-05-12 2023-05-12 Correction method and device for gate pulse signals in DRAM (dynamic random Access memory)

Publications (2)

Publication Number Publication Date
CN116564380A CN116564380A (en) 2023-08-08
CN116564380B true CN116564380B (en) 2023-11-24

Family

ID=87485742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310540538.0A Active CN116564380B (en) 2023-05-12 2023-05-12 Correction method and device for gate pulse signals in DRAM (dynamic random Access memory)

Country Status (2)

Country Link
CN (1) CN116564380B (en)
TW (1) TWI862453B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115312092A (en) * 2022-10-09 2022-11-08 合肥奎芯集成电路设计有限公司 Gate-controlled data strobe signal generation circuit and signal generation method and device thereof
CN115547381A (en) * 2022-11-30 2022-12-30 合肥奎芯集成电路设计有限公司 Gate signal generating circuit of data gate signal and signal generating method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI404339B (en) * 2009-11-25 2013-08-01 Mstar Semiconductor Inc Method for adjusting memory signal phase
JP5733126B2 (en) * 2011-09-15 2015-06-10 富士通セミコンダクター株式会社 Memory interface circuit and timing adjustment method
US9293205B2 (en) * 2013-09-14 2016-03-22 Aplus Flash Technology, Inc Multi-task concurrent/pipeline NAND operations on all planes
US9368172B2 (en) * 2014-02-03 2016-06-14 Rambus Inc. Read strobe gating mechanism
KR20180083082A (en) * 2017-01-12 2018-07-20 에스케이하이닉스 주식회사 Memory apparatus and memory module capable of correcting and defending
CN112687320B (en) * 2020-12-30 2023-10-31 西安紫光国芯半导体有限公司 ZQ calibration code latch circuit and method, and ZQ calibration circuit and memory device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115312092A (en) * 2022-10-09 2022-11-08 合肥奎芯集成电路设计有限公司 Gate-controlled data strobe signal generation circuit and signal generation method and device thereof
CN115547381A (en) * 2022-11-30 2022-12-30 合肥奎芯集成电路设计有限公司 Gate signal generating circuit of data gate signal and signal generating method thereof

Also Published As

Publication number Publication date
CN116564380A (en) 2023-08-08
TWI862453B (en) 2024-11-11
TW202445577A (en) 2024-11-16

Similar Documents

Publication Publication Date Title
CN108777578B (en) Encoder signal sampling method and device
CN107563297B (en) Waveform matching method and device
CN114356248B (en) Data processing method and device
US11855639B2 (en) Slew rate control device and slew rate control method
CN116564380B (en) Correction method and device for gate pulse signals in DRAM (dynamic random Access memory)
CN111383684A (en) A reference voltage determination method, device and storage medium
CN116564377A (en) Delay determining method and device in memory device command bus training
CN110689914A (en) Solid state disk reading error correction method, device, equipment and storage medium
JP2022522790A (en) Methods and devices for tracking blockchain transactions
CN105224250A (en) High-performance domain name mapping disposal route and device
CN117033855A (en) Filter mask generation method, device, electronic equipment and storage medium
CN106253763B (en) The filtering method and device of encoder
CN114255801B (en) Dual reference voltage generator, equalizing circuit and memory
CN116956797A (en) Power integrity simulation method and device and electronic equipment
CN110085284B (en) SSD (solid State disk) -oriented gene comparison method and system
CN109359067B (en) Method and system for acquiring delay step time in storage module
CN112562762A (en) Method and system for acquiring WL threshold voltage distribution and related components
CN114822634A (en) Reference voltage determination method, reference voltage determination device, computer equipment and storage medium
CN108363639B (en) Parameter-configurable dynamic BCH error correction method and device
US11901038B2 (en) Memory system
CN114519018B (en) Double data rate memory system and gate signal control circuit in the system
WO2025015457A1 (en) Pattern analysis enabled read operation in nand component
CN118447129A (en) Multi-eye diagram generation method and device in data bus training process
US20210210139A1 (en) Memory device and data writing method
CN110634521B (en) Nonvolatile memory processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant