An application method and system based on binary search in LPDDR5 write training
By using the dichotomy method to divide and update the DQ delay interval in LPDDR5 signal transmission, the problem of long training time caused by the inconsistency between the write clock and data delay in LPDDR5 is solved, fast and efficient delay interval determination is achieved, and power consumption and circuit complexity are reduced. .
Patent Information
- Application Number
- CN202410894082.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-04
AI Technical Summary
In LPDDR5/LPDDR5X, the delay between the write clock WCK and the write data DQ is inconsistent, resulting in a long write training time. The existing technology requires mechanical adjustment of the DQ delay to find the appropriate delay interval, which increases the circuit structure power consumption and preprocessing time. .
Using a method based on the dichotomy method, during the LPDDR5 signal transmission process, the target clock interval is divided by the initial delay point a and the end point b, the DQ delay value is divided evenly, and the update interval is intercepted through the quadratic function and the dichotomy method to quickly determine the DQ Correct read and write boundary values for signals.
It significantly shortens the writing training time, greatly improves the training speed, reduces power consumption, and no longer needs to wait for particle oscillation measurement time, simplifying the circuit structure.
Smart Images

Figure CN118430599B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of memory data reading and writing, and more specifically, to an application method and system based on binary search in LPDDR5 write training. Background Art
[0002] In today's LPDDR5 / LPDDR5X, the maximum data transmission rate can reach 6400Mbs / 8533Mbps. In the high-frequency state, since the write clock WCK and the write data DQ are not synchronized (in order to reduce power and timing convergence), in other words, the delay on the clock line and the data line is inconsistent, so it is necessary to find the most appropriate phase relationship between WCK and DQ through training. Usually, the phase relationship between WCK and DQ that can be correctly read and written at high frequencies is not a fixed value, but a range. The values within this range can guarantee normal reading and writing, but in order to ensure the quality of the eye diagram, the middle value within this range will be selected as the final result. The LPDDR5 protocol stipulates that DQ must arrive at the particle later than WCK, so in the existing technical solution, the approximate time that WCK is ahead of DQ will be found through the oscillation of the particle, and the initial value of the delay of the DQ signal will be determined by this approximate time; after determining the initial value of the DQ delay, while continuously increasing the DQ delay, measure whether the reading and writing are normal, and you can find out in what range the DQ delay can guarantee the normal reading and writing of data.
[0003] After finding the initial point, the existing technology will mechanically increase the DQ delay to find the delay interval that can maintain correct reading and writing. It takes a long time to find a suitable interval in this way, because parameters such as DFE and VREF need to be adjusted during the write training process, and the process of finding the interval will be repeated many times, which will inevitably take a long time to perform write training.
[0004] In order to complete the write training as quickly as possible, the LPDDR5 protocol stipulates that the particles need to have an oscillation function, which can detect the delay difference between the WCK and DQ signal lines in order to determine the initial value of the DQ delay. However, this undoubtedly increases the circuit structure of the particles, increases the power consumption of the particles, and increases the time spent on preprocessing before write training (it is necessary to wait for the oscillation results of the particles and read them back, and then convert units, estimate, etc.).
[0005] Therefore, it is necessary to develop a method to quickly and efficiently find the normal reading and writing boundary interval of DQ delay. Summary of the invention
[0006] The present invention overcomes the defects of the prior art and proposes an application method and system based on dichotomy in LPDDR5 write training.
[0007] A first aspect of the present invention provides an application method based on dichotomy in LPDDR5 write training, comprising:
[0008] In the preset LPDDR5 signal transmission process, the initial delay on the DQ signal is obtained and marked as the initial point a, 2 ui clock cycles are added based on the initial point, and the target clock interval is established based on the initial point a and 2ui. The end point 2ui unit position of the target clock interval is marked as the end point b;
[0009] S1: In the target clock interval, three DQ delay values are evenly divided, namely DQ delay1=a+0.5*ui, DQ delay2=a+1*ui, and DQ delay3=a+1.5*ui. The three DQ delay values are equally spaced. Based on the preset LPDDR5 signal transmission, write data tests are performed on the three DQ delay values respectively. Through the test, the DQ delay values when reading and writing data correctly and incorrectly are found and marked, and the error point and the correct point are obtained. Based on the process of finding the zero point of a quasi-quadratic function, the interval where the two zero points are located is found. The specific finding process is to obtain the nearest correct point in the positive direction of point a and mark it as the first correct point, obtain the nearest error point in the negative direction from the first correct point, and mark it as the first error point, and the interval formed by the first error point and the first correct point is the first interval;
[0010] S2: Based on point b, the nearest correct point is obtained in the negative direction and marked as the second correct point. Based on the second correct point, the nearest incorrect point is obtained in the positive direction and marked as the second incorrect point. The interval formed by the second correct point and the second incorrect point is the second interval.
[0011] S3: In the first interval, mark the left and right endpoints LA and RA, and perform interval interception and update based on the binary method. The interception and update process is to determine whether the DQ delay value corresponding to the midpoint of the first interval is a correct point or an error point based on the write data test. If it is a correct point, the first interval is updated to a new interval consisting of the left endpoint LA and the midpoint of the first interval. If it is an error point, the first interval is updated to a new interval consisting of the midpoint of the first interval and the right endpoint RA.
[0012] S4: In the second interval, mark the left and right end points LB and RB, and perform interval interception and update based on the binary method. The interception and update process is to determine whether the DQ delay value corresponding to the midpoint of the second interval is a correct point or an error point based on the write data test. If it is a correct point, the second interval is updated to a new interval consisting of the midpoint of the second interval and the right end point RB. If it is an error point, the second interval is updated to a new interval consisting of the left end point LB and the midpoint of the first interval.
[0013] S4: Repeat the steps S3-S4 for a preset number of times, and take the midpoints of the first interval and the second interval obtained as the left boundary value and the right boundary value of the correct reading and writing on the DQ signal.
[0014] In this scheme, the error points and correct points obtained include one or more error points and correct points. During the judgment process in the first interval and the second interval, points a and b are both error points. The ui is the WCK clock cycle, that is, one WCK clock cycle, and 2ui corresponds to two WCK clock cycles; the positive direction is the a to b direction, and the negative direction is the b to a direction.
[0015] This plan includes:
[0016] In the preset LPDDR5 signal transmission process, if there is no initial point a based on the initial delay on the DQ signal, the DQ delay value is set to 0 as the initial point a, 5 ui clock cycles are added after the initial point, and the target clock interval is established based on the initial point a and 5ui, and the end point 5ui unit position of the target clock interval is marked as the end point b;
[0017] In the target clock interval, 9 DQ delay values are evenly divided, and the 9 DQ delay values are equally spaced. Based on the preset LPDDR5 signal transmission, the 9 DQ delay values are tested for writing data respectively. Through the test, the DQ delay values when reading and writing data correctly and incorrectly are found and marked, and the error points and correct points are obtained.
[0018] Based on the process of finding zero points of quasi-quadratic functions, find the interval where the two zero points are located. The specific finding process is to obtain the nearest correct point in the positive direction of point a, mark it as the first correct point, obtain the nearest wrong point in the negative direction from the first correct point, and mark it as the first wrong point, and take the interval formed by the first wrong point and the first correct point as the first interval;
[0019] Based on point b, the nearest correct point is obtained in the negative direction and marked as the second correct point. Based on the second correct point, the nearest wrong point is obtained in the positive direction and marked as the second wrong point. The interval formed by the second correct point and the second wrong point is the second interval.
[0020] Repeat steps S3-S4 multiple times, and take the midpoints of the first interval and the second interval obtained as the left boundary value and the right boundary value of the correct reading and writing on the DQ signal.
[0021] The second aspect of the present invention also provides an application system based on binary division in LPDDR5 write training, the system comprising: a memory, a processor, the memory comprising an application program based on binary division in LPDDR5 write training, the application program based on binary division in LPDDR5 write training, when executed by the processor, implements all steps of the application method based on binary division in LPDDR5 write training.
[0022] The present invention discloses an application method and system based on binary search in LPDDR5 write training. It is used to determine the left and right boundary value intervals for correctly reading and writing DQ delay. After the initial DQ delay is determined, push back 2 ui to obtain the target interval. Based on the target interval, the first and second intervals are obtained by a quasi-quadratic function, and the first and second intervals are intercepted and updated based on the binary search method to approximate the left boundary value and the right boundary value. This scheme shortens the write training time to 1 / 10 of the original time, greatly improves the training speed, and shortens the time to find the delay interval. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of an embodiment of the present invention is shown;
[0024] Figure 2 A schematic diagram of an embodiment of the present invention is shown;
[0025] Figure 3 A schematic diagram of an embodiment of the present invention is shown;
[0026] Figure 4 A schematic diagram of an embodiment of the present invention is shown;
[0027] Figure 5 A block diagram of an application system of the present invention based on the dichotomy method in LPDDR5 write training is shown;
[0028] Figure 6 A flow chart of the method of the present invention is shown. DETAILED DESCRIPTION
[0029] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0030] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0031] A first aspect of the present invention provides an application method based on dichotomy in LPDDR5 write training, comprising:
[0032] In the preset LPDDR5 signal transmission process, the initial delay on the DQ signal is obtained and marked as the initial point a, 2 ui clock cycles are added based on the initial point, and the target clock interval is established based on the initial point a and 2ui. The end point 2ui unit position of the target clock interval is marked as the end point b;
[0033] S1: In the target clock interval, three DQ delay values are evenly divided, namely DQ delay1=a+0.5*ui, DQ delay2=a+1*ui, and DQ delay3=a+1.5*ui. The three DQ delay values are equally spaced. Based on the preset LPDDR5 signal transmission, write data tests are performed on the three DQ delay values respectively. Through the test, the DQ delay values when reading and writing data correctly and incorrectly are found and marked, and the error point and the correct point are obtained. Based on the process of finding the zero point of a quasi-quadratic function, the interval where the two zero points are located is found. The specific finding process is to obtain the nearest correct point in the positive direction of point a and mark it as the first correct point, obtain the nearest error point in the negative direction from the first correct point, and mark it as the first error point, and the interval formed by the first error point and the first correct point is the first interval;
[0034] S2: Based on point b, the nearest correct point is obtained in the negative direction and marked as the second correct point. Based on the second correct point, the nearest incorrect point is obtained in the positive direction and marked as the second incorrect point. The interval formed by the second correct point and the second incorrect point is the second interval.
[0035] S3: In the first interval, mark the left and right endpoints LA and RA, and perform interval interception and update based on the binary method. The interception and update process is to determine whether the DQ delay value corresponding to the midpoint of the first interval is a correct point or an error point based on the write data test. If it is a correct point, the first interval is updated to a new interval consisting of the left endpoint LA and the midpoint of the first interval. If it is an error point, the first interval is updated to a new interval consisting of the midpoint of the first interval and the right endpoint RA.
[0036] S4: In the second interval, mark the left and right end points LB and RB, and perform interval interception and update based on the binary method. The interception and update process is to determine whether the DQ delay value corresponding to the midpoint of the second interval is a correct point or an error point based on the write data test. If it is a correct point, the second interval is updated to a new interval consisting of the midpoint of the second interval and the right end point RB. If it is an error point, the second interval is updated to a new interval consisting of the left end point LB and the midpoint of the first interval.
[0037] S4: Repeat the steps S3-S4 for a preset number of times, and take the midpoints of the first interval and the second interval obtained as the left boundary value and the right boundary value of the correct reading and writing on the DQ signal.
[0038] It should be noted that the delay value is the delay value at a certain point in the interval. The quasi-quadratic function is an open downward analog function, in which the function values are greater than 0 in the interval formed by the two zero points, and less than 0 outside the two sides of the interval. It is applied to the present invention, for the error point (DQ delay of read and write errors), it is equivalent to the quasi-quadratic function value being less than 0, and for the correct point (DQ delay of correct read and write), it is equivalent to the quasi-quadratic function value being greater than 0. In the embodiment of the present invention, since the initial point a and the end point b are determined, the correct read and write interval must be within the target clock interval, that is, the two zero points of the quasi-quadratic function are within the target clock interval, and the two zero points are the two boundary values of the correct read and write interval. The steps S1 and S2 of this method are to find the interception interval (i.e., the first and second intervals) corresponding to the two boundary values, and make the interception interval as small as possible by binary division to approach the boundary value, and the interval composed of the two boundary values is the interval under correct reading and writing. a, b and three DQ delay values (or other DQ delays obtained by binary division) are clock values and corresponding points on the interval coordinates. When obtaining the nearest correct point (or error point), a and b are both included, and a and b are defaulted as error points. In the process of repeating the S3-S4 steps for a preset number of times, each repeated interception of the interval is a binary process, and a binary process includes the two steps S3-S4. After finally obtaining the left boundary value and the right boundary value, the middle value in the range is selected as the final result (the optimal value of DQ delay).
[0039] According to an embodiment of the present invention, the obtained error points and correct points include one or more error points and correct points. During the judgment process in the first interval and the second interval, points a and b are both error points. The ui is the WCK clock cycle, that is, one WCK clock cycle, and 2ui corresponds to two WCK clock cycles; the positive direction is the a to b direction, and the negative direction is the b to a direction.
[0040] According to an embodiment of the present invention, it also includes:
[0041] A correct read / write range interval is formed based on the left boundary value and the right boundary value obtained in step S4, and marked as a result interval;
[0042] In the K-times write training application, multiple result intervals of DQ signal test analysis are obtained;
[0043] In the target clock interval, interval intersection analysis is performed according to multiple result intervals, and intervals having intersections of two result intervals are marked to obtain multiple intersection intervals;
[0044] Obtain the midpoints of multiple intersection intervals and mark them to obtain multiple high-frequency points;
[0045] In the next write training application, the target clock interval is obtained, multiple high-frequency points are used as initial DQ delay points, and the calculation and analysis of the first interval and the second interval are performed based on the dichotomy method.
[0046] It should be noted that when performing binary read and write tests, in the analysis of multiple LPDDR5 optimal read and write intervals, the corresponding result intervals of the same batch of LPDDR5 hardware memory may have more intersection parts. Therefore, in multiple write training application tasks, the intersection area can be obtained based on the result intervals obtained from historical tests and high-frequency delay points can be obtained. Marking is based on high-frequency delay points, and the state of the initial partitioned DQ delay point is dynamically adjusted in the next write training application to achieve dynamic adjustment of the initial partitioned DQ delay point, and combined with binary division, the efficiency of the system in finding the optimal delay can be further improved. The intersection interval is the intersection area interval of two result intervals. For example, if interval A is [0, 1ui] and interval B is [0.5ui, 2ui], then the intersection interval of A and B is [0.5ui, 1ui]. Based on this, the intersection intervals between all result intervals are analyzed.
[0047] According to an embodiment of the present invention, it also includes:
[0048] In the preset LPDDR5 signal transmission process, if there is no initial point a based on the initial delay on the DQ signal, the DQ delay value is set to 0 as the initial point a, 5 ui clock cycles are added after the initial point, and the target clock interval is established based on the initial point a and 5ui, and the end point 5ui unit position of the target clock interval is marked as the end point b;
[0049] In the target clock interval, 9 DQ delay values are evenly divided, and the 9 DQ delay values are equally spaced. Based on the preset LPDDR5 signal transmission, the 9 DQ delay values are tested for writing data respectively. Through the test, the DQ delay values when reading and writing data correctly and incorrectly are found and marked, and the error points and correct points are obtained.
[0050] Based on the process of finding zero points of quasi-quadratic functions, find the interval where the two zero points are located. The specific finding process is to obtain the nearest correct point in the positive direction of point a, mark it as the first correct point, obtain the nearest wrong point in the negative direction from the first correct point, and mark it as the first wrong point, and take the interval formed by the first wrong point and the first correct point as the first interval;
[0051] Based on point b, the nearest correct point is obtained in the negative direction and marked as the second correct point. Based on the second correct point, the nearest wrong point is obtained in the positive direction and marked as the second wrong point. The interval formed by the second correct point and the second wrong point is the second interval.
[0052] Repeat steps S3-S4 multiple times, and take the midpoints of the first interval and the second interval obtained as the left boundary value and the right boundary value of the correct reading and writing on the DQ signal.
[0053] It should be noted that if there is no initial point a based on the initial delay on the DQ signal, due to the influence of the LPDDR5 / LPDDR5X basic test project, there may not be an initial DQ delay value. Therefore, the traditional technology needs to expand the clock interval to analyze the optimal write data interval. The present invention starts the analysis with a value of 0 and uses 5ui as the end point for the optimal boundary analysis of write training. The analysis process refers to the binary process of the present invention. In the absence of an initial point, efficient boundary interval analysis and calculation can still be performed to obtain the optimal read and write boundary range. Repeat the process for a preset number of times. The 9 DQ delay values do not include the initial point and the end point, and the unit span is DQ delay1=a+0.5*ui, DQdelay2=a+1*ui, DQ delay3=a+1.5*ui,..., DQ delay9=a+4.5*ui. This scheme is suitable for interval measurement without an initial value.
[0054] Compared with the prior art, the present invention has at least the following advantages:
[0055] 1. Based on the scheme with initial value a, the time spent on writing training is significantly shortened. The original technology needs to fill in 128 delay values in sequence, while this scheme only needs to fill in 3 delay values. Compared with the original technology, this scheme shortens the training time to 1 / 10 of the original, greatly improving the training speed.
[0056] 2. In the solution without initial value a, not only the time to find the interval delay is shortened, but also there is no need to wait for the particle to oscillate and measure the time difference between WCK and DQ, and the time for phy to send instructions to the particle and read them back. At the same time, the particle no longer needs to add an oscillation circuit, saving power consumption.
[0057] In one embodiment of the present invention, an initial DQ delay is set, combined with the attached Figures 1 to 4 To explain:
[0058] After determining the initial DQ delay, you can usually find the interval by pushing back 2 ui (one WCK clock cycle). This solution uses a special binary search method to find the starting and ending points of the interval. The binary search method is usually used to solve the zero point approximation of the function, and the binary search method can also be used in write training. When the DQ delay is outside the interval, reading and writing will cause data errors, which is equivalent to the function value being less than 0; when the DQ delay is within the interval, reading and writing will not cause data errors, which is equivalent to the function value being greater than 0; in this way, the entire delay is approximated to a quasi-quadratic function, such as Figure 1 As shown in the figure, the two zero points to be found are the left and right boundary values of the final correct reading and writing interval. The solution range starts from the initial value of DQ delay (assuming its value is a) and goes back 2 ui (point b).
[0059] Figure 1 a and b are the initial and end points. Figure 2 , 3 , 4 will not be repeated. Figures 1 to 4 In the figure, dqdly is the abbreviation of DQ delay, fail represents the reading and writing error at that point, and pass represents the reading and writing correctly. In the present embodiment, DQ delay1 is the error point, and DQ delay2 and 3 are the correct points. Therefore, based on the zero point analysis method of the quasi-quadratic function, the first interval is the interval composed of dqdly1 and dqdly2, and the second interval is the interval composed of dqdly3 and point b.
[0060] It is worth mentioning that according to the idea of binary search, it is necessary to first find a DQdelay value that can correctly read and write data. Ideally, the length of the interval is 1 ui. This scheme assumes that the length of the interval is greater than 0.5 ui (less than 0.5 is considered to be a circuit design error). First take three delay values, DQ delay1=a+0.5*ui, DQ delay2=a+1*ui, DQ delay3=a+1.5*ui. If the eye diagram quality is acceptable, then among these three delay values, at least one delay value will be read and written correctly.
[0061] Based on the binary method, the first and second intervals are approximated. Figure 2 As shown, the middle point (dqdly4) is selected in the first interval for read and write test. Since dqdly4 is an error point, a new first interval (the interval between dqdly4 and dqdly2) is intercepted based on the binary method. Similarly, the new second interval is between dqdly5 and the end point b.
[0062] like Figure 3 As shown, the first and second intervals are continuously updated based on the binary method, the midpoint dqdly6 of the first interval is an error point, and the midpoint dqdly7 of the second interval is an error point. After the interception update, the first interval is changed to the interval between dqdly6 and dqdly2, and the second interval is changed to the interval between dqdly5 and dqdly7.
[0063] After finding the correct DQ delay value for reading and writing data, we can use the binary search method to find the interval boundary value. This solution stipulates that the binary search process should be stopped after 4 times, and the final result is obtained. The maximum error value of the boundary value is 1 / 16 ui. Figure 4 As shown, the midpoint of the first interval is selected as the left boundary value, and the midpoint of the second interval is selected as the right boundary value. Based on the accuracy requirements, the number of times the binary division is actually performed can be set.
[0064] Figure 5 A block diagram of an application system of the present invention based on the dichotomy method in LPDDR5 write training is shown.
[0065] The second aspect of the present invention further provides an application system 2 based on binary division in LPDDR5 write training, the system comprising: a memory 21, a processor 22, the memory comprising an application based on binary division in LPDDR5 write training, the application based on binary division in LPDDR5 write training being executed by the processor to implement the following steps:
[0066] In the preset LPDDR5 signal transmission process, the initial delay on the DQ signal is obtained and marked as the initial point a, 2 ui clock cycles are added based on the initial point, and the target clock interval is established based on the initial point a and 2ui. The end point 2ui unit position of the target clock interval is marked as the end point b;
[0067] S1: In the target clock interval, three DQ delay values are evenly divided, namely DQ delay1=a+0.5*ui, DQ delay2=a+1*ui, and DQ delay3=a+1.5*ui. The three DQ delay values are equally spaced. Based on the preset LPDDR5 signal transmission, write data tests are performed on the three DQ delay values respectively. Through the test, the DQ delay values when reading and writing data correctly and incorrectly are found and marked, and the error point and the correct point are obtained. Based on the process of finding the zero point of a quasi-quadratic function, the interval where the two zero points are located is found. The specific finding process is to obtain the nearest correct point in the positive direction of point a and mark it as the first correct point, obtain the nearest error point in the negative direction from the first correct point, and mark it as the first error point, and the interval formed by the first error point and the first correct point is the first interval;
[0068] S2: Based on point b, the nearest correct point is obtained in the negative direction and marked as the second correct point. Based on the second correct point, the nearest incorrect point is obtained in the positive direction and marked as the second incorrect point. The interval formed by the second correct point and the second incorrect point is the second interval.
[0069] S3: In the first interval, mark the left and right endpoints LA and RA, and perform interval interception and update based on the binary method. The interception and update process is to determine whether the DQ delay value corresponding to the midpoint of the first interval is a correct point or an error point based on the write data test. If it is a correct point, the first interval is updated to a new interval consisting of the left endpoint LA and the midpoint of the first interval. If it is an error point, the first interval is updated to a new interval consisting of the midpoint of the first interval and the right endpoint RA.
[0070] S4: In the second interval, mark the left and right end points LB and RB, and perform interval interception and update based on the binary method. The interception and update process is to determine whether the DQ delay value corresponding to the midpoint of the second interval is a correct point or an error point based on the write data test. If it is a correct point, the second interval is updated to a new interval consisting of the midpoint of the second interval and the right end point RB. If it is an error point, the second interval is updated to a new interval consisting of the left end point LB and the midpoint of the first interval.
[0071] S4: Repeat the steps S3-S4 for a preset number of times, and take the midpoints of the first interval and the second interval obtained as the left boundary value and the right boundary value of the correct reading and writing on the DQ signal.
[0072] It should be noted that the delay value is the delay value at a certain point in the interval. The quasi-quadratic function is an open downward analog function, in which the function values are greater than 0 in the interval formed by the two zero points, and less than 0 outside the two sides of the interval. It is applied to the present invention, for the error point (DQ delay of read and write errors), it is equivalent to the quasi-quadratic function value being less than 0, and for the correct point (DQ delay of correct read and write), it is equivalent to the quasi-quadratic function value being greater than 0. In the embodiment of the present invention, since the initial point a and the end point b are determined, the correct read and write interval must be within the target clock interval, that is, the two zero points of the quasi-quadratic function are within the target clock interval, and the two zero points are the two boundary values of the correct read and write interval. The steps S1 and S2 of this method are to find the interception interval (i.e., the first and second intervals) corresponding to the two boundary values, and make the interception interval as small as possible by binary division to approach the boundary value, and the interval composed of the two boundary values is the interval under correct reading and writing. a, b and three DQ delay values (or other DQ delays obtained by binary division) are clock values and corresponding points on the interval coordinates. When obtaining the nearest correct point (or error point), a and b are both included, and a and b are defaulted as error points. In the process of repeating the S3-S4 steps for a preset number of times, each repeated interception of the interval is a binary process, and a binary process includes the two steps S3-S4. After finally obtaining the left boundary value and the right boundary value, the middle value in the range is selected as the final result (the optimal value of DQ delay).
[0073] According to an embodiment of the present invention, the obtained error points and correct points include one or more error points and correct points. During the judgment process in the first interval and the second interval, points a and b are both error points. The ui is the WCK clock cycle, that is, one WCK clock cycle, and 2ui corresponds to two WCK clock cycles; the positive direction is the a to b direction, and the negative direction is the b to a direction.
[0074] According to an embodiment of the present invention, it also includes:
[0075] In the preset LPDDR5 signal transmission process, if there is no initial point a based on the initial delay on the DQ signal, the DQ delay value is set to 0 as the initial point a, 5 ui clock cycles are added after the initial point, and the target clock interval is established based on the initial point a and 5ui, and the end point 5ui unit position of the target clock interval is marked as the end point b;
[0076] In the target clock interval, 9 DQ delay values are evenly divided, and the 9 DQ delay values are equally spaced. Based on the preset LPDDR5 signal transmission, the 9 DQ delay values are tested for writing data respectively. Through the test, the DQ delay values when reading and writing data correctly and incorrectly are found and marked, and the error points and correct points are obtained.
[0077] Based on the process of finding zero points of quasi-quadratic functions, find the interval where the two zero points are located. The specific finding process is to obtain the nearest correct point in the positive direction of point a, mark it as the first correct point, obtain the nearest wrong point in the negative direction from the first correct point, and mark it as the first wrong point, and take the interval formed by the first wrong point and the first correct point as the first interval;
[0078] Based on point b, the nearest correct point is obtained in the negative direction and marked as the second correct point. Based on the second correct point, the nearest wrong point is obtained in the positive direction and marked as the second wrong point. The interval formed by the second correct point and the second wrong point is the second interval.
[0079] Repeat steps S3-S4 multiple times, and take the midpoints of the first interval and the second interval obtained as the left boundary value and the right boundary value of the correct reading and writing on the DQ signal.
[0080] It should be noted that if there is no initial point a based on the initial delay on the DQ signal, due to the influence of the LPDDR5 / LPDDR5X basic test project, there may not be an initial DQ delay value. Therefore, the traditional technology needs to expand the clock interval to analyze the optimal write data interval. The present invention starts the analysis with a value of 0 and uses 5ui as the end point for the optimal boundary analysis of write training. The analysis process refers to the binary process of the present invention. In the absence of an initial point, efficient boundary interval analysis and calculation can still be performed to obtain the optimal read and write boundary range. Repeat the process for a preset number of times. The 9 DQ delay values do not include the initial point and the end point, and the unit span is DQ delay1=a+0.5*ui, DQdelay2=a+1*ui, DQ delay3=a+1.5*ui,..., DQ delay9=a+4.5*ui. This scheme is suitable for interval measurement without an initial value.
[0081] The present invention discloses an application method and system based on binary search in LPDDR5 write training. It is used to determine the left and right boundary value intervals for correctly reading and writing DQ delay. After the initial DQ delay is determined, push back 2 ui to obtain the target interval. Based on the target interval, the first and second intervals are obtained by a quasi-quadratic function, and the first and second intervals are intercepted and updated based on the binary search method to approximate the left boundary value and the right boundary value. This scheme shortens the write training time to 1 / 10 of the original time, greatly improves the training speed, and shortens the time to find the delay interval.
[0082] Figure 6 A flow chart of the method of the present invention is shown.
[0083] like Figure 6 As shown, it is a simplified flow chart of the application method of the present invention based on the binary division method in LPDDR5 write training.
[0084] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0085] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0086] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0087] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0088] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0089] 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. An application method based on binary division in LPDDR5 write training, characterized in that: include: In the preset LPDDR5 signal transmission process, the initial delay on the DQ signal is obtained and marked as the initial point a, 2 ui clock cycles are added based on the initial point, and the target clock interval is established based on the initial point a and 2ui. The end point 2ui unit position of the target clock interval is marked as the end point b; S1: In the target clock interval, three DQ delay values are evenly divided, namely DQ delay1=a+0.5*ui, DQdelay2=a+1*ui, and DQ delay3=a+1.5*ui. The three DQ delay values are equally spaced. Based on the preset LPDDR5 signal transmission, write data tests are performed on the three DQ delay values respectively. Through the test, the DQdelay values when reading and writing data correctly and incorrectly are found and marked, and the error point and the correct point are obtained. Based on the process of finding the zero point of the quasi-quadratic function, the interval where the two zero points are located is found. The specific search process is to obtain the nearest correct point in the positive direction of point a and mark it as the first correct point, obtain the nearest error point in the negative direction from the first correct point, and mark it as the first error point, and the interval formed by the first error point and the first correct point is the first interval; S2: Based on point b, the nearest correct point is obtained in the negative direction and marked as the second correct point. Based on the second correct point, the nearest incorrect point is obtained in the positive direction and marked as the second incorrect point. The interval formed by the second correct point and the second incorrect point is the second interval. S3: In the first interval, mark the left and right endpoints LA and RA, and perform interval interception and update based on the binary method. The interception and update process is to determine whether the DQ delay value corresponding to the midpoint of the first interval is a correct point or an error point based on the write data test. If it is a correct point, the first interval is updated to a new interval consisting of the left endpoint LA and the midpoint of the first interval. If it is an error point, the first interval is updated to a new interval consisting of the midpoint of the first interval and the right endpoint RA. S4: In the second interval, mark the left and right end points LB and RB, and perform interval interception and update based on the binary method. The interception and update process is to determine whether the DQ delay value corresponding to the midpoint of the second interval is a correct point or an error point based on the write data test. If it is a correct point, the second interval is updated to a new interval consisting of the midpoint of the second interval and the right end point RB. If it is an error point, the second interval is updated to a new interval consisting of the left end point LB and the midpoint of the first interval. S4: Repeat the steps S3-S4 for a preset number of times, and take the midpoints of the first interval and the second interval obtained as the left boundary value and the right boundary value of the correct reading and writing on the DQ signal.
2. According to claim 1, the application method based on binary division in LPDDR5 write training is characterized in that: The obtained error points and correct points include one or more error points and correct points. During the judgment process in the first interval and the second interval, points a and b are both error points. The ui is a WCK clock cycle, that is, one WCK clock cycle, and 2ui corresponds to two WCK clock cycles; the positive direction is the direction from a to b, and the negative direction is the direction from b to a.
3. The application method based on binary division in LPDDR5 write training according to claim 1, characterized in that: include: In the preset LPDDR5 signal transmission process, if there is no initial point a based on the initial delay on the DQ signal, the DQdelay value is set to 0 as the initial point a, 5 ui clock cycles are added after the initial point, and the target clock interval is established based on the initial point a and 5ui, and the end point 5ui unit position of the target clock interval is marked as the end point b; In the target clock interval, 9 DQ delay values are evenly divided, and the 9 DQ delay values are equally spaced. Based on the preset LPDDR5 signal transmission, the 9 DQ delay values are tested for writing data respectively. Through the test, the DQ delay values when reading and writing data correctly and incorrectly are found and marked, and the error points and correct points are obtained. Based on the process of finding zero points of quasi-quadratic functions, find the interval where the two zero points are located. The specific finding process is to obtain the nearest correct point in the positive direction of point a, mark it as the first correct point, obtain the nearest wrong point in the negative direction from the first correct point, and mark it as the first wrong point, and take the interval formed by the first wrong point and the first correct point as the first interval; Based on point b, the nearest correct point is obtained in the negative direction and marked as the second correct point. Based on the second correct point, the nearest wrong point is obtained in the positive direction and marked as the second wrong point. The interval formed by the second correct point and the second wrong point is the second interval. Repeat steps S3-S4 multiple times, and take the midpoints of the first interval and the second interval obtained as the left boundary value and the right boundary value of the correct reading and writing on the DQ signal.
4. An application system based on binary division in LPDDR5 write training, characterized in that: The system includes: a memory and a processor, wherein the memory includes an application based on binary division in LPDDR5 write training, and when the application based on binary division in LPDDR5 write training is executed by the processor, all steps of the application method based on binary division in LPDDR5 write training as described in claim 1 above are implemented.
Citation Information
Patent Citations
DQS position adjusting method and device
CN108646984A
Data training method of memory, computer device and computer readable storage medium
CN113178223A
