Write data sampling signal timing monitoring method, monitoring circuit and memory

By generating early and delayed write data sampling signals to monitor the DQS signals in DDR SDRAM, the timing alignment problem of DQS signals and DQ signals is solved, accurate timing monitoring and adjustment is achieved, and the stability of write operations is improved.

CN111243635BActive Publication Date: 2024-12-06CHANGXIN MEMORY TECH INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201811435860.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-28
Publication Date
2024-12-06
Estimated Expiration
2038-11-28

AI Technical Summary

Technical Problem

There is a lack of an accurate and simple method in the prior art to monitor the timing alignment of the DQS signal and the DQ signal in the DDR SDRAM write operation, which makes it difficult to accurately adjust the timing of the DQS signal, affecting the stability of the write operation.

Method used

By generating early and delayed write data sampling signals, these signals are used to sample the data signals, and the timing of the DQS signal is determined based on the sampling results. The sampling results that do not meet the requirements are recorded for the processor to adjust Timing.

Benefits of technology

Accurate and accurate monitoring of DQS signal timing is realized, circuit structure is simplified, resource occupation is reduced, cost and area control is improved, and write operation accuracy is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111243635B_ABST
    Figure CN111243635B_ABST
Patent Text Reader

Abstract

The present invention provides a method, a monitoring circuit and a memory for monitoring the timing of a write data sampling signal. The monitoring method comprises: generating an advance write data sampling signal and a delayed write data sampling signal, wherein the timing of the advance write data sampling signal is ahead of the write data sampling signal, the timing of the delayed write data sampling signal is behind the write data sampling signal, and the time difference between the advance write data sampling signal and the delayed write data sampling signal does not exceed the effective time within one cycle of the write data signal; using the advance write data sampling signal and the delayed write data sampling signal to sample the write data signal respectively, and judging the type of data contained in the sampling result, if only one type of data is contained, judging that the timing is accurate, otherwise judging that the timing does not meet the requirements. The present invention can accurately monitor the timing of the write data sampling signal when writing, so that the processor can determine how to adjust the timing of the write data sampling signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of memory technology, and in particular to a method for monitoring the timing of a write data sampling signal, and also to a circuit for monitoring the timing of a write data sampling signal and a memory. Background Art

[0002] With the rapid development of memory, in order to provide memory with better performance, the requirements for internal timing control of memory are becoming higher and higher.

[0003] In the write operation of double data rate synchronous dynamic random access memory (DDR SDRAM), the write data sampling signal (DQS signal) is used as the clock for writing data. During the write operation, the edge of the DQS signal should be aligned with the center of the data signal (DQ signal) in terms of timing (considering the timing margin, it may also be allowed to be basically aligned at the center), such as Figure 1 As shown in the figure, the most stable setup and hold window can be obtained. However, the DQS signal and the DQ signal may have different delays at the interface, resulting in the edge of the DQS signal not being aligned with the center of the DQ signal. Therefore, it is necessary to monitor whether the DQS signal timing meets the alignment requirements, which helps to determine whether the DQS signal timing needs to be adjusted and how to adjust it.

[0004] However, there is currently no accurate and simple monitoring method, so it is difficult to accurately adjust the DQS signal. Summary of the invention

[0005] The object of the present invention is to provide a method for monitoring the timing of a write data sampling signal to solve one or more problems existing in the prior art.

[0006] Another object of the present invention is to provide a write data sampling signal timing monitoring circuit and a memory to implement the above monitoring method.

[0007] According to one aspect of the present invention, a method for monitoring the timing of a write data sampling signal is provided, which is applied to a write operation and includes:

[0008] Generate an advance write data sampling signal, wherein the timing of the advance write data sampling signal is earlier than that of the write data sampling signal;

[0009] Generate a delayed write data sampling signal, the timing of which lags behind the write data sampling signal; the time difference between the advance write data sampling signal and the delayed write data sampling signal does not exceed the effective time within one cycle of the data signal;

[0010] The data signal is sampled respectively by using the advance write data sampling signal and the delay write data sampling signal to obtain a sampling result;

[0011] Determine the data type included in the sampling result. If only one type of data is included, determine that the timing of the write data sampling signal meets the requirements. Otherwise, if two types of data are included, determine that the timing of the write data sampling signal does not meet the requirements.

[0012] In an exemplary embodiment of the present invention, the advance write data sampling signal includes a first advance write data sampling signal to an Nth advance write data sampling signal, and the delayed write data sampling signal includes a first delayed write data sampling signal to an Nth delayed write data sampling signal, where N is a natural number; the timing sequence of the advance write data sampling signal and the delayed write data sampling signal corresponds one to one;

[0013] The timings of the N advance write data sampling signals are different, and the timings of the N delayed write data sampling signals are different; the time that any advance write data sampling signal is ahead of the write data sampling signal is equal to the time that the corresponding delayed write data sampling signal lags behind the write data sampling signal; and the time difference between the advance write data sampling signal and the delayed write data sampling signal that has the largest time difference with the write data sampling signal does not exceed the effective time of one cycle of the data signal.

[0014] In an exemplary embodiment of the present invention, the sampling results that do not meet the requirements are saved.

[0015] In an exemplary embodiment of the present invention, when the monitoring method is executed multiple times and generates several sampling results that do not meet the requirements, it also includes: calculating the absolute value of the difference between the number of two data types in the several sampling results that do not meet the requirements, and using the sampling result with the smallest absolute value of the difference to cover the other sampling results.

[0016] In an exemplary embodiment of the present invention, N=2; when the sampling result is 4'b0000 or 4'b1111, it is determined that the write data sampling signal timing meets the requirements; when the sampling result is 4'b0111, 4'b0001, 4'b1000, 4'b1110, 4'b1100 or 4'b0011, the sampling result is saved.

[0017] In an exemplary embodiment of the present invention, the advance write data sampling signal and the delay write data sampling signal are both generated by delaying the write data sampling signal.

[0018] According to another aspect of the present invention, a write data sampling signal timing monitoring circuit is provided, which is used to implement the above method, and includes:

[0019] A signal generating module, comprising a plurality of output terminals, for generating and sending the advance write data sampling signal and the delay write data sampling signal;

[0020] A trigger module, connected to the data signal terminal and the output terminal of the signal generating module, receives the data signal, the advance write data sampling signal and the delay write data sampling signal, and is used to trigger the data signal by using the advance write data sampling signal and the delay write data sampling signal to perform sampling;

[0021] A judgment module is connected to the trigger module, receives the sampling result, and is used to judge whether the timing of the write data sampling signal meets the requirements according to the data type included in the sampling result.

[0022] In an exemplary embodiment of the present invention, the signal generating module includes a plurality of buffers connected to the write data sampling signal terminal and used to perform different delays on the write data sampling signal to generate the advance write data sampling signal and the delayed write data sampling signal.

[0023] In an exemplary embodiment of the present invention, the trigger module includes a plurality of triggers, and the plurality of triggers are connected to the output terminals of the signal generating module in a one-to-one correspondence.

[0024] In an exemplary embodiment of the present invention, the judgment module includes a comparator for determining the type of data included in the sampling result.

[0025] In an exemplary embodiment of the present invention, the monitoring circuit further includes a storage module, connected to the judgment module, and configured to store the sampling result.

[0026] In an exemplary embodiment of the present invention, the judgment module includes a comparator and an operation module, the comparator is used to determine the data type contained in the sampling result; the operation module is used to calculate the absolute value of the difference between the number of two data types in the saved sampling results, so as to overwrite the other sampling results with the sampling result with the smallest absolute value of the difference through the saving module.

[0027] In an exemplary embodiment of the present invention, the judgment module further includes a calculation module for calculating the absolute value of the difference between the numbers of two data types, so that the sampling result with the smallest absolute value of the difference can be used to overwrite other sampling results through the storage module.

[0028] According to yet another aspect of the present invention, a memory is provided, comprising the above-mentioned write data sampling signal timing monitoring circuit.

[0029] In an exemplary embodiment of the present invention, it also includes: a data selector, connected to multiple data signal terminals of the memory and the trigger module of the monitoring circuit, used to select a data signal from the multiple data signals and transmit it to the trigger module for sampling.

[0030] In an exemplary embodiment of the present invention, the memory is any one of a fourth-generation double rate synchronous dynamic random access memory, a fourth-generation low power double rate synchronous dynamic random access memory, a fifth-generation double rate synchronous dynamic random access memory, and a fifth-generation low power double rate synchronous dynamic random access memory.

[0031] In the writing operation, the present invention uses two signals that are ahead of and behind the writing data sampling signal to sample the data signal, and determines whether the writing data sampling signal is aligned with the center of the data signal according to the number of data types contained in the sampling result. On the one hand, the timing of the writing data sampling signal during writing can be accurately monitored in real time, so that the processor can determine how to adjust the timing of the writing data sampling signal; on the other hand, the circuit structure for implementing this method is simple and easy, and the circuit resources are less occupied, which is conducive to cost and area control.

[0032] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0034] Figure 1 This is the eye diagram of the DDR data signal;

[0035] Figure 2 It is a schematic diagram of the write data transmission method of DDR DRAM;

[0036] Figure 3 This is a flow chart of the DQS signal timing monitoring method of the present invention;

[0037] Figure 4 The eye diagram corresponding to the DQS signal timing monitoring method of the present invention;

[0038] Figure 5 Another method flow chart of the DQS signal timing monitoring method of the present invention;

[0039] Figure 6It is a structural schematic diagram of a DQS signal timing monitoring circuit of the present invention.

[0040] In the figure: 101, signal generating module; 102, triggering module; 103, judging module; 104, saving module. DETAILED DESCRIPTION

[0041] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that the present invention will be comprehensive and complete and fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their detailed description will be omitted.

[0042] In the related art, taking the fourth generation low power double data rate synchronous dynamic random access memory (LPDDR4) as an example, Figure 2 As shown, the data signal (hereinafter referred to as the DQ signal) receiving module is usually next to the DQ input port, and the write data sampling signal (hereinafter referred to as the DQS signal) needs to be pulled from the DQS input port to each DQ receiving module. Therefore, when performing a write operation, the internal delay of the DQS signal in the receiving direction is larger than the internal delay of the DQ signal, resulting in the edge of the DQS signal being unable to be aligned with the center of the DQ signal in timing, affecting the accurate triggering of the write operation.

[0043] To improve this situation, the memory requires the controller to compensate for the delay difference between the DQS signal and the DQ signal, and send the DQS signal earlier than the DQ signal to ensure that the two can be aligned. The JEDEC standard defines this advance sending time, namely tDQS2DQ. The standard requires that the range of tDQS2DQ of LPDDR4 is 200ps to 800ps. At the same time, LPDDR4 also tracks and adjusts the value of tDQS2DQ through an oscillator to ensure that it can accurately make up for the timing gap between the DQS signal and the DS signal.

[0044] After sending the DQS signal, confirm whether its edge is aligned with the center of the DQ signal in timing, and judge whether the currently set tDQS2DQ value is appropriate. If it is aligned, there is no need to adjust the value of tDQS2DQ. If it is not aligned, the value of tDQS2DQ needs to be adjusted. One way to judge that can be realized at present is to change the value of tDQS2DQ through the DRAM controller to send a read or write operation to confirm. The process is cumbersome. If the amount of data sent is too small, it cannot accurately reflect the working situation. If the amount of data sent is too large, the bandwidth will be wasted. Moreover, this method will have an error of 20ps. For LPDDR5 and DDR5, the transmission rate needs to reach 6400Mbps. At this time, one clock cycle is only 156.25ps, and the effective part is likely to be only 100ps. The 20ps error accuracy may not be enough to adjust the value of tDQS2DQ.

[0045] In an embodiment of the present invention, a DQS signal timing monitoring method is provided, which is used to monitor whether the edge of the DQS signal is aligned with the center of the DQ signal in timing when the memory is performing a write operation. The monitoring method can be used for timing monitoring of dynamic random access memory, such as the fourth-generation double data rate synchronous dynamic random access memory (DDR4), the fourth-generation low-power double data rate synchronous dynamic random access memory (LPDDR4), the fifth-generation double data rate synchronous dynamic random access memory (DDR5), the fifth-generation low-power double data rate synchronous dynamic random access memory (LPDDR5), etc., which are not listed one by one here, and LPDDR4 is used as an example for explanation below.

[0046] like Figure 3 As shown, the DQS signal timing monitoring method according to the embodiment of the present invention includes:

[0047] Step S110, generating an advanced DQS signal, the timing of the advanced DQS signal is ahead of the DQS signal; generating a delayed DQS signal, the timing of the delayed DQS signal lags behind the DQS signal, and the time difference between the advanced DQS signal and the delayed DQS signal does not exceed the effective time within one cycle of the DQ signal;

[0048] Step S210, sampling the DQ signal using the advanced DQS signal and the delayed DQS signal respectively to obtain a sampling result;

[0049] Step S310, determining the data type included in the sampling result, if only one type of data is included, determining that the DQS signal timing meets the requirements, otherwise, if two types of data are included, determining that the DQS signal timing does not meet the requirements.

[0050] refer to Figure 4, the DQ signal is sampled using two signals that are ahead of and behind the DQS. Since the time difference between the two signals is within the effective time of a DQ signal cycle, if the sampling results are consistent, it means that the advanced DQS signal and the delayed DQS signal are both within the effective window of the DQ signal, and the timing of the DQS signal between the two meets the requirements. If different sampling results appear in the advanced DQS signal and the delayed DQS signal, it means that one of the advanced DQS signal and the delayed DQS signal does not correspond to the effective window of the DQ signal, and the DQS signal between the two must have deviated from the center of the DQ signal and is not aligned with it, which does not meet the requirements.

[0051] The time difference between the advanced DQS signal and the delayed DQS signal should not exceed the effective time within one cycle of the data signal to ensure that the sampling result can accurately reflect whether the timing is correct. If it exceeds the effective time within one cycle, there will inevitably be an advanced or delayed DQS signal that exceeds the effective window range of the DQ signal. Regardless of whether the DQS signal is aligned with the center of the DQ signal, the sampling result will have two data types. If the timing does not meet the requirements, it may cause misjudgment. If it is not within the effective time, the sampling result will not accurately reflect the accuracy of the timing.

[0052] Since the data type contained in the sampling result can only be 0 or 1, if the results of the advanced DQS signal and the delayed DQS signal are both 0 in each sampling result, it means that the data transmitted by the DQ signal at this time is 0, and the DQS signal is aligned with the center of the DQ signal. The same applies if both are 1. If there are both 0 and 1 in the sampling result, it means that the DQS signal is not aligned with the center of the DQ signal, and the offset is large and does not meet the requirements. Based on this principle, it is convenient and accurate to know whether the timing of the DQS signal when writing meets the requirements.

[0053] The method of the present invention can be used for timing monitoring in the test phase, and can also be used for timing monitoring when the user is using the device.

[0054] The timing monitoring method according to the embodiment of the present invention is described in detail below:

[0055] In this exemplary embodiment, the advance DQS signal in step S110 includes the first advance DQS signal to the Nth advance DQS signal, and the delayed DQS signal includes the first delayed DQS signal to the Nth delayed DQS signal; the timing sequence of the advance DQS signal and the delayed DQS signal corresponds to each other, and N is a natural number. The timing sequences of the N advance DQS signals are different, and the timing sequences of the N delayed DQS signals are different; the time that any advance DQS signal is ahead of the DQS signal is equal to the time that the corresponding delayed DQS signal lags behind the DQS signal; and the time difference between the advance DQS signal and the delayed DQS signal with the largest timing difference with the DQS signal does not exceed the effective time of one cycle of the DQS signal.

[0056] Specifically, both the advance DQS signal and the delayed DQS signal may include multiple signals, and the number is equal, that is, the advance DQS signal includes the first advance DQS signal, the second advance DQS signal, ..., the N-1th advance DQS signal, and the Nth advance DQS signal, and the delayed DQS signal includes the first delayed DQS signal, the second delayed DQS signal, ..., the N-1th delayed DQS signal, and the Nth delayed DQS signal. According to the timing sequence, the first advance DQS signal corresponds to the first delayed DQS signal, the second advance DQS signal corresponds to the second delayed DQS signal, ..., and the Nth advance DQS signal corresponds to the Nth delayed DQS signal. At the same time, the time that the first advance DQS signal is ahead of the DQS signal is equal to the time that the first delayed DQS signal lags behind the DQS signal, the time that the second advance DQS signal is ahead of the DQS signal is equal to the time that the second delayed DQS signal lags behind the DQS signal, ..., the time that the Nth advance DQS signal is ahead of the DQS signal is equal to the time that the Nth delayed DQS signal lags behind the DQS signal, and the same advance and delay times are set to facilitate the determination of whether the sampling result meets the requirements. In addition, the time difference between the Nth advance DQS signal and the Nth delayed DQS signal does not exceed the effective time of one cycle of the DQ signal. When N = 1, the timing of the DQS signal can be detected by sampling and monitoring only through one advance DQS signal and one delayed DQS signal, but the accuracy is low. The larger N is, the more accurate it is necessary to sample and monitor through multiple advance DQS signals and multiple delayed DQS signals at the same time.

[0057] For example, a DQ signal of LPDDR4 has a period of 156.25 picoseconds, wherein the effective time is 100 picoseconds. In an exemplary embodiment, N=2, such as Figure 4As shown, the advance DQS signal includes a first advance DQS signal and a second advance DQS signal, and correspondingly, the delayed DQS signal includes a first delayed DQS signal and a second delayed DQS signal. The time difference between the first advance DQS signal and the DQS signal is -20 picoseconds, and the time difference between the second advance DQS signal and the DQS signal is -50 picoseconds. The time difference between the first delayed DQS signal and the DQS signal is +20 picoseconds, and the time difference between the second delayed DQS signal and the DQS signal is +50 picoseconds.

[0058] In step S210 and step S310, four signals are used to sample DQ data at the same time, and the sampling results are arranged in order from early to late in the timing. If the sampling result contains only one kind of data, that is, the sampling result is 4'b0000 or 4'b1111, it is judged that the timing of the DQS signal meets the requirements. If the sampling result contains two kinds of data, that is, the sampling results are 4'b0111, 4'b0001, 4'b1000, 4'b1110, 4'b1100 or 4'b0011, it is judged that the timing of the DQS signal does not meet the requirements. For the sampling data whose timing does not meet the requirements, 4'b0111 indicates that the data transmitted by the DQ data is 1, and the second advanced DQS signal is located on the left side of the DQ signal valid window, indicating that the DQS signal is not aligned with the center of the DQ signal and is located to the left, that is, the timing of the DQS signal is early, and it is necessary to further delay the sending of the DQS signal, that is, to reduce the value of tDQS2DQ. Similarly, 4'b1110 indicates that the data representing the DQ data transmission is 1, and the second delayed DQS signal is located on the right side of the DQ signal valid window, indicating that the DQS signal is not aligned with the center of the DQ signal and is located to the right, that is, the timing of the DQS signal is late, and the DQS signal needs to be sent in advance, that is, the value of tDQS2DQ needs to be increased. For 4'b0001 and 4'b1000, only the transmitted data is different, and the timing analysis is the same. If the sampling result is 4'b1100, it means that both signals are located outside the DQ signal valid window, which may be an advanced DQS signal or a delayed DQS signal. At this time, it is impossible to determine what data is transmitted, and it means that the center deviation between the DQS signal and the DQ signal is large, which does not meet the requirements. The value of tDQS2DQ needs to be adjusted, but it cannot be determined whether the DQS signal timing is advanced or delayed, so it is impossible to directly infer whether the value of tDQS2DQ should be increased or decreased. The same applies when the sampling result is 4'b0011.

[0059] The setting of the time difference between the advanced DQS signal and the delayed DQS signal and the DQS signal needs to consider the timing margin of the memory. Since the timing margin determines the degree of deviation of the DQS signal from the center of the DQ signal, if the timing margin is small, it means that the DQS signal is required to be strictly aligned with the center of the DQ signal. At this time, the time difference between the advanced DQS signal and the delayed DQS signal and the DQS signal needs to be set larger. Once the DQS signal deviates slightly, the phenomenon that the advanced DQS signal or the delayed DQS signal is outside the effective window of the DQ signal will occur (that is, two data types will appear), indicating that the DQS signal is not strictly aligned with the center of the DQ signal and does not meet the requirements. If the timing margin is large, it means that the DQS is allowed to be basically aligned within a certain range before and after the center of the DQ signal. At this time, the time difference between the advanced DQS signal and the delayed DQS signal and the DQS signal can be set to be small. As long as the DQS signal deviates within the timing margin setting range, the phenomenon that the advanced DQS signal or the delayed DQS signal does not correspond to the valid window of the DQ signal will not occur (that is, only one data type will appear). It is considered that the DQS signal is currently basically aligned with the center of the DQ signal and meets the requirements. In this exemplary embodiment, the setting time of -20 and +20 picoseconds is set according to the minimum timing margin acceptable to the system, and the setting time of -50 and +50 picoseconds is set according to the maximum timing margin acceptable to the system (long-term stable working margin). The processor can know whether the timing margin is appropriate based on the sampling results. In other exemplary embodiments of the present invention, the time difference between each advanced DQS signal and the delayed DQS signal and the DQS signal can also be set to other values ​​according to the accuracy requirements, which are not listed here one by one.

[0060] In other exemplary embodiments of the present invention, N may also be other values, for example, N=1, and the sampling results may be 4'b11, 4'b00, 4'b01, 4'b10. 4'b11 and 4'b00 indicate that the DQS signal timing meets the requirements, and 4'b01 and 4'b10 indicate that it does not meet the requirements. For another example, N=3, and the sampling results may be 4'b01111, 4'b00001, 4'b00011, 4'b00111, ..., etc. 4'b11111 and 4'b00000 indicate that it meets the requirements, and other results indicate that it does not meet the requirements. Similarly, when N is other values, it can also be inferred whether the DQS signal is aligned with the center of the DQ signal, and the judgment method is the same, which will not be repeated here.

[0061] In addition, in other exemplary embodiments of the present invention, the time that any advanced DQS signal is ahead of the DQS signal may not be equal to the time that the corresponding delayed DQS signal lags behind the DQS signal, as long as the set timing difference can ensure that even if the DQS signal is offset in the center of the DQ signal window, the system's timing margin is sufficient to accept the deviation.

[0062] In this exemplary embodiment, Figure 5 As shown, the monitoring method of the present invention also includes:

[0063] Step S410, saving the sampling results that do not meet the timing requirements.

[0064] The sampling results that do not meet the timing requirements are saved, and the processor can read the monitoring results to determine whether the value of tDQS2DQ is wrong, so as to further adjust the value of tDQS2DQ. The sampling results can be saved in the register and read by setting the relevant read instructions in the mode register of the memory.

[0065] When the monitoring method of the present invention is executed multiple times and generates several sampling results whose timing does not meet the requirements, in the step S410, when saving the several sampling results whose timing does not meet the requirements, the absolute value of the difference between the number of two types of data in the several sampling results whose timing does not meet the requirements is calculated, and the sampling result with the smallest absolute value of the difference is used to overwrite the other sampling results.

[0066] The smaller the absolute value of the difference between the number of two types of data in the sampling results that do not meet the timing requirements, the closer the number of the two types of data is, and the more serious the non-compliance is. Using the most serious non-compliance result to cover other non-compliance results helps the processor to know that the DQS signal has the most serious timing problem when reading the result, and it is urgent to adjust. For example, taking the sampling results that may not meet the timing requirements in N=2 as an example, when the sampling results are 4'b1100 or 4'b0011, the number of the two types of data is equal, the absolute value of the difference is 0, and the DQS signal timing problem is the most serious. The sampling results are 4'b0111, 4'b0001, 4'b1000 or 4'b1110, the number of the two types of data is not equal, and the absolute value of the difference is 2, indicating that the DQS signal has a slight timing problem. Once the sampling results of 4'b1100 or 4'b0011 appear, it is used to cover other erroneous results.

[0067] In this exemplary embodiment, both the advanced DQS signal and the delayed DQS signal can be generated by phase-delaying the DQS signal through a phase delay circuit, and the generated advanced DQS signal and the delayed DQS signal can ensure synchronization with the DQS signal to accurately determine the timing of the DQS signal. The phase delay circuit can be a buffer.

[0068] The embodiment of the present invention further provides a DQS signal timing monitoring circuit for implementing the above monitoring method, such as Figure 5As shown, it includes: a signal generating module 101, a triggering module 102 and a judging module 103. The signal generating module 101 includes a plurality of output terminals, which are used to generate and send an advanced DQS signal and a delayed DQS signal. The triggering module 102 is connected to the DQ signal terminal and the output terminal of the signal generating module, receives the DQ signal, the advanced DQS signal and the delayed DQS signal, and is used to trigger the DQ signal using the advanced DQS signal and the delayed DQS signal for sampling. The judging module 103 is connected to the triggering module, receives the sampling result, and is used to judge whether the timing meets the requirements according to the data type contained in the sampling result.

[0069] In this exemplary embodiment, the signal generation module 101 includes a plurality of buffers connected to the DQS signal terminal for performing different phase delays on the DQS signal to generate an advanced DQS signal and a delayed DQS signal. Figure 6 As shown, when N=2, four buffers are required to delay the DQS phase respectively to generate four different timings of advanced DQS signals and delayed DQS signals. The buffer can adopt a common two-series CMOS tube structure or other structures, which are not specifically limited in the present invention.

[0070] In this exemplary embodiment, the trigger module 102 includes a plurality of triggers, which are connected to the output end of the signal generation module in a one-to-one correspondence to generate an advanced DQS signal and a delayed DQS signal. As shown in the figure, when N=2, a total of four triggers are required, which are connected to four buffers in a one-to-one correspondence to trigger sampling of the DQ signal respectively. The trigger includes but is not limited to a pulse type trigger, and the present invention does not specifically limit this.

[0071] In this exemplary embodiment, the judgment module 103 includes a comparator for determining the type of data in the sampling result. The comparator may adopt an XOR gate structure, and output different results by comparing whether the phase of the advanced DQS signal or the delayed DQS signal is the same as the preset phase, thereby determining the type of data contained in the sampling result. The comparator may also adopt other structures, and the present invention does not specifically limit this.

[0072] In this exemplary embodiment, the monitoring circuit further includes a storage module 104, which is connected to the judgment module and stores the sampling results whose timing does not meet the requirements. The storage module can be a register, which stores the results for the processor to read.

[0073] In another exemplary embodiment of the present invention, the judgment module 103 may also include a comparator and an operation module. The comparator is used to determine the type of data in the sampling result. As mentioned above, the comparator can adopt an XOR gate structure, and output different results by comparing whether the phase of the advanced DQS signal or the delayed DQS signal is the same as the preset phase, so as to determine the type of data contained in the sampling result. The operation module can calculate the absolute value of the difference between the number of two types of data in the saved sampling results through a digital logic circuit, and overwrite other sampling results with the sampling result with the smallest absolute value of the difference through the storage module, so that the processor can know the most serious timing situation and make appropriate adjustments. The digital logic circuit can adopt an existing circuit structure, and the present invention does not specifically limit this.

[0074] In the above implementation, the data signal for monitoring comes from the DQ0 pin. In other embodiments of the present invention, other DQ pins may also be used for monitoring.

[0075] The embodiment of the present invention also provides a memory, including the above-mentioned DQS signal timing monitoring circuit, which can accurately provide timing monitoring results, which is beneficial for the processor to timely adjust the signal timing when writing data and more accurately perform the write operation. The memory can be any one of the fourth-generation double-rate synchronous dynamic random access memory, the fourth-generation low-power double-rate synchronous dynamic random access memory, the fifth-generation double-rate synchronous dynamic random access memory, and the fifth-generation low-power double-rate synchronous dynamic random access memory.

[0076] In this exemplary embodiment, the memory also includes a data selector, which connects multiple DQ terminals of the memory and a trigger module in the monitoring circuit, and is used to select a DQ signal from multiple DQ signals and transmit it to the trigger module for monitoring. Selecting only one DQ terminal from DQ0 to 7 for detection can not only meet the requirements of monitoring timing, but also save circuit resources. At the same time, different DQ terminals can also be used for monitoring at different times to effectively utilize resources, while also being able to fully and comprehensively monitor.

[0077] The monitoring method and monitoring circuit of the present invention use two signals that are ahead of and behind DQS to sample the DQ signal, and determine whether the DQS signal is aligned with the center of the DQ signal according to the number of data types contained in the sampling result. On the one hand, the timing of the DQS signal during writing can be accurately monitored so that the processor can determine how to adjust the timing of the DQS signal; on the other hand, the circuit structure for implementing the method is simple and easy, and the circuit resources are less occupied, which is conducive to cost and area control.

[0078] Although relative terms such as "upper" and "lower" are used in this specification to describe the relative relationship of one component of the illustration to another component, these terms are used in this specification only for convenience, such as according to the orientation of the examples described in the drawings. It is understood that if the device of the illustration is turned upside down, the component described as "upper" will become the component "lower". When a structure is "on" other structures, it may mean that the structure is formed integrally on the other structure, or that the structure is "directly" disposed on the other structure, or that the structure is "indirectly" disposed on the other structure through another structure.

[0079] The terms "a", "an", "the", "said" and "at least one" are used to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusive meaning and mean that additional elements / components / etc. may be present in addition to the listed elements / components / etc.

[0080] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present invention are indicated by the appended claims.

Claims

1. A method for monitoring the timing of a write data sampling signal, applied to a write operation, characterized in that: include: Generate an advance write data sampling signal, wherein the timing of the advance write data sampling signal is earlier than that of the write data sampling signal; Generate a delayed write data sampling signal, the timing of which lags behind the write data sampling signal; the time difference between the advance write data sampling signal and the delayed write data sampling signal does not exceed the effective time within one cycle of the data signal; The data signal is sampled respectively by using the advance write data sampling signal and the delay write data sampling signal to obtain a sampling result; Determine the data type included in the sampling result. If only one type of data is included, determine that the timing of the write data sampling signal meets the requirements. Otherwise, if two types of data are included, determine that the timing of the write data sampling signal does not meet the requirements.

2. The write data sampling signal timing monitoring method according to claim 1, characterized in that: The advance write data sampling signal includes a first advance write data sampling signal to an Nth advance write data sampling signal, and the delayed write data sampling signal includes a first delayed write data sampling signal to an Nth delayed write data sampling signal, where N is a natural number; The timing sequence of the advance write data sampling signal and the delay write data sampling signal corresponds one to one; The timings of the N advance write data sampling signals are different, and the timings of the N delayed write data sampling signals are different; the time that any advance write data sampling signal is ahead of the write data sampling signal is equal to the time that the corresponding delayed write data sampling signal lags behind the write data sampling signal; and the time difference between the advance write data sampling signal and the delayed write data sampling signal that has the largest time difference with the write data sampling signal does not exceed the effective time of one cycle of the data signal.

3. The method for monitoring the timing of a write data sampling signal according to claim 1, characterized in that: Also includes: The sampling results that do not meet the requirements are saved.

4. The method for monitoring the timing of a write data sampling signal according to claim 3, characterized in that: When the monitoring method is executed multiple times and generates a number of sampling results that do not meet the requirements, it also includes: The absolute value of the difference between the numbers of two types of data in a number of sampling results whose timing does not meet the requirements is calculated, and the sampling result with the smallest absolute value of the difference is used to cover the other sampling results.

5. The method for monitoring the timing of a write data sampling signal according to claim 2, characterized in that: The N=2; when the sampling result is 4'b0000 or 4'b1111, it is determined that the timing of the write data sampling signal meets the requirement; when the sampling result is 4'b0111, 4'b0001, 4'b1000, 4'b1110, 4'b1100 or 4'b0011, the sampling result is saved.

6. The method for monitoring the timing of a write data sampling signal according to claim 1, characterized in that: The advance write data sampling signal and the delay write data sampling signal are both generated by delaying the write data sampling signal.

7. A write data sampling signal timing monitoring circuit, used to implement the method according to any one of claims 1 to 6, characterized in that: include: A signal generating module, comprising a plurality of output terminals, for generating and sending the advance write data sampling signal and the delay write data sampling signal; A trigger module, connected to the data signal terminal and the output terminal of the signal generating module, receives the data signal, the advance write data sampling signal and the delay write data sampling signal, and is used to trigger the data signal by using the advance write data sampling signal and the delay write data sampling signal to perform sampling; A judgment module is connected to the trigger module, receives the sampling result, and is used to judge whether the timing of the write data sampling signal meets the requirements according to the data type included in the sampling result.

8. The write data sampling signal timing monitoring circuit according to claim 7, characterized in that: The signal generating module includes a plurality of buffers, which are connected to the write data sampling signal terminal and are used to perform different delays on the write data sampling signal to generate the advance write data sampling signal and the delay write data sampling signal.

9. The write data sampling signal timing monitoring circuit according to claim 7, characterized in that: The trigger module includes a plurality of triggers, and the plurality of triggers are connected to the output ends of the signal generating module in a one-to-one correspondence.

10. The write data sampling signal timing monitoring circuit according to claim 7, characterized in that: The judgment module includes a comparator for determining the type of data included in the sampling result.

11. The write data sampling signal timing monitoring circuit according to claim 10, characterized in that: Also includes: A saving module is connected to the judging module and is used to save the sampling results that do not meet the requirements.

12. The write data sampling signal timing monitoring circuit according to claim 11, characterized in that: The judgment module includes a comparator and an operation module, the comparator is used to determine the data type contained in the sampling result; the operation module is used to calculate the absolute value of the difference between the number of two data types in the saved sampling results, so as to overwrite the other sampling results with the sampling result with the smallest absolute value of the difference through the saving module.

13. A memory, characterized in that: It comprises a write data sampling signal timing monitoring circuit as described in any one of claims 7-12.

14. The memory according to claim 13, characterized in that: Also includes: A data selector is connected to the multiple data signal terminals of the memory and the trigger module of the monitoring circuit, and is used to select a data signal from the multiple data signals and transmit it to the trigger module for sampling.

15. The memory according to claim 14, characterized in that: The memory is any one of a fourth-generation double-rate synchronous dynamic random access memory, a fourth-generation low-power double-rate synchronous dynamic random access memory, a fifth-generation double-rate synchronous dynamic random access memory, and a fifth-generation low-power double-rate synchronous dynamic random access memory.

Citation Information

Patent Citations

  • Interface circuit

    CN101131859A

  • Memory control circuit and method for controlling data reading program of memory module

    CN104424984A

  • Write data sampling signal time sequence monitoring circuit and memory

    CN208954638U

  • Memory interface circuit

    JP2013004131A

  • Method and Apparatus for Aligning Signals

    US20150100815A1