DDR (Double Data Rate) read data eye diagram training system and method based on standard delay unit and medium
Through the DDR reading data eye diagram training system based on standard delay units, non-integer multiple delay processing is used to process and adjust the number of SDL and CDL units, which solves the problems of complex delay methods and insufficient flexibility in the existing technology, and improves system stability and Flexibility to achieve optimal sampling of read data and read data eye diagrams.
Patent Information
- Application Number
- CN202410724191.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-24
AI Technical Summary
During the read data eye diagram training of the existing DDR system, the delay method is complex and takes up a lot of hardware logic resources. It is not flexible enough and it is difficult to achieve optimal sampling of the read data and read data eye diagram.
Adopting a DDR reading data eye diagram training system based on standard delay units, including DDR training control module and IO module, through non-integer multiple delay processing and adjusting the number of SDL and CDL units to achieve flexible configuration of RDQS and RDQ signals and reduce delays The absolute value of the unit configuration.
It improves system stability and flexibility, reduces the absolute value of delay unit configuration, achieves optimal sampling of read data and read data eye diagrams, and reduces hardware logic resource usage.
Smart Images

Figure CN118689804A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuit design, and in particular to a DDR read data eye diagram training system, method and medium based on a standard delay unit. Background Art
[0002] Double Data Rate (DDR) system is the customary abbreviation of double data rate synchronous dynamic random access memory system. Its advantages are large storage capacity, low cost, mature interface, and high access rate during parallel burst access. The external signal interface of DDR mainly includes: clock signal (CK), data signal (DQ), select signal (DQS) and command / address signal (CA).
[0003] In order to complete the normal read function, the DDR controller needs to correctly receive the read data strobe signal (RDQS) and sample the read data (RDQ) through RDQS. According to the DDR4 standard document, RDQS includes the read preamble (pre), the RDQS accompanying the data, and the read postamble (post). Figure 1 As shown in the figure, this figure is the RDQS waveform corresponding to the normal DDR4 read command, where the read leading part is 1 DDR clock cycle (tCK), the read trailing part is 0.5tCK, and the DQS accompanying the data contains 4 complete RDQS_t high levels.
[0004] In DDR systems, the gate signal RDQS GATE is usually used to process RDQS, retaining only the RDQS portion that accompanies the data. The processed RDQS only retains four complete cycles, such as Figure 2 As shown. The DDR system uses RDQS as the sampling clock for sampling RDQ. In the DDR system, after routing and PAD delay, the initial relative positions of RDQS and RDQ are uncertain. In order to achieve the best sampling of RDQ, the DDR system needs to train RDQ and RDQS to determine their appropriate positions. The training process requires that the control logic of DDR has the ability to adjust the delays of RDQS and RDQ. The delay method of the general prior art mainly includes integer multiple delays and non-integer multiple delays. Since the related logic of integer multiple delays needs to be added, more hardware logic resources will be occupied, the complexity of the delay structure will be increased, and the flexibility is not high enough. Summary of the invention
[0005] The object of the present invention is to provide a DDR read data eye diagram training system, method and medium based on a standard delay unit, which can reduce the absolute value of the delay unit configuration and improve the system stability.
[0006] In a first aspect, the present invention provides a DDR read data eye diagram training system based on a standard delay unit, comprising: a DDR training control module and an IO module, the DDR training control module comprising: a command generation submodule, a delay control submodule, and a read data judgment submodule; the IO module comprising a gating logic submodule, a first delay submodule, a second delay submodule, and a data sampling submodule; the command generation submodule is used to generate a write command and a read command of a DDR particle, and send the write command and the read command to the DDR particle, and generate a corresponding gating signal and a read valid signal according to the read command; the gating signal is used to select the required RDQS signal; the read valid signal is used to trigger the read data judgment submodule to read out the RDQ signal after sampling; the gating logic submodule is used to delay and process the gating signal, and select the RDQ signal through the gating signal S signal, to obtain RDQS_T signal; the first delay submodule is used to perform non-integer multiple delay processing on the RDQS_T signal; the second delay submodule is used to perform non-integer multiple delay processing on the RDQ signal; the data sampling submodule is used to sample the delayed RDQ signal according to the delayed RDQS_T0 and RDQS_T1 signals, and store the sampling results in the buffer area; the read data judgment submodule is used to read the RDQ signal from the buffer area and judge whether it is correct to obtain the judgment result; the delay control submodule is used to adjust the number of SDL units and CDL units passed by the RDQS signal and the RDQ signal during the transmission process according to the judgment result during the training process, so as to adjust the length of the delay time until the RDQS signal falls into the target interval relative to the RDQ signal position.
[0007] In a possible embodiment, the first delay submodule is used to first perform non-integer delay processing on the RDQS_T signal to obtain a delayed signal P_RDQS_T0, and invert P_RDQS_T0 to obtain a signal P_RDQS_T1.
[0008] In another possible embodiment, the first delay submodule is used to delay the P_RDQS_T0 signal to obtain a delayed signal RDQS_T0, and delay and invert the P_RDQS_T1 signal to obtain a signal RDQS_T1.
[0009] In another possible embodiment, when the data sampling submodule samples the delayed RDQ signal according to the delayed signals RDQS_T0 and RDQS_T1, it is specifically used to: sample the odd phase signal of the delayed RDQ according to the delayed RDQS_T0 signal; and sample the even phase signal of the delayed RDQ according to the delayed inverted signal RDQS_T1.
[0010] In other possible embodiments, the first delay submodule and the second delay submodule both control the signal delay through the SDL unit and the CDL unit; wherein the SDL unit is a standard delay unit with a fixed delay function composed of a combinational logic cascade, and the CDL unit is a standard delay unit with a fixed delay function composed of an analog circuit.
[0011] In yet another possible embodiment, the first delay submodule includes a delay structure consisting of 96-level SDL units, 32-level SDL units, and 4-level CDL units connected in series.
[0012] In other possible embodiments, the second delay submodule includes a delay structure consisting of a 64-level SDL unit, a 32-level SDL unit, and a 4-level CDL unit connected in series.
[0013] In a second aspect, the present invention provides a DDR read data eye diagram training method based on a standard delay unit, which is applied to the training system as described in the first aspect, comprising:
[0014] S1, in MPR mode, write the expected data pattern required for the read data eye diagram training into the DDR particles through the write command;
[0015] S2, sending a read command to the DDR particle to perform a read operation, and generating a corresponding gating signal and a read valid signal through the read command; the gating signal is used to select the required RDQS signal; the read valid signal is used to trigger the read data judgment submodule to read out the RDQ signal of the sampling completion;
[0016] S3, setting the initial number of delay units of the RDQ signal and the RDQS signal, and configuring the initial positions of the RDQ signal and the RDQS signal;
[0017] S4, delaying and processing the gating signal, and selecting the RDQS signal by the gating signal to obtain the RDQS_T signal;
[0018] S5, by adjusting the number of SDL units and CDL units that the RDQS_T signal passes through during the transmission process, the delay time of RDQS_T is continuously increased, and a read operation is performed at each delayed position to determine whether the read-back data is correct and whether the position is in the target interval;
[0019] S6, when a complete and continuous stable target interval is found, the entire training process ends; when no complete and continuous stable target interval is found, the delay time of the RDQS_T signal is increased again until the set threshold is reached;
[0020] S7, when the complete target interval is still not found after the threshold value is increased, the delay time of RDQ is continuously reduced by adjusting the number of SDL units and CDL units that the RDQ signal passes through during the transmission process; and a read operation is performed at each delayed position to determine whether the read-back data is correct and whether the position is in the target interval;
[0021] S8, when the delay time of RDQ is reduced to the set threshold and the target interval is still not found, the training fails, otherwise the training is successful and the boundary position is marked.
[0022] In a possible embodiment, the method further includes: after the training is completed, according to the boundary position, removing the common delay part of the RDQ signal and the RDQS signal together, and configuring a non-integer delay on the RDQS signal.
[0023] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, which includes a computer program. When the computer program runs on an electronic device, the electronic device executes any possible design method in the first aspect above.
[0024] In a fourth aspect, an embodiment of the present application further provides a method comprising a computer program product, which, when executed on an electronic device, enables the electronic device to execute any possible design described in the first aspect.
[0025] The training method provided by the embodiment of the present invention can realize flexible configuration of delay information through instruction configuration. After the training is completed, the common delay parts of RDQ and RDQS are removed together, thereby reducing the absolute value of the delay unit configuration and improving the system stability. According to the wiring conditions of the general DDR system, this embodiment finally configures a non-integer delay on RDQS, and the delay information reconfiguration process is performed by controlling the internal logic of the FPGA through instructions, and reuses the delay unit configuration logic of the read data eye diagram training process, without the need for additional external software participation. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a schematic diagram of the RDQS_t waveform corresponding to the normal DDR4 read command;
[0027] Figure 2 A schematic diagram of processing RDQS using a gate signal RDQS GATE;
[0028] Figure 3 A schematic diagram of a DDR read data eye diagram training system based on a standard delay unit provided by the present invention;
[0029] Figure 4 A schematic diagram of the system structure for delaying the RDQS_T internally provided by the present invention;
[0030] Figure 5 A schematic diagram of another system structure for delaying the RDQS_T internally provided by the present invention;
[0031] Figure 6 A schematic flow chart of a DDR read data eye diagram training method based on a standard delay unit provided by the present invention;
[0032] Figure 7 A waveform diagram of the position of RDQ relative to RDQS provided by the present invention when neither RDQ nor RDQS is configured with a delay;
[0033] Figure 8 A waveform diagram of the position of RDQ relative to RDQS in the case where RDQ and RDQS are configured with delay provided by the present invention. DETAILED DESCRIPTION
[0034] The following is an explanation of the terms used in this article:
[0035] DDR: Double Data Rate, double data transfer rate.
[0036] DDR particles: DDR SDRAM, synchronous dynamic random access memory with double data transfer rate.
[0037] DQ: data, bidirectional data signal line of DDR particles.
[0038] DQS: data strobe, equivalent to the reference clock of the data signal, used to sample the data signal line.
[0039] RL: read latency, the time interval from when the DDR particle receives a read command to when it feeds back read data.
[0040] RDQ: read data, read data of DDR particles.
[0041] RDQS: read data strobe, read data strobe signal, includes a pair of differential signals RDQS_t and RDQS_c. After receiving the read command, the DDR particle will send out the read data RDQ and the read data strobe RDQS at a fixed read delay RL time.
[0042] RDQS GATE: The gating signal of the read enable signal, which controls the passage time of the read enable signal.
[0043] MPR: multipurpose register, which contains some readable and writable registers and can be used to help complete eye diagram reading training.
[0044] CK: clock, the clock signal of DDR particles, including a pair of differential clocks CK_t and CK_c.
[0045] SDL: Standard Cell Delay Line, a standard delay cell with fixed delay function composed of combinational logic cascade.
[0046] CDL: Customer delay line, a user-defined standard delay unit composed of analog circuits.
[0047] Skew: Due to wiring and other issues, different signals may be offset at the receiving end, making the signals not completely aligned.
[0048] tCK: DDR clock cycle.
[0049] UI: Half of the DDR clock period.
[0050] CS: Chip select, chip select signal, one of the standard interface signals of DDR particles and one of the command signals.
[0051] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other in the absence of conflict. The present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0052] 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 are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0053] In order to solve the problems raised in the background technology, the present application provides a DDR read data eye diagram training system based on a standard delay unit. Figure 3 It is a framework diagram of a DDR read data eye diagram training system based on a standard delay unit provided in an embodiment of the present application. The system can be implemented based on FPGA, including: a DDR training control module 10 and an IO module 20, wherein the IO module 20 is connected to an external DDR particle 30, wherein the DDR training control module 10 includes: a command generation submodule 101, a delay control submodule 102, and a read data judgment submodule 103; the IO module 20 includes a gate logic submodule 201, a first delay submodule 202, a second delay submodule 203, and a data sampling submodule 204.
[0054] The command generation submodule 101 is used to generate write commands and read commands for DDR particles, send the write commands and read commands to DDR particles, and generate corresponding gating signals and read valid signals according to the read commands; the gating signal is used to select the required RDQS signal; the read valid signal is used to trigger the read data judgment submodule to read out the RDQ signal of the sampling completion.
[0055] The gating logic submodule 201 is used to delay and process the gating signal, and select the RDQS signal through the gating signal to obtain the RDQS_T signal. Figure 3 As shown, the gate control logic submodule 201 includes a delay structure composed of 96-level SDL units, 32-level SDL units and 4-level CDL units connected in series.
[0056] The first delay submodule 202 is used to perform non-integer delay processing on the RDQS_T signal. The second delay submodule 203 is used to perform non-integer delay processing on the RDQ signal. The first delay submodule 202 and the second delay submodule 203 both control the signal delay through the SDL unit and the CDL unit; the SDL unit is a standard delay unit with a fixed delay function composed of a combinational logic cascade, and the CDL unit is a standard delay unit with a fixed delay function composed of an analog circuit. Figure 3 As shown, the first delay submodule 202 includes a delay structure composed of 96-level SDL units, 32-level SDL units and 4-level CDL units connected in series, wherein the 96-level SDL units are a common part, and the 32-level SDL units and the 4-level CDL units are independent delay parts. The second delay submodule 203 includes a delay structure composed of 64-level SDL units, 32-level SDL units and 4-level CDL units connected in series, wherein the 64-level SDL units are a common part, and the 32-level SDL units and the 4-level CDL units are independent delay parts.
[0057] The data sampling submodule 204 is used to sample the delayed RDQ signal according to the delayed RDQS_T0 and RDQS_T1 signals, and store the sampling result in a buffer area.
[0058] The read data judgment submodule 103 is used to read the RDQ signal from the buffer area and judge whether it is correct to obtain a judgment result.
[0059] The delay control submodule 102 is used to adjust the number of SDL units and CDL units that the RDQS signal and the RDQ signal pass through during the transmission process according to the judgment result during the training process, so as to adjust the length of the delay time until the RDQS signal falls into the target interval relative to the RDQ signal position.
[0060] In a possible embodiment, the first delay submodule 202 is used to first perform a multi-stage non-integer multiple delay process on the RDQS_T signal to obtain signals RDQS_T0 and RDQS_T1. Then, according to the delayed RDQS_T0 signal, the odd-phase signal of the delayed RDQ is sampled; and according to the delayed inverted signal RDQS_T1, the even-phase signal of the delayed RDQ is sampled. Exemplarily, in combination Figure 4For example, after receiving RDQS, the gated (GATE) signal is selected inside RDQS to obtain the RDQS_T signal. The processed RDQS_T passes through the SDL96 delay unit (common delay unit) and is inverted. Here, the uninverted signal is marked as P_RDQS_T0, and the inverted signal is marked as P_RDQS_T1. P_RDQS_T0 and P_RDQS_T1 are respectively passed through a small delay logic SDL32 and CDL4 to obtain the signals RDQS_T0 and RDQS_T1. RDQS_T0 and RDQS_T1 respectively sample phase0 / 2 / 4 / 6 and phase1 / 3 / 5 / 7 of the RDQ signal after delay processing by SDL64 and SDL32.
[0061] In another possible embodiment, the first delay submodule 202 is used to first invert the RDQS_T signal to obtain a signal P_RDQS_T1, and mark the non-inverted signal as P_RDQS_T0. Then, the P_RDQS_T0 signal and the inverted signal P_RDQS_T1 are respectively delayed by non-integer multiples, and the odd-phase signal of the delayed RDQ is sampled according to the delayed RDQS_T0 signal; and the even-phase signal of the delayed RDQ is sampled according to the inverted signal RDQS_T1. Figure 5 For example, after receiving RDQS, the gated (GATE) signal is selected inside RDQS to obtain the RDQS_T signal. Here, the non-inverted signal is marked as P_RDQS_T0, and the inverted signal is marked as P_RDQS_T1. After that, the first branch delays the non-inverted signal P_RDQS_T0 through the SDL96 delay unit (common delay unit), and then after a small independent delay logic SDL32, the phase0 / 2 / 4 / 6 of the RDQ signal after the delay processing of SDL64 and SDL32 is sampled. The second branch delays the inverted signal P_RDQS_T1 through the same SDL96 delay unit (common delay unit), and after a small independent delay logic SDL32, the phase1 / 3 / 5 / 7 of the RDQ signal after the delay processing of SDL64 and SDL32 is sampled.
[0062] It should be understood that since RDQS_T0 / T1 is close to the RDQ sampling position, the delay structure on the wiring is basically the same. SDL32_0 and SDL32_1 are mainly used to compensate for the duty cycle deviation of RDQS. This method can be used to obtain the read data eye diagram as large as possible, and because Figure 4The main delay part of RDQS_T0 / RDQS_T1 uses SDL96 for delay, which can reduce the overall logic quantity of the design. In addition, there is also a delay control unit SDL32 on RDQ, which can be used to compensate for the skew between different bits of RDQ, so that all DQs are finally in the best sampling position.
[0063] Based on the above training system, the embodiment of the present invention also provides a DDR read data eye diagram training method based on a standard delay unit, such as Figure 6 As shown, the following steps are included:
[0064] S1, in MPR mode, write the expected data pattern required for the read data eye diagram training into the DDR particles through the write command;
[0065] S2, sending a read command to the DDR particle to perform a read operation, and generating a corresponding gating signal and a read valid signal through the read command; the gating signal is used to select the required RDQS signal; the read valid signal is used to trigger the read data judgment submodule to read out the RDQ signal of the sampling completion;
[0066] S3, setting the initial number of delay units of the RDQ signal and the RDQS signal, and configuring the initial positions of the RDQ signal and the RDQS signal.
[0067] That is to say, in MPR mode, the user writes the expected data pattern required for eye diagram training into the MPR register through the CA bus through the MPR write command. Then, the particle is allowed to return the data pattern as RDQ through the MPR read operation, and RDQS is fed back at the same time. The delay unit SDL64 of RDQ is set to configure the initial value for it. According to the target interval expected by DDR, it can be known that the return time of RDQ will lag slightly behind the corresponding RDQS edge, and because the wiring on the board will cause a certain deviation (skew) between RDQS and RDQ, so when neither RDQ nor RDQS is configured with delay, various situations may occur at the sampling position, such as Figure 7 shown.
[0068] It should be understood that in order to ensure that the training can find the complete target interval, this method sets the appropriate SDL64 initial value through instructions according to the size of the RDQ and RDQS skew on the DDR system board to ensure that the initial position sampling of the training is in a failed state. Regardless of whether the initial position of RDQ is before RDQS (skew0) or after RDQS (skew2), it can be set by SDL64 to meet the training requirements. By setting SDL64, a larger skew margin can be provided for the RDQ and RDQS routing on the DDR system board. The appropriate SDL64 can minimize the training time while ensuring that the complete interval is found. If the system is not sensitive to training time, the initial value of RDQ SDL64 can be directly set to the maximum value, which can meet the maximum skew requirement.
[0069] S4, delaying and processing the gating signal, and selecting the RDQS signal by the gating signal to obtain the RDQS_T signal.
[0070] S5, adjusting the delay time of the RDQS_T signal, that is, continuously increasing the delay time of the RDQS_T by adjusting the number of SDL units and CDL units that the RDQS_T signal passes through during the transmission process.
[0071] S6, sending a read command to the DDR particle 30 at each delay position to perform a read operation, and judging whether the read-back data is correct, thereby determining whether the position is in the target interval.
[0072] S7, determine whether a complete and continuous stable target interval is found. If so, execute S11, that is, when a complete and continuous stable target interval is found, end the entire training process; if not, return to execute S5 and increase the delay time of the RDQS_T signal again until the set threshold is reached.
[0073] S8, when the complete target interval is still not found after increasing to the set threshold, the delay time of the RDQ signal is adjusted, that is, the delay time of the RDQ signal is continuously reduced by adjusting the number of SDL units and CDL units that the RDQ signal passes through during the transmission process.
[0074] S9, sending a read command to the DDR particle 30 at each delay position to perform a read operation, and judging whether the read-back data is correct, thereby determining whether the position is in the target interval.
[0075] S10, determining whether a complete and continuous stable target interval is found, if so, executing S11, otherwise executing S12.
[0076] S11, when a complete and continuous stable target interval is found, the training is successful and the delay position of the RDQ signal is marked. It should be understood that when multiple read operations are correct, the position is considered correct, and only when multiple continuous delay positions are correct, the stable target interval is considered to be found.
[0077] S12: When the delay time of RDQ is reduced to the set threshold and the target interval is still not found, the training fails.
[0078] In a possible embodiment, the method further includes: after the training is completed, calculating the final configuration information and updating the configuration, removing the common delay part of the RDQ signal and the RDQS signal together according to the boundary position, and configuring a non-integer delay on the RDQS signal.
[0079] In the above embodiment, when the delay adjustment is performed on RDQS, if the setting of SDL96 reaches the maximum setting, SDL32 can be used, so the maximum adjustable range of RDQS is 128 levels of SDL, about 2.56μs. When performing delay adjustment, the minimum delay unit added each time is 1CDL, which is used to ensure the training accuracy. For low-frequency systems, the number of delay units adjusted each time can be increased to shorten the training time. In this embodiment, in order to ensure that the initial value of RDQ puts all systems in a failed position, a larger initial value is generally set for RDQ to make it in Figure 8 Position 3.
[0080] In this embodiment, when the delay time of RDQS increases to the set threshold (the threshold is carried by the instruction and is generally set to the maximum value of RDQSSDL96 / 32, that is, the RDQS delay increases by 128 levels of SDL), the complete target interval is still not found. At this time, the position of RDQS is Figure 8 At position 4, its rising edge is still a certain distance from the right edge of RDQ. At this time, you need to start adjusting the position of RDQ, gradually reduce RDQ from its initial setting, and read back the data to determine whether the current data is correct, until it reaches position 5, at which time the boundary position of the target interval is found and the training ends. If the RDQ setting is reduced to 0 and the complete target interval is still not found, it is marked as training failure.
[0081] During the training process of the embodiment of the present invention, each bit will record the boundary position of the target interval separately on the rising edge and the falling edge. Taking x8 particles as an example, each group of DQ has 8 bits. For the starting position of the pass interval sampled by the rising edge of RDQS, the delay time RDQ[i]_LBD_R (i=0, 1, 2, 3, 4, 5, 6, 7) of DQ and the delay time RDQS[i]_LBD_R of RDQS will be recorded. For the starting position of the pass interval sampled by the falling edge of RDQS, the delay time RDQ[i]_LBD_F of DQ and the delay time RDQS[i]_LBD_F of RDQS will be recorded. For the end position of the pass interval sampled by the rising edge of RDQS, the delay time RDQ[i]_HBD_R of DQ and the delay time RDQS[i]_HBD_R of RDQS will be recorded. For the end position of the pass interval sampled by the falling edge of RDQS, the delay time RDQ[i]_HBD_F of DQ and the delay time RDQS[i]_HBD_F of RDQS are recorded.
[0082] The delay time of the center position of each bit rising edge pass interval is recorded as:
[0083]
[0084] The delay time of the center position of each bit falling edge pass interval is recorded as:
[0085]
[0086] Determine the minimum value between RDQSD[i]_R and RDQSD[i]_F and record it as: RDQSD_min
[0087] Note: RDQSD = |RDQSD_min-RDQ initial delay|
[0088] If RDQSD_min>RDQ initial delay, RDQSD is stored in SDL96 of the Byte and SDL64 of all DQs is cleared; otherwise, RDQSD is stored in SDL64 of all DQs of the Byte and SDL96 of the Byte is cleared.
[0089] Using the above calculation method, the configuration on the delay line can be reduced as much as possible, thereby reducing the impact of PVT on system stability.
[0090] remember:
[0091] RDQSD_32_R is the maximum value of all RDQSD[i]_R-RDQSD_min;
[0092] RDQSD_32_F is the maximum value of all RDQSD[i]_F-RDQSD_min;
[0093] RDQSD_32_R and RDQSD_32_F are stored in SDL32_0 and SDL32_1 of RDQS respectively. These two parts are mainly used to compensate for the RDQS duty cycle deviation. Through this setting, the rising edge and falling edge of RDQS can correspond to the center position of the DQ it samples.
[0094] remember:
[0095]
[0096] Configure RDQD[i] to the SDL32 of each RDQ respectively to compensate for the skew between different DQs.
[0097] According to the above configuration, the overall delay time of RDQ and RDQS is relatively small, and the RDQSduty deviation and RDQ skew can be compensated. The overall system is less affected by PVT, has high stability, and the training result position is accurate and high precision. It should be understood that this method can be applied to all DDR particle types and systems, and the bit width is expanded according to demand, not limited to x8 particles. In addition, it is applicable to other similar systems such as LPDDR.
[0098] The above method provided in this embodiment can realize flexible configuration of delay information through instruction configuration. After the training is completed, the common delay part of RDQ and RDQS will be removed together, thereby reducing the absolute value of the delay unit configuration and improving the system stability. According to the wiring conditions of the general DDR system, this embodiment finally configures a non-integer delay on RDQS, and the delay information reconfiguration process is performed by controlling the internal logic of the FPGA through instructions, and reuses the delay unit configuration logic of the read data eye diagram training process, without the need for additional external software participation.
[0099] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.
Claims
1. A DDR read data eye diagram training system based on a standard delay unit, characterized in that: include: A DDR training control module and an IO module, wherein the IO module is connected to an external DDR particle, wherein the DDR training control module includes: a command generation submodule, a delay control submodule, and a read data judgment submodule; the IO module includes a gating logic submodule, a first delay submodule, a second delay submodule, and a data sampling submodule; The command generation submodule is used to generate write commands and read commands for DDR particles, send the write commands and read commands to DDR particles, and generate corresponding gating signals and read valid signals according to the read commands; the gating signal is used to select the required RDQS signal; the read valid signal is used to trigger the read data judgment submodule to read out the RDQ signal of the sampling completion; The gating logic submodule is used to delay and process the gating signal, and select the RDQS signal through the gating signal to obtain the RDQS_T signal; The first delay submodule is used to perform non-integer multiple delay processing on the RDQS_T signal; The second delay submodule is used to perform non-integer multiple delay processing on the RDQ signal; The data sampling submodule is used to sample the delayed RDQ signal according to the delayed RDQS_T signal, and store the sampling result in a buffer area; The read data judgment submodule is used to read the RDQ signal from the buffer area and judge whether it is correct to obtain a judgment result; The delay control submodule is used to adjust the number of SDL units and CDL units that the RDQS signal and the RDQ signal pass through during the transmission process according to the judgment result during the training process, so as to adjust the length of the delay time until the RDQS signal falls into the target interval relative to the RDQ signal position.
2. The system according to claim 1, characterized in that The first delay submodule is used to first perform non-integer delay processing on the RDQS_T signal to obtain a delayed signal P_RDQS_T0, and to invert the P_RDQS_T0 signal to obtain a signal P_RDQS_T1.
3. The system according to claim 1, characterized in that The first delay submodule is used for delaying the P_RDQS_T0 signal to obtain a delayed signal RDQS_T0, and for delaying the P_RDQS_T1 signal to obtain a signal RDQS_T1.
4. The system according to claim 2 or 3, characterized in that: When the data sampling submodule samples the delayed RDQ signal according to the delayed signals RDQS_T0 and RDQS_T1, it is specifically used to: According to the delayed RDQS_T0 signal, the odd-phase signal of the delayed RDQ is sampled; and according to the delayed inverted signal RDQS_T1, the even-phase signal of the delayed RDQ is sampled.
5. The system according to any one of claims 1 to 3, characterized in that: The first delay submodule and the second delay submodule both control the signal delay through the SDL unit and the CDL unit; wherein the SDL unit is a standard delay unit with a fixed delay function composed of a combinational logic cascade, and the CDL unit is a standard delay unit with a fixed delay function composed of an analog circuit.
6. The system according to any one of claims 1 to 3, characterized in that: The first delay submodule includes a delay structure consisting of 96-level SDL units, 32-level SDL units and 4-level CDL units connected in series.
7. The system according to claim 4, characterized in that The second delay submodule includes a delay structure consisting of 64-level SDL units, 32-level SDL units and 4-level CDL units connected in series.
8. A DDR read data eye diagram training method based on a standard delay unit, applied to the training system according to any one of claims 1 to 5, characterized in that: include: S1, in MPR mode, write the expected data pattern required for the read data eye diagram training into the DDR particles through the write command; S2, sending a read command to the DDR particle to perform a read operation, and generating a corresponding gating signal and a read valid signal through the read command; the gating signal is used to select the required RDQS signal; the read valid signal is used to trigger the read data judgment submodule to read out the RDQ signal of the sampling completion; S3, setting the initial number of delay units of the RDQ signal and the RDQS signal, and configuring the initial positions of the RDQ signal and the RDQS signal; S4, delaying and processing the gating signal, and selecting the RDQS signal by the gating signal to obtain the RDQS_T signal; S5, by adjusting the number of SDL units and CDL units that the RDQS_T signal passes through during the transmission process, the delay time of RDQS_T is continuously increased, and a read operation is performed at each delayed position to determine whether the read-back data is correct and whether the position is in the target interval; S6, when a complete and continuous stable target interval is found, the entire training process ends; When no complete and continuous stable target interval is found, the delay time of the RDQS_T signal is increased again until the set threshold is reached; S7, when the complete target interval is still not found after the threshold value is increased, the delay time of RDQ is continuously reduced by adjusting the number of SDL units and CDL units that the RDQ signal passes through during the transmission process; and a read operation is performed at each delayed position to determine whether the read-back data is correct and whether the position is in the target interval; S8, when the delay time of RDQ is reduced to the set threshold and the target interval is still not found, the training fails, otherwise the training is successful and the boundary position is marked.
9. The method according to claim 8, characterized in that Also includes: After the training is completed, according to the boundary position, the common delay part of the RDQ signal and the RDQS signal is removed together, and a non-integer delay is configured on the RDQS signal.
10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 8 to 9 is implemented.
Citation Information
Cited By
DDR-based training debugging system and method
CN121072421A
DDR-based training debug system and method
CN121072421B
