The present invention relates to a data reception window, and more particularly, to a method of foreground auto-calibrating data reception window.
During memory access operations (e.g. memory read and memory write operations), control signals such as clock CLK, address ADDR, and command CMD signals may be conveyed from memory controller (e.g. a CPU) to memory, such as dynamic random access memory (DRAM). Clock signal CLK may serve as a system reference clock (e.g. a reference clock to the data strobe (DQS) signals, address signal ADDR, and command signal CMD should be aligned). Command signal CMD may be configured to a first value to initiate a read operation, to a second value to initiate a write operation. Address signal ADDR specifies the address (e.g., a selected bank address in the DRAM) from which data is read out during read operations and the address to which data is written during write operations.
In general, memory access operations are not synchronized with system-level control signals CLK/CMD/ADDR. As a result, the data input/output (DQ) signals that are received from the DRAM are not phase aligned with any known clock signal in the memory controller. It is therefore necessary to provide DQS signals along with the DQ signals to the memory controller from the DRAM, so that the DQS clock can be used to establish proper timing relationships for receiving the DQ signals from the DRAM.
For establishing proper timing relationships between the DQS signals and DQ signals, the DQS is given a delayed value to sample the DQ, so as to obtain valid data reception window. Conventionally, the center of the falling/rising edge of the DQS clock is used for sampling the DQ. If the DQ is not successfully sampled at the center time point, the DQS is given another delayed value for sampling the DQ until the DQ is successful received. With different delayed DQSs, which successfully sample the DQs, the valid data reception window or known as the DQ eye is thereof estimated. However, this process may consume a lot of time for the memory controller (e.g. a CPU) to process, which may affect operating system setup/or Booting speed.
It is therefore an objective to provide a method of auto-calibrating data reception window in order to solve the abovementioned problems.
The present disclosure discloses a method of foreground auto-calibrating data reception window for a DRAM system. The method comprises receiving data strobe and data from a DRAM of the DARM system, capturing a data strobe clock according to the received data strobe, generating three time points with a period of the data strobe clock, sampling the data at the three time points, to obtain three sampled data, determining whether to adjust positions of the three time points according to a comparison among the three sampled data, and configuring the valid data reception window according to the positions of the three time points when determining not to adjust the positions of the three time points.
The present disclosure discloses an auto-calibration device for data reception window configuration. The auto-calibration device comprises a data strobe clock acquisition unit, for receiving data strobe from a dynamic random access memory (DRAM) and capturing a data strobe clock, a time point splitting unit, for generating three time points with a period of the data strobe clock, a data sampling unit, for sampling data from the DRAM at the three time points, to obtain three sampled data, and a time point adjusting unit, for determining whether to adjust positions of the three time points according to a comparison among the three sampled data, and configuring a valid data reception window according to the positions of the three time points when determining not to adjust the positions of the three time points.
The present disclosure discloses a dynamic random access memory, DRAM system. The DRAM system comprises a DRAM, a memory controller, connecting to the DRAM, for performing a read operation with the DRAM, and an auto-calibration device, connecting to the memory controller and the DARM, for configuring data reception window to the memory controller, wherein the calibration device comprises a processing unit, for executing a program code, and a storage unit, coupled to the processing unit, for storing the program code, wherein the program code instructs the processing unit to perform the following steps: receiving data strobe and data from a DRAM of the DARM system, capturing a data strobe clock according to the received data strobe, generating three time points with a period of the data strobe clock, sampling the data at the three time points, to obtain three sampled data, determining whether to adjust positions of the three time points according to a comparison among the three sampled data, and configuring the valid data reception window according to the positions of the three time points when determining not to adjust the positions of the three time points.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Reference is made to
Please refer to
Step 300: Receive DQS and DQ from the DRAM.
Step 310: Capture a DQS clock according to the received DQS.
Step 320: Generate three time points with a period of the DQS clock.
Step 330: Sample the DQ at the three time points, to obtain three sampled data.
Step 340: Determine whether to adjust positions of the three time points according to a comparison among the three sampled data.
Step 350: Configure a valid data reception window according to the positions of the three time points when determining not to adjust the positions of the three time points.
According to the foreground auto-calibration process 30, DQ eye boundary is automatically calibrated by using three time points to sample DQs. In other words, the DQ eye boundary is automatically adjusted according to the sampled three DQ results. Thus, there is no need of different delay values for the DQS to sample the DQ to find the valid DQ eye, and thus the present invention can reduce the require time for valid DQ eye estimation and the latency of system booting or operating system setup could be decreased.
For detailed operation of the foreground auto-calibration device 10C, reference is made to
If the previous data Pre-data, the center data Cen-data and the postponed data Pos-data are the same, the auto-calibration device 10C does not adjust the value Te of the center time point dqs_cen, the value Delta_L and the value Delta_R, and determines the valid DQ eye is framed by the previous time point dqs_pre and the postponed time point dqs_pos.
On the other hand, if the previous data Pre-data and postponed data Pos-data are not the same with the center data Cen-data, the previous data Pre-data and the postponed data Pos-data are out of DQ eye boundary. Thus, the foreground auto-calibration device 10C shifts both the previous time point dqs_pre and the postponed time point dqs_pos to be close to the center time point dqs_cen. That is, the value Delta_L and the value Delta_R are decreased by one step. In addition, the foreground auto-calibration device 10C may record the previous time point dqs_pre and the postponed time point dqs_pos out of the DQ eye boundary, so that if the sampled previous data Pre-data and the postponed data Pos-data are within the DQ eye, the auto-calibration device 10C could set the initial value Delata_L and the initial value Delta_R with a bigger value.
If only the previous data Pre-data is not the same with the center data Cen-data and the postponed data Pos-data, and the Delta_L<=Delta_R, the foreground auto-calibration device 10C shifts the center time point dqs_cen to be close to the postponed time point dqs_pos, namely increasing the value Te of center time point dqs_cen by one step. On the other hand, if only the previous data Pre-data is not the same with the center data Cen-data and the postponed data Pos-data and the Delta_L>Delta_R, the foreground auto-calibration device 10C should shift the previous time point dqs_pre to be close to the center time point dqs_cen, namely decreasing the value Delta_L by one step.
If only the postponed data Pos-data is not the same with the center data Cen-data and the previous data Pre-data and the Delta_L>Delta_R, the foreground auto-calibration device 10C should shift the center time point dqs_cen to be close to the previous time point dqs_pre, namely decreasing the value Te of the center time point dqs_cen by one step. On the other hand, if the postponed data Pos-data is not the same with the center data Cen-data and the previous data Pre-data and the Delta_L<=Delta_R, the foreground auto-calibration device 10C shifts the postponed time point dqs_pos to be close to the center time point dqs_cen, namely decreasing the value Delta_R by one step.
Note that, for any adjustment of time point position, the foreground auto-calibration device 10C should sample the DQs at the shifted previous time point dqs_pre, the shifted postponed time point dqs_pos and the shifted center time point dqs_cen, and determines whether the three DQ samples are the same, so as to adjust the DQ eye boundary as abovementioned.
The foreground auto-calibration device 50 loads initial values Te, Detla_L and Detla_R (step 602), and starts receiving DQ (step 604). The foreground auto-calibration device 50 check whether the DQ eye boundary is hit (step 606), which means the sampled data are the same or not. If the previous data Pre-data or the postponed data Pos-data hits the DQ eye boundary (e.g. Pre-data=“1”, but Cen-data and Pos-data=“0”, or Pre-data=“0”, but Cen-data and Pos-data=“1”), the foreground auto-calibration device 50 adjusts the values Te, Detla_L and Detla_R (step 608). If both the previous data Pre-data and the postponed data Pos-data hit the DQ eye boundary (e.g. Pre-data and Pos-data=“1”, but Cen-data=“0”, or Pre-data and Pos-data=“0”, but Cen-data=“0”), the foreground auto-calibration device 50 decreases the values Detla_L and Detla_R (step 610). If no hit (i.e. Pre-data, Cen-data and Pos-data are the same), the auto-calibration device 50 keeps the values Te, Detla_L and Detla_R (step 612). In addition, the foreground auto-calibration device 50 continuously preforms the valid DQ eye boundary calibration for receiving DQ until the DQ transmission finish (steps 614-616).
The abovementioned steps of the processes including suggested steps can be realized by means that could be a hardware, a firmware known as a combination of a hardware device and computer instructions and data that reside as read-only software on the hardware device or an electronic system. Examples of hardware can include analog, digital and mixed circuits known as microcircuit, microchip, or silicon chip. Examples of the electronic system can include a system on chip (SOC), system in package (SiP), a computer on module (COM) and the foreground auto-calibration device 10C and 50.
In conclusion, the present disclosure discloses a method of foreground auto-calibrating the data reception window, and thus the require time for valid DQ eye estimation is reduced. In addition, the valid DQ eye is directly configured to the memory controller by the foreground auto-calibration device, such that the latency of system booting or operating system setup could be decreased. Since the conventional DQS delay sampling method takes a lot of time to find the optimal valid DQ eye, 3-point sampling mechanism is proposed to eliminate the failed DQS delay value.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
9401189 | Ding | Jul 2016 | B1 |
9911478 | Peddu | Mar 2018 | B1 |
20090031091 | Chang | Jan 2009 | A1 |
20180189213 | Bandi | Jul 2018 | A1 |
20200402582 | Yang | Dec 2020 | A1 |
Number | Date | Country | |
---|---|---|---|
20210027817 A1 | Jan 2021 | US |