DDR reference voltage parameter adjustment method, system and device and storage medium
By eliminating invalid sampling points in the DDR memory system, identifying the target optimization area, and adjusting the Vref level and terminating resistor parameters, the problem of interference from invalid sampling points in the digital eye diagram was solved, thereby improving the signal quality and enhancing the stability of the DDR memory system.
Patent Information
- Application Number
- CN202512027921.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-30
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2045-12-30
AI Technical Summary
In existing DDR memory systems, the digital eye diagram representation is not intuitive enough for signal quality assessment, making it difficult to accurately identify and eliminate invalid sampling points. This results in the inability of reference voltage calibration to accurately restore the optimal voltage position, affecting signal margin and system stability.
By acquiring the digital eye diagram of the DDR memory read direction, invalid sampling points due to register range limitations are eliminated, the target optimization area is determined, and the Vref level value and termination resistor parameters of the read and write directions are adjusted synchronously until the optimized eye height meets the preset tolerance, thus locking in the optimal Vref parameter combination.
It achieves precise determination of the optimal Vref parameter combination in DDR memory systems, improves the eye height margin and noise tolerance of the read direction signal, and enhances the reliability of data reading and overall signal integrity.
Smart Images

Figure CN121459902A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of DDR, and particularly relates to a DDR reference voltage parameter adjustment method, system, device and storage medium. BACKGROUND
[0002] With the development of DDR4 (Double Data Rate 4 Synchronous Dynamic Random-Access Memory, fourth generation double data rate synchronous dynamic random access memory), LPDDR4 (Low Power Double Data Rate 4 Synchronous Dynamic Random-Access Memory, fourth generation low power double data rate synchronous dynamic random access memory) and LPDDR5 (Low Power Double Data Rate 5 Synchronous Dynamic Random-Access Memory, fifth generation low power double data rate synchronous dynamic random access memory) memory technology, the data transmission rate and bandwidth are significantly improved, and the guarantee of system signal integrity becomes particularly critical. As key indicators for measuring high-speed signal quality, the eye width and eye height of the signal eye diagram are directly related to the reliability and performance of the system.
[0003] The factors affecting the quality of the eye diagram are relatively extensive. In order to maintain sufficient timing margin and noise tolerance under high-speed operation conditions, a Vref (reference voltage) calibration mechanism is introduced in the existing DDR memory system to improve the stability of the eye height while ensuring sufficient eye width. In the common adjustment method, in order to evaluate the signal quality, the actual analog eye diagram is usually converted into a digital two-dimensional eye diagram composed of a plurality of sampling points for analysis.
[0004] However, this kind of digital eye diagram is not intuitive in representing signal quality, and needs to be repeatedly compared with the differences in eye diagrams at different frequencies for evaluation. It is also difficult to identify and exclude invalid sampling points, which leads to the fact that the best voltage position cannot be accurately restored when the reference voltage is calibrated according to the eye diagram, thereby affecting the final signal margin and system stability. SUMMARY
[0005] The application provides a DDR reference voltage parameter adjustment method, system, device and storage medium, which can avoid the interference of invalid sampling points caused by register range limitation and accurately determine the best Vref parameter combination.
[0006] In order to solve the above technical problems, in a first aspect, the application provides a DDR reference voltage parameter adjustment method, comprising the following steps: acquire a digitized eye diagram and a corresponding eye height amplitude distribution of a read direction of DDR memory; exclude, from sampling points of the digitized eye diagram, sampling points that are invalid due to register range limitation, to obtain a set of valid sampling points; determine a target optimization region according to an eye height amplitude distribution of the set of valid sampling points; optimize a read direction Vref level value of the target optimization region, and simultaneously adjust a write direction Vref level value and a termination resistance parameter; compile the read direction Vref value, the write direction Vref value, and the termination resistance parameter determined after adjustment into configuration code and write the configuration code into a test program of a DDR memory controller; run the test program and acquire an optimized digitized eye diagram, until an eye height of the optimized digitized eye diagram meets a preset tolerance, and lock the current corresponding read direction Vref value, write direction Vref value, and termination resistance parameter as an optimal Vref parameter combination.
[0007] As a further improvement of the present application, the exclusion of sampling points that are invalid due to register range limitation comprises: for each sampling point in the digitized eye diagram, acquire an equalization control register value corresponding to a sampling time of the sampling point; when the equalization control register value exceeds a preset valid value range, determine that the current sampling point is invalid and is excluded.
[0008] As a further improvement of the present application, the determination of a target optimization region according to an eye height amplitude distribution of the set of valid sampling points comprises: divide the digitized eye diagram into a plurality of grids, count a number of valid sampling points falling into each grid, and determine a sampling point density of each grid; connect adjacent grids with a sampling point density higher than a first density threshold to form one or more candidate optimization regions; calculate an average eye height amplitude of all valid sampling points in each candidate optimization region; determine a candidate optimization region with the highest average eye height amplitude and an average eye height amplitude higher than a first amplitude threshold as the target optimization region.
[0009] As a further improvement of the present application, the optimization of a read direction Vref level value of the target optimization region comprises: acquire voltage values of all valid sampling points in the target optimization region; determine a median or an average of the voltage values as the read direction Vref level value of the target optimization region for optimization.
[0010] As a further improvement of the application, the synchronous adjustment of the write direction Vref level value and the terminal resistance parameter comprises: determining the write direction Vref level value based on the optimized read direction Vref level value and a preset matching relationship between the write direction Vref level value and the read direction Vref level value; obtaining an overshoot amplitude and an undershoot amplitude of a signal waveform of the digitized eye diagram at a logic level conversion; comparing the overshoot amplitude and the undershoot amplitude, and if the overshoot amplitude is greater than the undershoot amplitude, increasing the terminal resistance parameter, and if the overshoot amplitude is less than the undershoot amplitude, decreasing the terminal resistance parameter; wherein the terminal resistance parameter is a negative feedback parameter of an on-chip terminal resistance.
[0011] As a further improvement of the application, the eye height of the digitized eye diagram after optimization meets a preset tolerance, which comprises: determining whether the eye height of the digitized eye diagram after optimization meets a preset tolerance; if yes, locking the read direction Vref value, the write direction Vref value and the terminal resistance parameter corresponding to the current digitized eye diagram as the best Vref parameter combination; if no, iteratively optimizing the read direction Vref value, the write direction Vref value and the terminal resistance parameter corresponding to the current digitized eye diagram.
[0012] As a further improvement of the application, the iteratively optimizing the read direction Vref value, the write direction Vref value and the terminal resistance parameter corresponding to the current digitized eye diagram comprises: updating the effective sampling point set based on the digitized eye diagram after optimization and the corresponding eye height amplitude distribution; repeating the steps of determining a target optimization region, optimizing the read direction Vref level value, adjusting the write direction Vref level value and the terminal resistance parameter, compiling and running a test program, obtaining a digitized eye diagram after optimization, and determining whether the eye height meets a preset tolerance, until the eye height of the digitized eye diagram after optimization meets a preset tolerance; locking the read direction Vref value, the write direction Vref value and the terminal resistance parameter corresponding to the current digitized eye diagram as the best Vref parameter combination.
[0013] In a second aspect, the application provides a DDR reference voltage parameter adjustment system, comprising: an obtaining unit configured to obtain a digitized eye diagram of a read direction of a DDR memory and a corresponding eye height amplitude distribution; An excluding unit is configured to exclude the sampling points that are invalid due to register range limitation from the sampling points of the digitized eye diagram to obtain a set of valid sampling points; A determining unit is configured to determine a target optimization region according to the eye height amplitude distribution of the set of valid sampling points; An adjusting unit is configured to optimize the read direction Vref level value of the target optimization region, and simultaneously adjust the write direction Vref level value and the termination resistance parameter; A compiling unit is configured to compile the read direction Vref value, the write direction Vref value and the termination resistance parameter after adjustment into configuration code and write the configuration code into a test program of a DDR memory controller; An optimization unit is configured to run the test program and obtain an optimized digitized eye diagram, until the eye height of the optimized digitized eye diagram meets a preset tolerance, and lock the current corresponding read direction Vref value, write direction Vref value and termination resistance parameter as the best Vref parameter combination.
[0014] In a third aspect, the present application provides a computer device, which comprises a processor, a memory coupled with the processor, and a computer program stored in the memory and executed by the processor to perform the steps of the DDR reference voltage parameter adjustment method.
[0015] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program executed by a processor to implement the DDR reference voltage parameter adjustment method.
[0016] The DDR reference voltage parameter adjustment method, system, device and storage medium provided by the present application have the following beneficial effects: The application first acquires a digitized eye diagram of a read direction of DDR memory and a corresponding eye height amplitude distribution, converts a read direction analog signal into discrete data that can be quantitatively analyzed, excludes invalid sampling points from the sampling points of the digitized eye diagram due to register range limitation, eliminates distorted data caused by register saturation, ensures that the set of valid sampling points can truly reflect the actual transmission characteristics of the read direction signal, eliminates the interference caused by invalid sampling points, determines a target optimization region based on the eye height amplitude distribution of the set of valid sampling points, so that the optimization of the read direction Vref level value can focus on the target optimization region, and at the same time, the write direction Vref level value and the terminal resistance parameter are adjusted synchronously, taking into account the collaborative characteristics of the shared transmission link of the read and write signals of the DDR memory and the impedance matching requirements of the transmission link; then the adjusted parameters are compiled into configuration code and written into the test program of the DDR memory controller, and the optimized digitized eye diagram is obtained by running the test program iteratively until the eye height after optimization meets the preset tolerance and the best parameter combination is locked, so as to ensure that the final parameter combination can stably adapt to the hardware state of the DDR memory, avoid the interference of invalid sampling points caused by register range limitation, accurately determine the best Vref parameter combination, effectively improve the eye height margin and noise tolerance of the read direction signal, and enhance the reliability and overall signal integrity of the DDR memory data reading. BRIEF DESCRIPTION OF DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description only represent some of the embodiments of the present application, and not all the embodiments. For those skilled in the art, other drawings obtained according to these drawings without creative labor belong to the scope of protection of the present application.
[0018] Figure 1 is a flowchart of the DDR reference voltage parameter adjustment method provided by the embodiment of the present application.
[0019] Figure 2 is a flowchart of excluding invalid sampling points in the DDR reference voltage parameter adjustment method provided by the embodiment of the present application.
[0020] Figure 3 is a flowchart of determining a target optimization region in the DDR reference voltage parameter adjustment method provided by the embodiment of the present application.
[0021] Figure 4 is a flowchart of optimizing the read direction Vref level value in the DDR reference voltage parameter adjustment method provided by the embodiment of the present application.
[0022] Figure 5is a flow chart of adjusting the write direction Vref level value and the terminal resistance parameter in the DDR reference voltage parameter adjustment method provided by the embodiment of the present application.
[0023] Figure 6 is a flow chart of judging whether the eye height of the digitized eye diagram meets the preset tolerance in the DDR reference voltage parameter adjustment method provided by the embodiment of the present application.
[0024] Figure 7 is a flow chart of determining the optimal Vref parameter combination in the DDR reference voltage parameter adjustment method provided by the embodiment of the present application.
[0025] Figure 8 is an embodiment diagram of the grid in the DDR reference voltage parameter adjustment method provided by the embodiment of the present application.
[0026] Figure 9 is a module diagram of the DDR reference voltage parameter adjustment system provided by the embodiment of the present application.
[0027] Figure 10 is a structural schematic diagram of the computer device provided by the embodiment of the present application.
[0028] Figure 11 is a structural schematic diagram of the storage medium provided by the embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical scheme and advantages of the present application clearer, further detailed description will be given to the present application in combination with the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0030] In order to make the description of the present disclosure more detailed and complete, the following describes the embodiments of the present application and specific embodiments; but this is not the only form of implementation or use of the specific embodiments of the present application. The embodiments include the features of the specific embodiments and the method steps and their order used to construct and operate these specific embodiments. However, other specific embodiments can also be used to achieve the same or equivalent functions and step sequences. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of the present application.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0032] In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two, and other quantifiers similar thereto should be understood. The preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application, and in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.
[0033] With the development of DDR4, LPDDR4 and LPDDR5 memory technology, the data transmission rate and bandwidth are significantly improved, and the protection of system signal integrity becomes particularly important. The eye width and eye height of the signal eye diagram are key indicators for measuring high-speed signal quality, and their stability is directly related to the reliability and performance of the system.
[0034] The factors affecting the quality of the eye diagram are relatively extensive. In order to maintain sufficient timing margin and noise tolerance under high-speed running conditions, a Vref (reference voltage) calibration mechanism is introduced in the existing DDR memory system to improve the stability of the eye height while ensuring sufficient eye width. In the common adjustment method, in order to facilitate the evaluation of signal quality, the actual analog eye diagram is usually converted into a digital two-dimensional eye diagram composed of a plurality of sampling points for analysis.
[0035] However, such digital eye diagram is not intuitive in representing signal quality, and needs to be repeatedly compared with the differences of eye diagrams at different frequencies for evaluation; and it is difficult to identify and exclude invalid sampling points, which leads to the fact that the best voltage position cannot be accurately restored when the reference voltage is calibrated according to the eye diagram, thereby affecting the final signal margin and system stability.
[0036] Therefore, in order to solve the above problems, the present application provides a DDR reference voltage parameter adjustment method, system, device and storage medium. Figures 1-11 The embodiments of the present application can avoid the interference of invalid sampling points caused by register range limitation, and realize accurate determination of the best Vref parameter combination.
[0037] The present application provides a flowchart of a DDR reference voltage parameter adjustment method, which comprises the following steps: Figure 1 Step S1: obtaining a digital eye diagram of the DDR memory read direction and a corresponding eye height amplitude distribution; Step S1: obtaining a digital eye diagram of the DDR memory read direction and a corresponding eye height amplitude distribution; DDR(Double Data Rate, double data rate) is a memory data transmission technology standard. In the signal transmission link of the DDR memory, the read direction refers to the direction of transmitting data, and the signal quality of the direction directly determines the accuracy of data reading. If there are problems such as distortion and noise interference in the read direction signal, the controller will misjudge the data, thereby affecting the system stability.
[0038] Therefore, the embodiment of the present application obtains the digital eye diagram of the read direction of the DDR memory, and synchronously obtains the eye height amplitude distribution. The eye height amplitude distribution refers to the distribution of the eye height (i.e. voltage amplitude) corresponding to all sampling points in the digital eye diagram, which can provide a basis for subsequent exclusion of invalid sampling points and determination of a target optimization area.
[0039] Specifically, the digital eye diagram is a two-dimensional graph composed of discrete sampling points after the analog signal transmitted by the DDR memory system is sampled and quantized. The horizontal axis is the time unit UI (Unit Interval), and the vertical axis is the signal voltage amplitude.
[0040] Step S2: excluding, from the sampling points of the digital eye diagram, sampling points that are invalid due to register range limitation, to obtain a set of valid sampling points; In step S2, the invalid data caused by the register range limitation needs to be removed on the basis of the digital eye diagram obtained in step S1, to ensure that the subsequent parameter adjustment is based on real and reliable signal characteristics.
[0041] As an optional implementation, please refer to Figure 2 The flowchart of the method for adjusting the DDR reference voltage parameter provided by the embodiment of the present application, which excludes the sampling points that are invalid due to the register range limitation, includes: Step S20: obtaining, for each sampling point in the digital eye diagram, the equalization control register value corresponding to the sampling time of the sampling point; It can be understood that the equalization control register (ECR, Equalization Control Register) is a key component in the DDR memory system, which can compensate for signal distortion and improve signal integrity. However, the configuration value of such a register has a preset valid value range. When the degree of signal distortion exceeds the adjustment capability of the register, the register value will reach the upper or lower limit of the range, entering the output saturation state. At this time, the signal voltage reflected by the corresponding sampling point is not the real transmission signal level, but the distorted data affected by the register saturation. If such sampling points are retained, it will cause deviation in the analysis of the eye height amplitude distribution, thereby affecting the judgment of the optimal Vref parameter.
[0042] In this embodiment, the sampling points are associated with the equalization control registers at the corresponding times, and the sampling points collected when the registers are working within the effective range are selected. Therefore, for each sampling point in the digital eye diagram, the value of the equalization control register corresponding to its sampling time needs to be obtained.
[0043] Step S21: When the value of the equalization control register exceeds the preset valid value range, the current sampling point is determined to be invalid and is discarded.
[0044] It should be noted that the preset effective value range of the equalization control register is the working range in which it can normally achieve signal equalization adjustment. If the value exceeds this range, the register will output saturation. This effective value range is determined by its hardware design specifications and is directly determined at the factory.
[0045] In an optional embodiment, the equalization control register typically includes a decision feedback equalization register for compensating for inter-symbol interference in the forward transmission link, and a read-write equalization register for adjusting the signal equalization intensity in the read-write direction. Since the read-direction Vref parameter needs to be optimized later, and the read-write equalization register is directly responsible for the read-direction signal equalization adjustment, it is sufficient to determine the effective value range of the read-write equalization register.
[0046] In this embodiment of the application, for each sampling point in the digital eye diagram, the value of the equalization control register corresponding to its sampling time is obtained. If the value of the read / write equalization register corresponding to the sampling time of the sampling point exceeds the preset effective value range, it indicates that the currently collected signal voltage cannot reflect the true read direction signal quality and is an invalid sampling point. All sampling points determined to be invalid are removed from the sampling point set of the digital eye diagram to obtain an effective sampling point set that can truly reflect the read direction signal characteristics.
[0047] Step S3: Determine the target optimization region based on the eye height amplitude distribution of the effective sampling point set; In this embodiment of the application, based on the effective sampling point set obtained in step S2, it is necessary to accurately locate the target optimization area to provide a clear adjustment area for subsequent optimization of the VREF level value in the reading direction.
[0048] As an optional implementation method, please refer to Figure 3 This is a flowchart illustrating the process of determining the target optimization region in the DDR reference voltage parameter adjustment method provided in this application embodiment. The step of determining the target optimization region based on the eye height amplitude distribution of the effective sampling point set includes: Step S30: Divide the digital eye diagram into several grids, count the number of valid sampling points falling into each grid, and determine the sampling point density of each grid; In an optional embodiment, the horizontal axis of the digital eye diagram is time and the vertical axis is eye height amplitude. The continuous digital eye diagram can be discretized first, dividing the digital eye diagram into several rectangular grids of uniform size to avoid density statistical deviations caused by differences in grid size.
[0049] Furthermore, the number of valid sampling points falling into each grid is counted, and the sampling point density is determined by the ratio of the number of valid sampling points to the grid area.
[0050] Specifically, a higher sampling point density indicates a more concentrated data set of the reading direction signal within that interval, and a more significant impact of the signal characteristics of that interval on the overall signal quality. Step S31: Connect adjacent grids with sampling point density higher than the first density threshold to form one or more candidate optimization regions; In this embodiment, a first density threshold is set according to signal transmission requirements, which can filter out grids with relatively sparse sampling points and retain only high-density grids with concentrated signals. At the same time, adjacent grids with sampling point densities higher than the first density threshold are connected to form one or more candidate optimization regions.
[0051] For example, the aforementioned adjacent grids can be understood as grids that share edges in space, ensuring that the connected region is a continuous region, rather than multiple scattered grids.
[0052] In an optional embodiment, please refer to Figure 8 This is an embodiment diagram of the grid in the DDR reference voltage parameter adjustment method provided in this application. In this embodiment, the grids with sampling point density higher than the first density threshold include grid A, grid B, grid C, grid D, and grid E.
[0053] In this context, grid A is an independent grid, grids B and C are adjacent grids, and grids D and E are adjacent grids. Therefore, grids B and C can be connected to form a candidate optimization region, grids D and E can be connected to form a candidate optimization region, and grid A can be a separate candidate optimization region.
[0054] Step S32: Calculate the average eye height amplitude of all valid sampling points in each candidate optimization region; In an optional embodiment, after one or more candidate optimization regions are formed, it is necessary to calculate the average eye height amplitude of all valid sampling points within the candidate optimization region and quantize the signal strength of each candidate optimization region.
[0055] Since the eye height of a single sampling point may fluctuate due to instantaneous noise and accidental interference, it cannot accurately reflect the true signal quality of the area. The average eye height amplitude is the arithmetic mean of the eye height values of all valid sampling points in the area, which can offset the random fluctuations caused by a single sampling point.
[0056] Step S33: The candidate optimization region with the highest average eye height amplitude that is higher than the first amplitude threshold is determined as the target optimization region.
[0057] Furthermore, a first amplitude threshold is set to exclude candidate regions with excessively low average eye height amplitude and poor basic signal quality. After the average eye height amplitude is higher than the first amplitude threshold, the candidate optimization region with the highest average eye height amplitude is selected as the target optimization region.
[0058] It is understandable that the selected target optimization region has concentrated and sufficient signal strength. After VREF optimization, it can further improve eye height amplitude, maximize signal margin, and thus significantly improve the stability and anti-interference ability of the overall reading direction signal. At the same time, the target optimization region is the core distribution range of the signal. Compared with optimizing other regions with poor foundation, its optimization effect can achieve better adjustment effect at a lower adjustment cost.
[0059] Step S4: Optimize the Vref level value in the read direction of the target optimization region, and simultaneously adjust the Vref level value in the write direction and the terminal resistor parameter; It is understandable that the target optimization region is the core area where the read direction signal is concentrated. Optimizing the read direction Vref level value in this region can maximize the noise margin and signal recognition accuracy of this region.
[0060] Meanwhile, the read and write signals of DDR memory systems usually share the transmission bus. The setting of the write direction Vref level value will affect the bus level reference environment. If only the read direction is optimized and the write direction is ignored, the read and write signals may interfere with each other on the bus.
[0061] Furthermore, the terminating resistor parameter directly determines the impedance matching state of the transmission link. Impedance mismatch will cause signal reflection, resulting in distortions such as overshoot and undershoot, which will affect the transmission quality of the read direction signal. Therefore, while adjusting the Vref level value in the read direction, it is necessary to adjust the Vref level value in the write direction and the terminating resistor parameter in a coordinated manner to avoid the adjustment imbalance caused by optimizing a single parameter and ensure the stability of the overall signal transmission link of the DDR memory system.
[0062] As an optional implementation method, please refer to Figure 4This is a flowchart illustrating the optimization of the read-direction Vref level value in the DDR reference voltage parameter adjustment method provided in this application embodiment. The optimization of the read-direction Vref level value in the target optimization region includes: Step S40: Obtain the voltage values of all valid sampling points within the target optimization area; In this embodiment, it is necessary to obtain the voltage values of all valid sampling points within the target optimization area, rather than only a portion of the sampling points, to avoid inaccurate subsequent parameter settings due to sampling bias.
[0063] Step S41: Optimize the target optimization region by determining the median or average value of the voltage values as the read direction Vref level value.
[0064] Furthermore, the median or average voltage value of all valid sampling points within the target optimization area, i.e., the median or average eye height amplitude of all valid sampling points within the target optimization area, is determined as the Vref level value in the reading direction of the target optimization area for optimization. This ensures that the Vref level value can accurately match the center level of the signal in the target area, thereby achieving the best optimization of the Vref in the reading direction.
[0065] In one optional embodiment, the average value is the arithmetic mean of all voltage values, which can reflect the overall average voltage level and is suitable for scenarios where the voltage distribution is relatively uniform and there are no extreme values; the median is the value in the middle position after sorting all voltage values, which has a stronger anti-interference ability against extreme values and is suitable for scenarios where there are a small amount of fluctuation in voltage distribution. All of the above settings are feasible, and this application does not impose too many limitations on them.
[0066] As an optional implementation method, please refer to Figure 5 This is a flowchart illustrating the adjustment of the write direction Vref level and termination resistance parameters in the DDR reference voltage parameter adjustment method provided in this application embodiment. The synchronous adjustment of the write direction Vref level and termination resistance parameters includes: Step S42: Based on the optimized read direction Vref level value and the preset matching relationship between the write direction Vref level value and the read direction Vref level value, determine the write direction Vref level value; In this embodiment, after the optimized read direction Vref level value is determined, the write direction Vref level value is determined by a preset matching relationship between the write direction Vref level value and the read direction Vref level value, so as to avoid level conflicts between read and write signals in the shared transmission link and affect the stability of data transmission.
[0067] It should be noted that the preset matching relationship is a coordination rule pre-set according to the transmission link characteristics of the DDR memory system. Its essence is to ensure that the write direction Vref and the read direction Vref are in a reasonable coordination range. It usually includes a fixed ratio relationship or a fixed difference relationship, such as the read direction Vref being 1.2 times the write direction Vref, or the difference between the write direction Vref and the read direction Vref being a fixed value. This relationship can be determined through historical test data or based on empirical values, and this application does not limit it.
[0068] Thus, this application determines the write direction Vref level value based on the optimized read direction Vref and the preset matching relationship, ensuring that the optimized write direction Vref and read direction Vref are coordinated and adapted, so that the level reference of the read and write signals remains stable when transmitted in the bus, and avoids mutual interference.
[0069] Step S43: Obtain the overshoot and undershoot amplitudes of the signal waveform at the logic level transition of the digitized eye diagram; In this embodiment, the terminal resistor parameters also need to be optimized. When the signal is transmitted in the DDR memory system transmission link, if the link impedance is mismatched, the signal will be reflected at the node of the transmission path. The reflected signal is superimposed on the original signal, which will generate overshoot and undershoot at the logic level transition: overshoot is the peak value of the signal exceeding the target high level, and undershoot is the valley value of the signal below the target low level. The magnitude of the two directly reflects the severity of the impedance mismatch.
[0070] The larger the overshoot and undershoot amplitudes, the stronger the reflection and the worse the impedance matching, resulting in more severe damage to the eye diagram.
[0071] The digital eye diagram contains complete time and voltage information of the signal waveform. By extracting the voltage peak and voltage valley at the logic level transition and calculating the difference with the target level, the overshoot and undershoot amplitudes can be obtained.
[0072] It should be noted that when optimizing the terminal resistor parameters, it is not limited to the target optimization area determined above, but is determined based on the complete digital eye diagram. If adjustments are made only based on the target optimization area, impedance mismatch issues in other intervals may be ignored, thereby causing new signal distortion. Those skilled in the art should be aware of this.
[0073] Step S44: Compare the overshoot amplitude with the undershoot amplitude. If the overshoot amplitude is greater than the undershoot amplitude, increase the terminating resistor parameter; if the overshoot amplitude is less than the undershoot amplitude, decrease the terminating resistor parameter. The terminating resistor parameter is the negative feedback parameter of the on-chip terminating resistor.
[0074] In an optional embodiment, this application specifically involves adjusting the negative feedback parameter of the on-chip terminating resistor. Since the on-chip terminating resistor can match the characteristic impedance of the transmission link, its negative feedback parameter directly determines the actual impedance of the terminating resistor. When the negative feedback parameter increases, the equivalent impedance value of the terminating resistor increases; when the negative feedback parameter decreases, the equivalent impedance value decreases. By adjusting the negative feedback parameter of the on-chip terminating resistor, the impedance of the terminating resistor is made to be consistent with the characteristic impedance of the transmission link.
[0075] Specifically, when the overshoot amplitude is greater than the undershoot amplitude, it indicates that the equivalent impedance of the transmission link is lower than the impedance of the terminating resistor. The positive reflection generated after the signal is reflected at the terminating resistor is more severe. At this time, increasing the negative feedback parameter of the terminating resistor can improve the equivalent impedance of the terminating resistor, so that it can suppress the positive reflection in a state closer to the characteristic impedance of the link, thereby reducing the overshoot amplitude.
[0076] When the overshoot amplitude is less than the undershoot amplitude, it indicates that the equivalent impedance of the transmission link is higher than the impedance of the terminating resistor, and the reverse reflection is more severe. At this time, reducing the negative feedback parameter of the terminating resistor can reduce the equivalent impedance of the terminating resistor, thus achieving a near match with the characteristic impedance of the link, suppressing the reverse reflection, and reducing the undershoot amplitude. By adjusting the negative feedback parameter of the on-chip terminating resistor, a stable link environment can be provided for the signal transmission after Vref optimization in the read and write directions.
[0077] Step S5: Compile the adjusted and determined read direction Vref value, write direction Vref value, and termination resistor parameters into configuration code and write it into the test program of the DDR memory controller; In an optional embodiment, the DDR memory controller, as the hardware control core, cannot directly recognize and load decimal or hexadecimal parameter values. Therefore, it is necessary to convert these optimized parameters into configuration code that conforms to the controller instruction set specification.
[0078] It is understandable that different models of DDR memory controllers have preset parameter configuration formats. As long as the adjusted and determined read direction Vref value, write direction Vref value and termination resistor parameters can be mapped into machine instructions that the controller can parse, and the parameters can be correctly identified and loaded, this application will not elaborate on this further.
[0079] It should be clarified that the "DDR memory controller test program" involved in this application is a general program that is already widely available in the prior art. This application does not impose any restrictions on the specific programming language, execution logic, storage path, etc. of the test program, which should be known to those skilled in the art.
[0080] Step S6: Run the test program and obtain the optimized digital eye diagram until the eye height of the optimized digital eye diagram meets the preset tolerance. Then, lock the current corresponding read direction Vref value, write direction Vref value and termination resistor parameter as the optimal Vref parameter combination.
[0081] In this embodiment, the optimized read direction Vref value, write direction Vref value and termination resistor parameters need to be actually loaded into the DDR memory system to ensure that the DDR memory system operates according to the optimized parameters. Then, the optimized digital eye diagram is obtained, and the actual signal quality after parameter adjustment is verified by comparing it with the preset tolerance.
[0082] If the current optimization adjustment does not meet the standard, continue to repeat the above steps S1-S5 until the eye height of the optimized digital eye diagram meets the preset tolerance, and lock the current corresponding read direction Vref value, write direction Vref value and terminal resistor parameter as the optimal Vref parameter combination.
[0083] As an optional implementation method, please refer to Figure 6 This is a flowchart illustrating the process of determining whether the eye height of a digital eye diagram meets a preset tolerance in the DDR reference voltage parameter adjustment method provided in this application embodiment. The step of determining whether the eye height of the optimized digital eye diagram meets the preset tolerance includes: Step S60: Determine whether the eye height of the optimized digital eye diagram meets the preset tolerance; Specifically, the preset tolerance is a minimum eye height that is pre-set based on the actual application scenario, operating frequency, and data transmission error rate requirements of the DDR memory system. If the optimized eye height meets this tolerance, it means that the noise tolerance and level recognition accuracy of the signal meet the application requirements, and the reliability of data reading can be guaranteed.
[0084] In this embodiment of the application, the actual eye height after parameter adjustment is quantitatively compared with the preset tolerance to determine whether the optimized eye height meets the preset tolerance.
[0085] In an optional embodiment, when the optimized eye height is greater than or equal to the preset tolerance, it indicates that the signal quality after the current parameter adjustment meets the standard; when the optimized eye height is less than the preset tolerance, it indicates that the current parameters still cannot meet the application requirements and further iterative optimization is needed.
[0086] Step S61: If satisfied, lock the read direction Vref value, write direction Vref value and termination resistor parameter corresponding to the current digital eye diagram as the optimal Vref parameter combination; In this embodiment, if the optimized eye height is greater than or equal to the preset tolerance, it means that the previous parameter combination can enable the signal quality of the DDR memory system to meet the application requirements. The read direction Vref value, write direction Vref value and termination resistor parameter corresponding to the current digital eye diagram can be directly locked as the optimal Vref parameter combination.
[0087] If the conditions are not met, the Vref value for the read direction, the Vref value for the write direction, and the terminal resistance parameters corresponding to the current digital eye diagram will be iteratively optimized.
[0088] If the optimized eye height is less than the preset tolerance, it means that the current parameter adjustment has not completely solved the problems of signal distortion and impedance mismatch. Therefore, it is necessary to repeat the above steps S1-S5 to iteratively optimize the read direction Vref value, write direction Vref value and terminal resistor parameters corresponding to the current digital eye diagram until the optimized digital eye diagram's eye height meets the preset tolerance.
[0089] As an optional implementation method, please refer to Figure 7 This is a flowchart illustrating the process of determining the optimal Vref parameter combination in the DDR reference voltage parameter adjustment method provided in this application embodiment. The iterative optimization of the read-direction Vref value, write-direction Vref value, and termination resistor parameters corresponding to the current digitized eye diagram includes: Step S62: Update the set of effective sampling points based on the optimized digital eye diagram and the corresponding eye height amplitude distribution; In this embodiment, when the original set of valid sampling points can no longer reflect the signal characteristics of the current state after the parameters are adjusted, valid sampling points are re-selected based on the newly acquired digital eye diagram to avoid optimization deviations caused by using old data for iteration.
[0090] Step S63: Repeat the steps of determining the target optimization area, optimizing the Vref level value in the read direction, adjusting the Vref level value and the terminal resistor parameter in the write direction, compiling and running the test program, obtaining the optimized digital eye diagram, and determining whether the eye height meets the preset tolerance, until the eye height of the optimized digital eye diagram meets the preset tolerance. Furthermore, repeat the steps described above: determining the target optimization area, optimizing the Vref level value in the read direction, adjusting the Vref level value and termination resistor parameters in the write direction, compiling and running the test program, and correcting the deviations in the previous optimization.
[0091] For example, a more precise target optimization area can be redefined, or the Vref level value in the read / write direction can be fine-tuned to ensure that each iteration of optimization is based on the previous test results, until the eye height of the optimized digital eye diagram meets the preset tolerance and the iteration stops.
[0092] Step S64: Lock the read direction Vref value, write direction Vref value and termination resistor parameter corresponding to the current digital eye diagram to the optimal Vref parameter combination.
[0093] In this embodiment, when the eye height meets the preset tolerance during iteration, it indicates that the current read direction Vref value, write direction Vref value, and termination resistor parameters can accurately adapt to the signal quality requirements of the current DDR memory system. Therefore, it is necessary to lock the read direction Vref value, write direction Vref value, and termination resistor parameters corresponding to the current digital eye diagram as the optimal Vref parameter combination.
[0094] In an optional embodiment, the optimal Vref parameter combination can be directly stored in the non-volatile register of the DDR memory controller to ensure that the parameter can still be loaded after the device restarts, and to ensure that the optimal Vref parameter combination can work stably for a long time on the current DDR memory system.
[0095] The DDR reference voltage parameter adjustment method provided in this application first obtains the digital eye diagram of the DDR memory read direction and the corresponding eye height amplitude distribution. It then converts the read direction analog signal into quantifiable discrete data. Invalid sampling points due to register range limitations are excluded from the sampling points of the digital eye diagram, eliminating distorted data caused by register saturation. This ensures that the effective sampling point set truly reflects the actual transmission characteristics of the read direction signal, eliminating interference from invalid sampling points. Based on the eye height amplitude distribution of this effective sampling point set, a target optimization region is determined, allowing the optimization of the read direction Vref level value to focus on this target optimization region. Simultaneously, the write direction Vref level value and the terminal voltage are simultaneously adjusted. The impedance parameters were adjusted to balance the collaborative characteristics of the shared transmission link for DDR memory read and write signals with the impedance matching requirements of the transmission link. The adjusted parameters were then compiled into configuration code and written into the test program of the DDR memory controller. The optimized digital eye diagram was obtained by running the test program iteratively until the optimized eye height met the preset tolerance and the optimal parameter combination was locked. This ensured that the final parameter combination could stably adapt to the DDR memory hardware status, avoid interference from invalid sampling points caused by register range limitations, and achieve accurate determination of the optimal Vref parameter combination. This effectively improved the eye height margin and noise tolerance of the read direction signal, and enhanced the reliability of DDR memory data reading and the overall signal integrity.
[0096] Based on the above-described DDR reference voltage parameter adjustment method, this application also provides a DDR reference voltage parameter adjustment system, please refer to... Figure 9 A block diagram of a DDR reference voltage parameter adjustment system provided in this application embodiment. The DDR reference voltage parameter adjustment system includes: The acquisition unit is used to acquire the digital eye diagram of the DDR memory read direction and the corresponding eye height amplitude distribution; The exclusion unit is used to exclude invalid sampling points from the sampling points of the digital eye diagram due to register range limitations, thereby obtaining a set of valid sampling points; The determining unit is used to determine the target optimization region based on the eye height amplitude distribution of the effective sampling point set; The adjustment unit is used to optimize the read direction Vref level value of the target optimization region, and to simultaneously adjust the write direction Vref level value and the termination resistor parameter. The compilation unit is used to compile the adjusted and determined read direction Vref value, write direction Vref value, and termination resistor parameters into a test program that writes configuration code to the DDR memory controller. The optimization unit is used to run the test program and obtain the optimized digital eye diagram until the eye height of the optimized digital eye diagram meets the preset tolerance, and lock the current corresponding read direction Vref value, write direction Vref value and termination resistor parameter as the optimal Vref parameter combination.
[0097] As a further improvement to this application, the exclusion of invalid sampling points due to register range limitations includes: For each sampling point in the digital eye diagram, obtain the equalization control register value corresponding to its sampling time; When the value of the equalization control register exceeds the preset valid value range, the current sampling point is determined to be invalid and is discarded.
[0098] As a further improvement to this application, the step of determining the target optimization region based on the eye height amplitude distribution of the effective sampling point set includes: The digital eye diagram is divided into several grids, and the number of valid sampling points falling into each grid is counted to determine the sampling point density of each grid. Connect adjacent grids with sampling point density higher than the first density threshold to form one or more candidate optimization regions; Calculate the average eye height amplitude of all valid sampling points within each candidate optimization region; The candidate optimization region with the highest average eye height amplitude exceeding the first amplitude threshold is determined as the target optimization region.
[0099] As a further improvement to this application, the optimization of the read direction Vref level value of the target optimization region includes: Obtain the voltage values of all valid sampling points within the target optimization area; The median or average value of the voltage is determined as the Vref level value in the reading direction of the target optimization region for optimization.
[0100] As a further improvement to this application, the synchronous adjustment of the write direction Vref level value and the termination resistor parameter includes: Based on the optimized read direction Vref level value and the preset matching relationship between the write direction Vref level value and the read direction Vref level value, the write direction Vref level value is determined; Obtain the overshoot and undershoot amplitudes of the signal waveform at the logic level transition of the digital eye diagram; Compare the overshoot amplitude with the undershoot amplitude. If the overshoot amplitude is greater than the undershoot amplitude, increase the terminating resistor parameter; if the overshoot amplitude is less than the undershoot amplitude, decrease the terminating resistor parameter. The terminating resistor parameter is the negative feedback parameter of the on-chip terminating resistor.
[0101] As a further improvement to this application, the step of ensuring that the eye height of the optimized digital eye diagram meets a preset tolerance includes: Determine whether the eye height of the optimized digital eye diagram meets the preset tolerance; If satisfied, the Vref value for the read direction, the Vref value for the write direction, and the terminal resistance parameter corresponding to the current digital eye diagram will be locked as the optimal combination of Vref parameters. If the conditions are not met, the Vref value for the read direction, the Vref value for the write direction, and the terminal resistance parameters corresponding to the current digital eye diagram will be iteratively optimized.
[0102] As a further improvement to this application, the iterative optimization of the read direction Vref value, write direction Vref value, and termination resistance parameters corresponding to the current digital eye diagram includes: Based on the optimized digital eye diagram and the corresponding eye height amplitude distribution, the set of effective sampling points is updated. Repeat the steps of determining the target optimization region, optimizing the Vref level value in the read direction, adjusting the Vref level value and the terminal resistor parameter in the write direction, compiling and running the test program, obtaining the optimized digital eye diagram, and determining whether the eye height meets the preset tolerance, until the eye height of the optimized digital eye diagram meets the preset tolerance. The read direction Vref value, write direction Vref value, and termination resistor parameter corresponding to the current digital eye diagram are locked as the optimal Vref parameter combination.
[0103] For other details regarding the implementation techniques of each unit in the DDR reference voltage parameter adjustment system provided in the above embodiments, please refer to the description in the DDR reference voltage parameter adjustment method in the above embodiments, which will not be repeated here.
[0104] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system-type embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0105] Please refer to Figure 10 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 40 includes a processor 41 and a memory 42 coupled to the processor 41.
[0106] The memory 42 stores a calculation program. When the computer program is executed by the processor 41, the processor 41 performs the steps of the comprehensive testing method for the SSD system disk in the above embodiment.
[0107] The processor 41 can also be referred to as a CPU (Central Processing Unit). The processor 41 may be an integrated circuit chip with signal processing capabilities. The processor 41 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor.
[0108] Please refer to Figure 11This is a schematic diagram of the structure of the storage medium provided in the embodiments of this application. The computer-readable storage medium of this application embodiment stores a computer program 50. The computer program 50 is executed by a processor to implement the artificial intelligence-based actuarial analysis method in the above embodiments. The computer program 50 can be stored in the storage medium in the form of a software product, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media that can store program code, such as USB flash drives, mobile hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, or computer devices such as computers, servers, mobile phones, and tablets. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0109] It should be noted that, in the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed between each other can be through some interfaces, or indirect coupling or communication connection between devices or units, and can be electrical, mechanical, or other forms.
[0110] In specific implementation, the modules / units included in the various devices and products described in the above embodiments can be software modules / units, hardware modules / units, or a combination of both.
[0111] For example, for various devices and products applied to or integrated into chips, each module / unit can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits; for various devices and products applied to or integrated into chip modules, each module / unit can be implemented using hardware methods such as circuits, and different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The unit can be implemented using software programs that run on the processor integrated within the chip module. The remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, all of their modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal. Alternatively, at least some modules / units can be implemented using software programs that run on the processor integrated within the terminal, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits.
[0112] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0113] The above embodiments are merely exemplary implementations used to illustrate the principles of the embodiments of this application; however, the embodiments of this application are not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the embodiments of this application, and these modifications and improvements are also considered to be within the protection scope of the embodiments of this application.
Claims
1. A method for adjusting DDR reference voltage parameters, characterized in that, Includes the following steps: Obtain the digital eye diagram of the DDR memory read direction and the corresponding eye height amplitude distribution; From the sampling points of the digital eye diagram, invalid sampling points due to register range limitations are excluded to obtain a set of valid sampling points; The target optimization region is determined based on the eye height amplitude distribution of the effective sampling point set; The read direction Vref level value of the target optimization region is optimized, and the write direction Vref level value and the termination resistor parameter are adjusted simultaneously. The adjusted and determined read direction Vref value, write direction Vref value, and termination resistor parameters are compiled into configuration code and written into a test program for the DDR memory controller. Run the test program and obtain the optimized digital eye diagram until the eye height of the optimized digital eye diagram meets the preset tolerance. Then lock the current corresponding read direction Vref value, write direction Vref value and termination resistor parameter as the optimal Vref parameter combination.
2. The DDR reference voltage parameter adjustment method as described in claim 1, characterized in that, The exclusion of sampling points that are invalid due to register range limitations includes: For each sampling point in the digital eye diagram, obtain the equalization control register value corresponding to its sampling time; When the value of the equalization control register exceeds the preset valid value range, the current sampling point is determined to be invalid and is discarded.
3. The DDR reference voltage parameter adjustment method as described in claim 1, characterized in that, The step of determining the target optimization region based on the eye height amplitude distribution of the effective sampling point set includes: The digital eye diagram is divided into several grids, and the number of valid sampling points falling into each grid is counted to determine the sampling point density of each grid. Connect adjacent grids with sampling point density higher than the first density threshold to form one or more candidate optimization regions; Calculate the average eye height amplitude of all valid sampling points within each candidate optimization region; The candidate optimization region with the highest average eye height amplitude that is higher than the first amplitude threshold is determined as the target optimization region.
4. The DDR reference voltage parameter adjustment method as described in claim 1, characterized in that, The optimization of the read direction Vref level value of the target optimization region includes: Obtain the voltage values of all valid sampling points within the target optimization area; The median or average value of the voltage is determined as the Vref level value in the reading direction of the target optimization region for optimization.
5. The DDR reference voltage parameter adjustment method as described in claim 1, characterized in that, The synchronization adjusts the write direction Vref level and termination resistor parameters, including: Based on the optimized read direction Vref level value and the preset matching relationship between the write direction Vref level value and the read direction Vref level value, the write direction Vref level value is determined; Obtain the overshoot and undershoot amplitudes of the signal waveform at the logic level transition of the digital eye diagram; Compare the overshoot amplitude with the undershoot amplitude. If the overshoot amplitude is greater than the undershoot amplitude, increase the terminating resistor parameter; if the overshoot amplitude is less than the undershoot amplitude, decrease the terminating resistor parameter. The terminating resistor parameter is the negative feedback parameter of the on-chip terminating resistor.
6. The DDR reference voltage parameter adjustment method as described in claim 1, characterized in that, The process of ensuring that the eye height of the optimized digital eye diagram meets a preset tolerance includes: Determine whether the eye height of the optimized digital eye diagram meets the preset tolerance; If satisfied, the Vref value for the read direction, the Vref value for the write direction, and the terminal resistance parameter corresponding to the current digital eye diagram will be locked as the optimal combination of Vref parameters. If the conditions are not met, the Vref value for the read direction, the Vref value for the write direction, and the terminal resistance parameters corresponding to the current digital eye diagram will be iteratively optimized.
7. The DDR reference voltage parameter adjustment method as described in claim 6, characterized in that, The iterative optimization of the read direction Vref value, write direction Vref value, and termination resistance parameters corresponding to the current digital eye diagram includes: Based on the optimized digital eye diagram and the corresponding eye height amplitude distribution, the set of effective sampling points is updated. Repeat the steps of determining the target optimization region, optimizing the Vref level value in the read direction, adjusting the Vref level value and the terminal resistor parameter in the write direction, compiling and running the test program, obtaining the optimized digital eye diagram, and determining whether the eye height meets the preset tolerance, until the eye height of the optimized digital eye diagram meets the preset tolerance. The read direction Vref value, write direction Vref value, and termination resistor parameter corresponding to the current digital eye diagram are locked as the optimal Vref parameter combination.
8. A DDR reference voltage parameter adjustment system, characterized in that, include: The acquisition unit is used to acquire the digital eye diagram of the DDR memory read direction and the corresponding eye height amplitude distribution; The exclusion unit is used to exclude invalid sampling points from the sampling points of the digital eye diagram due to register range limitations, thereby obtaining a set of valid sampling points; The determining unit is used to determine the target optimization region based on the eye height amplitude distribution of the effective sampling point set; The adjustment unit is used to optimize the read direction Vref level value of the target optimization region, and to simultaneously adjust the write direction Vref level value and the termination resistor parameter. The compilation unit is used to compile the adjusted and determined read direction Vref value, write direction Vref value, and termination resistor parameters into a test program that writes configuration code to the DDR memory controller. The optimization unit is used to run the test program and obtain the optimized digital eye diagram until the eye height of the optimized digital eye diagram meets the preset tolerance, and lock the current corresponding read direction Vref value, write direction Vref value and termination resistor parameter as the optimal Vref parameter combination.
9. A computer device, characterized in that, The computer device includes a processor and a memory coupled to the processor, the memory storing a calculation program that, when executed by the processor, causes the processor to perform the steps of the DDR reference voltage calibration method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the DDR reference voltage calibration method as described in any one of claims 1-7.
Citation Information
Patent Citations
DDR debugging method and system, readable storage medium and electronic equipment
CN112328441A
Dynamic memory parameter calibration method and device, equipment, medium and program product
CN115691633A
Memory parameter optimization debugging method
CN118800313A
Temperature-controllable SSD DDR eye pattern test method and device, computer equipment and storage medium
CN119920300A
Reference voltage calibration in memory during runtime
US20170358369A1