High-speed memory bus time sequence self-adaption method

By dynamically adjusting the delay of the sampling signal in a high-speed memory bus environment, the problem of timing drift of the CA signal, CLK signal, and DQ signal is solved, and real-time timing adaptation and margin are achieved without interrupting the memory read and write business. Compensation improves timing stability and power efficiency.

CN118796735AActive Publication Date: 2024-10-18成都星拓微电子科技股份有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411269006.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-10-18
Estimated Expiration
2044-09-11

AI Technical Summary

Technical Problem

In a high-speed memory bus environment, the timing margin of the CA signal to the CLK signal and the DQ signal to the DQS signal drifts with changes in temperature and humidity, resulting in timing jitter. The existing technology cannot perform timing training and compensation in real time, increasing timing adaptation. risk.

Method used

A high-speed memory bus timing adaptive method is used to set the sampler and register modes during initial power-on, perform timing training and margin testing, and dynamically adjust the delay of the signal to be sampled to realize the response of CA signal, CTRL signal to CLK signal, The DQ signal adapts the timing of the DQS signal to ensure that timing drift is compensated in real time without interrupting the memory read and write business.

Benefits of technology

It achieves fast and real-time timing adaptation, improves the stability of dynamic timing margin, reduces power consumption, and is independently controllable without relying on the host device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796735A_ABST
    Figure CN118796735A_ABST
Patent Text Reader

Abstract

The invention discloses a high-speed memory bus timing sequence self-adaption method. In order to realize time sequence self-adaption in the high-speed memory bus, a first channel, a second channel, a corresponding idle mode and a corresponding normal working mode are arranged. And after the timer reaches a preset duration, the channel in the idle mode starts to enter a margin test mode, and when the maximum time sequence margin of the signal to be sampled in the margin test is not less than a time sequence deviation threshold value, the channel enters a margin adjusting and optimizing mode, finally, the delay of the signal to be sampled is fixed, and when the bus state is a self-refreshing state, the modes of the two channels are switched. According to the invention, the read-write service is not interrupted, and the time sequence self-adaption can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of memory bus, and in particular to a high-speed memory bus timing self-adaptation method. Background Art

[0002] The fifth / sixth generation Double Data Rate 5 / 6 Synchronous Dynamic Random Access Memory (DDR5 / 6 SDRAM), the fifth / sixth generation Low Power Double Data Rate 5 / 6 Synchronous Dynamic Random Access Memory (LPDDR5 / 6 SDRAM) and the fifth / sixth generation Graphics Double Data Rate 5 / 6 Synchronous Dynamic Random Access Memory (GDDR5 / 6 SDRAM) are memory buses widely used for communication between computer processors (Central Processing Unit, CPU), graphics processors, field programmable gate arrays, digital signal processors, storage processors and memory particles.

[0003] The Registered Dual Inline Memory Module (RDIMM) driven by the Registered Clock involves Command and Address (CA) signals, Control (ConTRoL, CTRL) signals, Clock (CLocK, CLK) signals, Data (DQ) signals, and Data Strobe (DQS) signals. Among them, the CA signal and CLK signal are driven by the Register Clock Driver (RCD) and then sent to the memory particles again. The DQ signal is driven by the Data Buffer (DB) and then sent to the memory particles.

[0004] Timing training between CA signal and CLK signal, DQ signal and DQS signal will be performed between CPU and RCD, between RCD and Synchronous Dynamic Random Access Memory (SDRAM), between CPU and DB, and between DB and SDRAM. After the timing training is completed, the timing position will no longer change.

[0005] However, as the speed of the memory bus increases, the timing margin of the CA signal to the CLK signal and the DQ to the DQS signal becomes smaller and smaller. After the static timing training is completed, as the temperature and humidity change, the timing jitter becomes larger, and the offset of the CA signal relative to the CLK signal drifts.

[0006] When the SoC power is powered on, the timing of the CA signal and the CLK signal will be trained. However, during the operation of the read and write business, the external environment changes, but the timing is not trained in real time to compensate for the impact of the environmental changes.

[0007] Factors such as system on chip (SoC) compensation drift cause high risks in the timing of CA signals to CLK signals and the timing of DQ signals to DQS signals.

[0008] Therefore, with the development trend of high-speed memory, timing adaptation between CA signal and CLK signal, and between DQ signal and DQS signal, becomes more and more important. Summary of the invention

[0009] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows: A high-speed memory bus timing self-adaptive method is used to adjust a signal to be sampled and a sampling clock signal. When the signal to be sampled is a CA signal or a CTRL signal, the sampling clock signal is a CLK signal. When the signal to be sampled is a DQ signal, the sampling clock signal is a DQS signal. When initially powered on, a first receiving sampler and a second receiving sampler are reset, a switching register is set to 0, an offset register is set to 0, and a channel selection register is set to 0. A first channel including the first receiving sampler is set to a normal working mode, and a second channel including the second receiving sampler is set to an idle mode. Timing training is performed on the first channel, and a counter is started when the training is completed. When the timer reaches a preset time length, the second channel enters a margin test mode, and in the margin test mode, the sampling clock signal phase is pulled left and the sampling clock signal phase is pulled right to measure the maximum left timing margin of the signal to be sampled and the maximum right timing margin of the signal to be sampled. The maximum timing margin of the signal to be sampled is calculated; if the maximum timing margin of the signal to be sampled is less than K, the second channel returns to the idle state until the next time the counter reaches the preset duration, and the second channel enters the margin test mode; otherwise, the offset register is set to 1, the second channel enters the margin tuning mode, and in the margin tuning mode, the delay of the signal to be sampled is adjusted with the set step size, and the maximum left timing margin of the signal to be sampled and the maximum right timing margin of the signal to be sampled are measured, and the maximum timing margin of the signal to be sampled is calculated, and when the maximum timing margin of the signal to be sampled is less than K, the delay of the signal to be sampled is fixed, and the switching register is set to 1, where K is the timing deviation threshold configured in the register; when the offset register is 1, the switching register is 1, and the bus state is in the self-refresh state, the channel selection register is set to 1, the second channel is set to the normal working mode, and the first channel is set to the idle mode.

[0010] Furthermore, if the maximum timing margin of the signal to be sampled is less than K, the second channel returns to the idle state, which means: the maximum left timing margin of the signal to be sampled and the maximum right timing margin of the signal to be sampled are measured at least twice, and the maximum timing margins of the signal to be sampled calculated at least twice are both less than K, then the second channel returns to the idle state.

[0011] Furthermore, the delay of the signal to be sampled is adjusted with a set step length, wherein the set step length is a result of rounding K / 2 and a result of rounding -K / 2.

[0012] Furthermore, the first channel includes a first delay module, a second delay module, a first receiving sampler and a first verification module; the second channel includes a third delay module, a fourth delay module, a second receiving sampler and a second verification module; wherein, the signal to be sampled is used as the input signal of the first receiving sampler after passing through the first delay module, and the sampling clock signal is used as the input signal of the first receiving sampler after passing through the second delay module; the signal to be sampled is used as the input signal of the second receiving sampler after passing through the third delay module, and the sampling clock signal is used as the input signal of the second receiving sampler after passing through the fourth delay module; the first verification module receives the output signal of the first receiving sampler and uses it as the input signal of the multiplexer; the second verification module receives the output signal of the second receiving sampler and uses it as the input signal of the multiplexer.

[0013] Further, after the first channel enters the idle mode, when the timer reaches a preset duration, the first channel enters the margin test mode.

[0014] Furthermore, after the first channel enters the margin test mode, if the maximum margin of the signal timing to be sampled is not less than K, the first channel enters the margin tuning mode; and, when the offset register is 1, the switch register is 1, and the bus state is in the self-refresh state, the channel selection register is set to 1, the first channel is set to the normal working mode, and the second channel is set to the idle mode.

[0015] Further, adjusting the delay of the signal to be sampled with a set step length refers to: adjusting the delay time length of the third delay module with a set step length.

[0016] The technical solution of the present invention has one or more of the following beneficial technical effects: (1) Without interrupting the memory read and write business and without relying on the SoC test mode, fast and real-time timing adaptation between CA signals, CTRL signals to CLK signals, and DQ signals to DQS signals is achieved.

[0017] (2) Improve the dynamic timing margin between CA signal, CTRL signal and CLK signal, and DQ signal and DQS signal. The margin can be read online.

[0018] (3) Dynamic margin does not depend on the host device, and the solution is independently controllable.

[0019] (4) Low power consumption and can be updated in real time.

[0020] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic diagram of timing adjustment in RDIMM in the prior art; Figure 2 It is a schematic diagram of timing adjustment in the RDIMM of the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.

[0024] Figure 1 It is a schematic diagram of timing adjustment in the prior art RDIMM. The scheme is for two different situations. In situation 1, delay module 1 receives a CA signal or a CTRL signal, and delay module 2 receives a CLK signal. After sampling by a receiving sampler and verification by a verification module, a CA signal or a CTRL signal is output. In situation 2, delay module 1 receives a DQ signal, and delay module 2 receives a DQS signal. After sampling by a receiving sampler and verification by a verification module, a DQ signal is output.

[0025] Figure 2 The present invention is a schematic diagram of timing adjustment in the RDIMM of the present invention. In the present invention, different signal types can be targeted, for example, in case 1, the CA signal or the CTRL signal is sampled by the CLK signal; in case 2, the DQ signal is sampled by the DQS signal.

[0026] The CA signal or the CTRL signal and the DQ signal are signals to be sampled, and the CLK signal and the DQS signal are sampling clock signals.

[0027] The invention comprises a first channel and a second channel. The first channel comprises a first delay module, a second delay module, a first receiving sampler and a first verification module. The second channel comprises a third delay module, a fourth delay module, a second receiving sampler and a second verification module.

[0028] When the path selection signal is configured to different values, such as 0 or 1, the multiplexer selects the output signal of the first channel or the output signal of the second channel as the final output signal.

[0029] The CA signal, CTRL signal or DQ signal is used as the input signal of the first receiving sampler after passing through the first delay module, and the CLK signal or DQS signal is used as the input signal of the first receiving sampler after passing through the second delay module.

[0030] The CA signal, CTRL signal or DQ signal is used as the input signal of the second receiving sampler after passing through the third delay module, and the CLK signal or DQS signal is used as the input signal of the second receiving sampler after passing through the fourth delay module.

[0031] The first verification module receives the output signal of the first receiving sampler and uses it as one of the input signals of the multiplexer. The second verification module receives the output signal of the second receiving sampler and uses it as one of the input signals of the multiplexer.

[0032] The specific sampling process is performed by the first receiving sampler or the second receiving sampler. The first checking module and the second checking module determine whether there is an error according to the sampling result.

[0033] Taking the CA signal and the CLK signal as an example, the high-speed memory bus timing self-adaptation method of the present invention includes the following steps: At initial power-up, the first receive sampler and the second receive sampler are reset, the switch register is set to 0, the offset register is set to 0, and the channel selection register is set to 0.

[0034] In the present invention, releasing the reset means setting the reset signal to an invalid state, thereby releasing the reset state.

[0035] The first channel including the first receiving sampler is set to a normal operating mode, and the second channel including the second receiving sampler is set to an idle mode.

[0036] Keep the second channel in idle mode; perform timing training for the first channel and start the counter when the training is completed.

[0037] At this time, the first channel is the main data channel and performs data transmission function; the second channel is reset and is in idle mode, which often consumes less energy.

[0038] When the counter reaches the preset duration, the second channel enters the margin test mode. In the margin test mode, first gradually pull the CLK signal phase to the left until the second verification module indicates an error from 0 to a certain moment, and the maximum margin of the left timing of the CA signal is measured to be A0. Then, gradually pull the CLK signal phase to the right until the second verification module indicates an error from 0 to a certain moment, and the maximum margin of the right timing of the CA signal is measured to be B0. Calculate A0-B0 and save. Repeat the above steps to obtain the A1-B1 result, where A1 is the maximum margin of the left timing of the CA signal measured again, and B1 is the maximum margin of the right timing of the CA signal.

[0039] In the present invention, the phase of the left-biased sampling clock signal (such as the CLK signal) refers to advancing the phase of the sampling clock signal relative to the current, and the phase of the right-biased sampling clock signal (such as the CLK signal) refers to lagging the phase of the sampling clock signal relative to the current.

[0040] If |A0 - B0| < K and |A1 - B1| < K, the second channel returns to the idle state until the next counter reaches the preset duration, and the second channel enters the margin test mode again, where K is a timing deviation threshold that can be configured in the register.

[0041] If |A0 - B0| ≥ K and |A1 - B1| ≥ K, the offset register is set to 1, and the second channel enters the margin tuning mode to adjust the delay of the CA signal.

[0042] In the present invention, |A0 - B0| or |A1 - B1| is the maximum margin of the timing of the signal to be sampled, and also the absolute value of the difference between the maximum left timing margin and the maximum right timing margin of the signal to be sampled. In this example, the signal to be sampled is the CA signal, and it can also be the CTRL signal or the DQ signal.

[0043] Optionally, the registers storing A0 and A1 for the maximum left timing margin and B0 and B1 for the maximum right timing margin can be reset to zero.

[0044] After the second channel enters the margin tuning mode, the delay duration of the third delay module is adjusted in set steps (such as the rounded results of K / 2 and -K / 2), thereby adjusting the delay of the CA signal, and the maximum left timing margin and the maximum right timing margin of the CA signal of the second channel are tested. If the maximum timing margin of the CA signal is < K for two consecutive times, the configuration of the delay duration of the third delay module at this time is fixed, and the switching register is set to 1. Fixing the configuration of the delay duration of the third delay module at this time also means fixing the delay of the CA signal.

[0045] Exemplarily, using the registers storing A0 and A1 for the maximum left timing margin and B0 and B1 for the maximum right timing margin in the previous text, if |A0 - B0| < K and |A1 - B1| < K, the configuration of the delay duration of the third delay module is fixed.

[0046] When the offset register is 1, the switching register is 1, and the bus state is the self-refresh state, the channel selection register is set to 1, and the second channel is set as the main data master channel, that is, the normal working mode, to perform the data transfer function.

[0047] Exemplarily, the channel selection register can be controlled to be 1 through the path selection signal to achieve the purpose of setting the second channel as the main data master channel.

[0048] When the second channel is set as the data master channel, the second receiving sampler samples normally, the third delay module is in static state, the first channel is set to idle state, and the counter starts timing. When the counter reaches the preset time, the first channel enters the margin test mode, and when |A0-B0|≥K and |A1-B1|≥K, it enters the margin tuning mode.

[0049] Then, set the offset register to 0 and the switch register to 0.

[0050] So far, the change of switching the data main channel from the first channel to the second channel has been successfully achieved.

[0051] Thereafter, according to the same mode as above, when the timing deviation is large, the data main channel can also be switched from the second channel to the first channel.

[0052] For example, after the first channel enters the idle mode, when the timer reaches a preset duration, the first channel enters the margin test mode.

[0053] After the first channel enters the margin test mode, if the maximum margin of the timing of the signal to be sampled is not less than K, the first channel enters the margin tuning mode. In addition, when the offset register is 1, the switch register is 1, and the bus state is in the self-refresh state, the channel selection register is set to 1, the first channel is set to the normal working mode, and the second channel is set to the idle mode.

[0054] Although the present invention takes the CA signal and the CLK signal as an example, it is also applicable to other signal combinations, such as the CTRL signal and the CLK signal, and the DQ signal and the DQS signal.

[0055] “0” or “1” in the present invention refers to any signal that can indicate logic “0” or “1”.

[0056] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.

[0057] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A high-speed memory bus timing adaptive method for adjusting a signal to be sampled and a sampling clock signal, characterized in that: When the signal to be sampled is a CA signal or a CTRL signal, the sampling clock signal is a CLK signal; when the signal to be sampled is a DQ signal, the sampling clock signal is a DQS signal; At the initial power-on, the first receiving sampler and the second receiving sampler are reset, the switch register is set to 0, the offset register is set to 0, and the channel selection register is set to 0; Setting the first channel including the first receiving sampler to a normal working mode, and setting the second channel including the second receiving sampler to an idle mode; Perform timing training for the first channel and start the counter when the training is completed; When the timer reaches the preset duration, the second channel enters the margin test mode, and in the margin test mode, the sampling clock signal phase is pulled left and the sampling clock signal phase is pulled right to measure the maximum left timing margin of the signal to be sampled and the maximum right timing margin of the signal to be sampled, and the maximum timing margin of the signal to be sampled is calculated; If the maximum timing margin of the signal to be sampled is less than K, the second channel returns to the idle state until the next time the counter reaches the preset duration, and the second channel enters the margin test mode; otherwise, the offset register is set to 1, and the second channel enters the margin tuning mode, and in the margin tuning mode, the delay of the signal to be sampled is adjusted with the set step size, and the maximum left timing margin of the signal to be sampled and the maximum right timing margin of the signal to be sampled are measured, and the maximum timing margin of the signal to be sampled is calculated, and when the maximum timing margin of the signal to be sampled is less than K, the delay of the signal to be sampled is fixed, and the switching register is set to 1, where K is the timing deviation threshold configured in the register; When the offset register is 1, the switch register is 1, and the bus state is in the self-refresh state, the channel selection register is set to 1, the second channel is set to the normal working mode, and the first channel is set to the idle mode.

2. The high-speed memory bus timing adaptive method according to claim 1, characterized in that: If the maximum timing margin of the signal to be sampled is less than K, the second channel returns to the idle state, which means: the maximum left timing margin of the signal to be sampled and the maximum right timing margin of the signal to be sampled are measured at least twice, and the maximum timing margins of the signal to be sampled calculated at least twice are both less than K, then the second channel returns to the idle state.

3. The high-speed memory bus timing adaptive method according to claim 2, characterized in that: The delay of the signal to be sampled is adjusted by setting a step length, wherein the set step length is a result of rounding K / 2 and a result of rounding -K / 2.

4. The high-speed memory bus timing adaptive method according to claim 3, characterized in that: The first channel includes a first delay module, a second delay module, a first receiving sampler and a first verification module; The second channel includes a third delay module, a fourth delay module, a second receiving sampler and a second verification module; wherein, The signal to be sampled is used as the input signal of the first receiving sampler after passing through the first delay module, and the sampling clock signal is used as the input signal of the first receiving sampler after passing through the second delay module; The signal to be sampled is used as the input signal of the second receiving sampler after passing through the third delay module, and the sampling clock signal is used as the input signal of the second receiving sampler after passing through the fourth delay module; The first verification module receives the output signal of the first receiving sampler and uses it as the input signal of the multiplexer; the second verification module receives the output signal of the second receiving sampler and uses it as the input signal of the multiplexer.

5. The high-speed memory bus timing self-adaptation method according to claim 4, characterized in that: After the first channel enters the idle mode, when the timer reaches a preset time length, the first channel enters the margin test mode.

6. The high-speed memory bus timing adaptive method according to claim 5, characterized in that: After the first channel enters the margin test mode, if the maximum margin of the timing of the signal to be sampled is not less than K, the first channel enters the margin tuning mode; and, When the offset register is 1, the switch register is 1, and the bus state is in the self-refresh state, the channel selection register is set to 1, the first channel is set to the normal working mode, and the second channel is set to the idle mode.

7. The high-speed memory bus timing self-adaptation method according to claim 6, characterized in that: The adjusting the delay of the signal to be sampled with a set step length refers to: adjusting the delay time length of the third delay module with a set step length.

Citation Information

Patent Citations

  • Storage device and retraining method thereof

    CN113625940A

  • Memory training method, memory controller, processor and electronic equipment

    CN114356206A

  • Method for optimizing flash memory particles and related device

    CN114968070A

  • Self-adaptive synchronous parallel bus interface device and time sequence calibration method

    CN116303201A

  • DQS Position Adjustment Method , Controller and Network Device

    US20210065757A1