High-speed memory bus timing adaptation method

Through the high-speed memory bus timing adaptation method, the sampler and delay module are used to adjust the signal delay, which solves the problem of timing drift in the high-speed memory environment, and achieves fast and real-time timing adaptation and dynamic headroom improvement, reducing power consumption.

CN118796735BActive Publication Date: 2024-11-15成都星拓微电子科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411269006.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-11-15
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 the change of temperature and humidity, resulting in timing jitter. The existing technology cannot conduct timing training and compensation in real time, which increases the signal transmission risk.

Method used

Through a high-speed memory bus timing adaptive method, the first and second receiving samplers, delay modules and verification modules are used to perform timing training and margin testing, and adjust the delay of the sampled signal to realize the CA signal and CTRL signal pairs The timing adaptation of CLK signals and DQ signals to the DQS signals ensures the accuracy of signal transmission.

Benefits of technology

It realizes fast and real-time timing adaptation without interrupting memory read and write services, improves the dynamic timing margin of the signal, reduces power consumption, and does not rely on host equipment and is independent and controllable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796735B_ABST
    Figure CN118796735B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for timing self-adaptation of a high-speed memory bus. In order to realize timing self-adaptation in a high-speed memory bus, the present invention sets a first channel and a second channel, as well as a corresponding idle mode and a normal working mode. When the timer reaches a preset duration, the channel in the idle mode begins to enter a margin test mode, and when the maximum margin of the timing of the signal to be sampled is not less than the timing deviation threshold in the margin test, the margin tuning mode is entered, and finally the delay of the signal to be sampled is fixed, and when the bus state is a self-refresh state, the modes of the two channels are switched. The present invention can realize timing self-adaptation without interrupting the read and write business.
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:

[0010] 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.

[0011] 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.

[0012] 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.

[0013] 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.

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

[0015] 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.

[0016] 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.

[0017] The technical solution of the present invention has one or more of the following beneficial technical effects:

[0018] (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.

[0019] (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.

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

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

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

[0023] Figure 1 It is a schematic diagram of timing adjustment in RDIMM in the prior art;

[0024] Figure 2 It is a schematic diagram of timing adjustment in the RDIMM of the present invention. DETAILED DESCRIPTION

[0025] 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.

[0026] 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.

[0027] 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.

[0028] 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.

[0029] 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.

[0030] 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.

[0031] 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.

[0032] 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.

[0033] 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.

[0034] 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.

[0035] 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.

[0036] 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:

[0037] 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.

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

[0039] 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.

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

[0041] 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.

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

[0043] In the present invention, pulling the phase of the sampling clock signal (such as the CLK signal) to the left means advancing the phase of the sampling clock signal relative to the current, and pulling the phase of the sampling clock signal (such as the CLK signal) to the right means lagging the phase of the sampling clock signal relative to the current.

[0044] If |A0 - B0| < K and |A1 - B1| < 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 again, where K is a timing deviation threshold that can be configured in the register.

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

[0046] In the present invention, |A0 - B0| or |A1 - B1| is the maximum timing margin 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.

[0047] 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.

[0048] After the second channel enters the margin tuning mode, adjust the delay duration of the third delay module with a set step size (such as the rounded results of K / 2 and -K / 2), thereby adjusting the delay of the CA signal, and test the maximum left timing margin and the maximum right timing margin of the CA signal of the second channel. If the maximum timing margin of the CA signal is < K for two consecutive times, then configure and fix the delay duration of the third delay module at this time, and set the switch register to 1. Configuring and fixing the delay duration of the third delay module at this time also means fixing the delay of the CA signal.

[0049] Exemplarily, following the registers for storing the left timing maximum margins A0 and A1, and the registers for storing the right timing maximum margins B0 and B1 in the foregoing text, if |A0 - B0| < K and |A1 - B1| < K, then configure the delay duration of the third delay module to be fixed.

[0050] When the offset register is 1, the switch 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 main channel, that is, the normal working mode, to perform the data transfer function.

[0051] 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 main channel.

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

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

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

[0055] After that, following the same mode as前述, when the timing deviation is large, the data main channel can also be switched from the second channel to the first channel.

[0056] Exemplarily, after the first channel enters the idle mode, when the timer reaches the preset duration, the first channel enters the margin test mode.

[0057] After the first channel enters the margin test mode, if the timing maximum margin 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 the self-refresh state, set the channel selection register to 1, set the first channel to the normal working mode, and set the second channel to the idle mode.

[0058] Although the present invention takes the CA signal and the CLK signal as examples above, 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.

[0059] The "0" or "1" in the present invention refers to any signal that can indicate logic "0" or "1".

[0060] 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.

[0061] 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, Features: 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, Features: 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, Features: 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, Features: 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 adaptive method according to claim 4, Features: 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, Features: 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 adaptive method according to claim 6, Features: 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.