Signal quality optimization method and signal quality optimization system
Through the combination of ZQ calibration circuit and processing device, the resistance values of the OCD and ODT circuits are adjusted, and the signal quality optimization problem cannot be changed under the external reference voltage is solved, and the optimal resistance value combination is automatically screened to ensure the improvement of signal quality.
Patent Information
- Application Number
- CN202310547937.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2024-11-22
AI Technical Summary
In the case where the external input reference voltage cannot be changed, it is difficult to effectively optimize the resistance setting of ZQ calibration, resulting in insufficient signal eye width and affecting signal quality.
The ZQ calibration circuit performs calibration procedures for the OCD and ODT circuits, obtains multiple OCD and ODT resistance combinations, configures the processing device to execute waveform test procedures, adjusts the OCD resistance to meet custom time specifications, and calculates the resistance of each combination to adjust Proportion, automatic filtering of the best combination.
It is realized that the optimal OCD-ODT resistance value combination is automatically found without changing the external reference voltage, ensuring that the signal eye diagram has sufficient eye width and eye height and improving signal quality.
Smart Images

Figure CN119007789A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an optimization method and an optimization system, and in particular to a signal quality optimization method and a signal quality optimization system. Background Art
[0002] For the signal specified in the Open NAND Flash Interface (ONFI) standard, the reference voltage is fixed by external input, unlike the DDR4 standard, which can use the mode register to adjust the reference voltage VREFDQ for calibration. Therefore, without the variable voltage level input from the outside, it is impossible to know the actual situation of the signal in the eye diagram.
[0003] On-Die Termination (ODT) is a technology used to match the output impedance of DRAM and the terminal impedance of the system on the transmission line. The selection of ODT value is very important for the working performance and signal stability of DRAM. In ZQ calibration, DRAM will send a calibration signal in a specific mode, read the ODT resistance value and adjust it according to the ODT resistance value to ensure the stability and reliability of the output signal.
[0004] Off-Chip Driver (OCD) is an output driver calibration technology used to adjust the strength and voltage of the output driver. In ZQ calibration, the DRAM sends a specific calibration signal, and then adjusts the strength and voltage of the output driver by measuring the feedback of this signal, thereby ensuring the stability and reliability of the output signal.
[0005] For existing OCD circuits, when selecting the resistance value after ZQ calibration, the eye width under a fixed reference voltage VREFDQ can only be known through testing. In addition, due to the large number of NAND Flash particles, it is difficult to eliminate the reflected signal, resulting in the selection of an unsafe resistance value with a wide enough eye width but not high enough eye height. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a signal quality optimization method and a signal quality optimization system to improve the resistance setting of ZQ calibration when the reference voltage of the external input cannot be changed, so as to predict the possible eye width and eye height to optimize the signal quality.
[0007] In order to solve the above technical problems, one of the technical solutions adopted by the present invention is to provide a signal quality optimization method, which is applicable to a first circuit and a second circuit electrically connected to each other, and the signal quality optimization method comprises: performing a ZQ calibration procedure on an OCD circuit of the first circuit and an ODT circuit of the second circuit through a ZQ calibration circuit to obtain a plurality of calibration resistor quantities corresponding to a plurality of OCD resistance values and a plurality of corrected ODT resistance values, wherein a plurality of ODT-OCD resistance value combinations define the corresponding relationship between the ODT resistance values and the OCD resistance values; configuring a processing device to perform a waveform test procedure for each of the ODT-OCD resistance value combinations, including: setting a predetermined time specification to determine an operation success between the first circuit and the second circuit Condition; and adjust the OCD circuit according to the number of calibration resistors corresponding to a target ODT resistance value, and at the same time transmit a set of test signals between the second circuit and the first circuit, and obtain a signal eye diagram corresponding to the set of test signals, and after repeated adjustment and testing, obtain a resistance adjustable ratio corresponding to the target ODT resistance value; configure the processing device to extract the OCD resistance value with the highest resistance adjustable ratio for different ODT resistance values to obtain multiple preferred ODT-OCD resistance value combinations; and configure the processing device to configure the ODT circuit and the OCD circuit according to the preferred ODT-OCD resistance value combinations, and perform multiple operation test procedures on the first circuit and the second circuit to obtain an optimized ODT-OCD resistance value combination according to the test results of the operation test procedures.
[0008] In order to solve the above technical problems, another technical solution adopted by the present invention is to provide a signal quality optimization system, including a first circuit, a second circuit, a ZQ calibration circuit and a processing device. The first circuit includes an OCD circuit. The second circuit includes an ODT circuit. The ZQ calibration circuit is electrically connected to the OCD circuit and the ODT circuit, and is configured to perform a ZQ calibration procedure on the OCD circuit and the ODT circuit to obtain a plurality of calibration resistor quantities corresponding to a plurality of OCD resistance values and a plurality of corrected ODT resistance values, wherein a plurality of ODT-OCD resistance value combinations define the corresponding relationship between the ODT resistance values and the OCD resistance values. The processing device is configured to perform a waveform test procedure for each of the ODT-OCD resistance combinations, including: setting a predetermined time specification to determine an operation success condition between the first circuit and the second circuit; and adjusting the OCD circuit according to the number of calibration resistors corresponding to a target ODT resistance, while transmitting a set of test signals between the second circuit and the first circuit, and obtaining a signal eye diagram corresponding to the set of test signals, and obtaining a resistance adjustable ratio corresponding to the target ODT resistance after repeated adjustment and testing. The processing device is also configured to: extract the OCD resistance with the highest resistance adjustable ratio for different ODT resistances to obtain multiple preferred ODT-OCD resistance combinations; and configure the processing device to configure the ODT circuit and the OCD circuit according to the preferred ODT-OCD resistance combinations, and perform multiple operation test procedures on the first circuit and the second circuit to obtain an optimized ODT-OCD resistance combination according to the test results of the operation test procedures.
[0009] One of the beneficial effects of the present invention is that the signal quality optimization method and signal quality optimization system provided by the present invention can count the maximum and minimum values of the pull-up resistor (or pull-down resistor) that can meet the self-defined time specification by adjusting the number of OCD resistors, and calculate the available range of each OCD resistance value, thereby automatically finding the best set of OCD-ODT resistance combinations, under which the corresponding eye diagram can be guaranteed to present a certain signal quality.
[0010] To further understand the features and technical contents of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings provided are only for reference and description and are not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 FIG. 4 is a schematic diagram of a signal quality optimization system according to an embodiment of the present invention.
[0012] Figure 2 FIG. 4 is a circuit diagram of an OCD circuit according to an embodiment of the present invention.
[0013] Figure 3 FIG. 4 is a flow chart of a signal quality optimization method according to an embodiment of the present invention.
[0014] Figure 4 Flow chart of the waveform testing procedure according to an embodiment of the present invention.
[0015] Figure 5 A schematic diagram of the waveform of the signal on the data pin DQ that is affected by increasing the number of pull-up resistors that are turned on and reducing the number of pull-down resistors that are turned on.
[0016] Figure 6 FIG. 4 is a detailed flow chart of step S125 according to an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following is an explanation of the implementation methods of the "signal quality optimization method and signal quality optimization system" disclosed in the present invention through specific embodiments. Those skilled in the art can understand the advantages and effects of the present invention from the contents disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and the details in this specification can also be modified and changed in various ways based on different viewpoints and applications without departing from the concept of the present invention. In addition, the drawings of the present invention are only simple schematic illustrations and are not depicted according to actual dimensions. It is stated in advance. The following embodiments will further explain the relevant technical contents of the present invention in detail, but the disclosed contents are not intended to limit the scope of protection of the present invention. In addition, the term "or" used in this article may include any one or more combinations of the associated listed items depending on the actual situation.
[0018] Figure 1 FIG. 1 is a schematic diagram of a signal quality optimization system according to an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a signal quality optimization system 100 , including a first circuit 1 , a second circuit 2 , a ZQ calibration circuit 3 and a processing device 4 .
[0019] The first circuit 1 includes an OCD circuit 10, which may be, for example, a memory controller circuit, and may be, for example, applicable to a double data rate synchronous dynamic random access memory (DDR SDRAM). In particular, it may be, for example, applicable to second and third generation DDR SDRAM (DDR2 and DDR3), and may also be applicable to fourth generation DDR SDRAM (DDR4). A memory controller generally includes a memory controller core, a controller physical layer, a control signal generator, a memory interface, and a memory controller interface. The memory controller core is a processor that controls DDR2 or DDR3 memory, and is responsible for processing instructions from the CPU and controlling the timing and sequence of memory operations. The controller physical layer may convert digital signals into analog signals, and convert analog signals into digital signals, and is responsible for processing the memory timing and sequence to ensure that data can be transmitted accurately. The OCD circuit 10 may be used to adjust the signal of the controller physical layer. The OCD circuit 10 generally monitors the signal of the controller physical layer and makes minor adjustments to it to ensure the integrity and reliability of the signal.
[0020] The control signal generator can be used to generate and transmit various control signals required by the memory controller. The memory interface can convert the signals sent by the controller into the signals required by the memory, and the memory controller interface is a module responsible for connecting the memory controller with other system components (such as CPU, south bridge, north bridge, etc.).
[0021] For further reference Figure 2 , Figure 2 FIG. 1 is a circuit diagram of an OCD circuit according to an embodiment of the present invention. Figure 2 As shown, the OCD circuit 10 includes a pull-up resistor circuit 102 and a pull-down resistor circuit 104. The pull-up resistor circuit 102 includes a plurality of pull-up resistors RU and a plurality of first control switches SW1, each of which is connected in series between a power supply voltage VDD and an input / output terminal IO. The pull-down resistor circuit 104 includes a plurality of pull-down resistors RD and a plurality of second control switches SW2 corresponding to the pull-down resistors RD, each of which is connected in series between the input / output terminal IO and a ground terminal GND.
[0022] The OCD circuit 10 further includes a control circuit 106 for controlling the first control switch SW1 and the second control switch SW2 to adjust the number of pull-up resistors and the number of pull-down resistors.
[0023] On the other hand, the second circuit 2 may be, for example, a memory circuit, such as a DDR SDRAM. In particular, it may be, for example, a second generation and a third generation DDR SDRAM (DDR2 and DDR3), or a fourth generation DDR SDRAM (DDR4). The second circuit 2 may include an ODT circuit 20, and the ODT circuit 20 may include a plurality of reference resistors Rt1 and Rt2 electrically connected to the input and output terminals IO, and the ODT circuit 20 is not Figure 1 The circuit architecture is limited.
[0024] The ZQ calibration circuit 3 is electrically (directly or indirectly) connected to the OCD circuit 10 and the ODT circuit 20, and is configured to perform a ZQ calibration procedure on the OCD circuit 10 and the ODT circuit 20. In the ZQ calibration procedure, the memory circuit (the second circuit 2) sends a calibration signal in a specific mode, reads the ODT resistance value and makes adjustments according to the ODT resistance value to ensure the stability and reliability of the output signal. The ODT matching technology can be performed on each data pin DQ (e.g., input / output terminal IO) of the memory circuit (the second circuit 2). In this case, the resistor corresponding to each data pin in the ODT circuit 20 should have a correct resistance value.
[0025] The ZQ calibration circuit 3 can provide the second circuit 2 with a ZQ pin Pzq, to which a 240 ohm low tolerance reference resistor Rref is connected. This pin can automatically calibrate the on-resistance of the output driver and the termination resistance value of the ODT through the command set and the on-die calibration engine (ODCE).
[0026] In addition, in the ZQ calibration procedure, the memory circuit (second circuit 2) sends a specific calibration signal to the memory controller circuit (first circuit 1), and then adjusts the strength and voltage of the output driver by measuring the feedback of this signal, thereby ensuring the stability and reliability of the output signal.
[0027] Since the data pins (i.e., input / output terminals IO) are coupled to the memory controller circuit (first circuit 1) through pads, the resistance calibration on the OCD circuit 10 can be achieved by using the correct resistance value on the corresponding data pins in the memory circuit (second circuit 2), wherein the resistors Rt1 and Rt2 on the data pins can be regarded as reference resistors for providing the reference resistance value required for calibration of the corresponding OCD circuit 10.
[0028] It should be noted that in the signal quality optimization system 100 provided by the present invention, the OCD circuit 10, the ODT circuit 20 and the ZQ calibration circuit 3 used for OCD, ODT and ZQ calibration are not limited to Figure 1According to the configuration, the memory circuit (second circuit 2) and the controller circuit (first circuit 1) may be both configured with an OCD circuit 10, an ODT circuit 20 and a ZQ calibration circuit 3 to perform OCD, ODT and ZQ calibration respectively.
[0029] like Figure 1 As shown, the processing device 4 can be electrically (directly or indirectly) connected to the first circuit 1 and the second circuit 2. It should be noted that the processing device 4 can be, for example, a host end, and the memory controller circuit (first circuit 1) is usually implemented as an IP core (Intellectual Property core) in the host end system, which is used to control the host end to access the memory circuit (such as DDR SDRAM). The host end (processing device 4) can be many different digital processing systems, such as embedded systems, personal computers, mobile phones, etc. The memory circuit can be connected to other IP cores through an external bus to achieve data exchange and control with other parts of the processing device 4. In addition, the processing device 4 may include a processor, such as a central processing unit (CPU), and the memory controller circuit (first circuit 1) is usually connected to the CPU through a north bridge chip, and the access to the memory circuit is controlled through the CPU interface.
[0030] Please refer to Figure 3 , Figure 3 Flow chart of the signal quality optimization method according to an embodiment of the present invention. As shown in the figure, the signal quality optimization method of the present invention can be applied to the aforementioned signal quality optimization system 100, and can include the following steps:
[0031] Step S10 : performing a ZQ calibration procedure on the OCD circuit and the ODT circuit via the ZQ calibration circuit to obtain a plurality of calibration resistor quantities corresponding to a plurality of OCD resistance values and a plurality of calibrated ODT resistance values.
[0032] In detail, the ZQ calibration procedure can be performed based on the following steps: a comparator compares a reference signal with a calibration signal transmitted between a memory controller circuit (first circuit 1) and a memory circuit (second circuit 2); a ZQ calibration controller in a ZQ calibration circuit 3 adjusts the resistance values of reference resistors Rt1 and Rt2 according to the comparison result (i.e., pull-up / pull-down resistor calibration) to adjust the calibration signal until the voltage of the calibration signal is equal to or almost equal to the reference voltage. After the ODT circuit 20 is calibrated to obtain a plurality of corrected ODT resistance values, the memory circuit (second circuit 2) sends a specific calibration signal to a further memory controller circuit (first circuit 1), and then adjusts the resistance value of the OCD circuit 10 by measuring the feedback of the signal, thereby obtaining the number of calibration resistors corresponding to the specific resistance value under the premise of ensuring the stability and reliability of the output signal, and the number of calibration resistors may include the number of calibration pull-up resistors and the number of calibration pull-down resistors. The calibrated pull-up resistor quantity is the quantity of the first switches SW1 turned on in the pull-up resistor circuit 102 at a specific resistance value, and the calibrated pull-down resistor quantity is the quantity of the second switches SW2 turned on in the pull-down resistor circuit 104 at a specific resistance value.
[0033] In addition, after the ZQ calibration procedure is completed, multiple calibration resistor quantities corresponding to multiple OCD resistance values and multiple corrected ODT resistance values can be obtained. In addition, multiple ODT-OCD resistance value combinations define the corresponding relationship between these ODT resistance values and these OCD resistance values. For example, multiple ODT resistance values may include four resistance values of 150, 100, 75 and 50 ohms, and multiple OCD resistance values may include four resistance values of 50, 35, 25, and 18 ohms. According to the above description, the total number of multiple ODT-OCD resistance value combinations is 16, and each ODT-OCD resistance value combination corresponds to a calibration resistor quantity (that is, corresponding to a calibration pull-up resistor quantity and a calibration pull-down resistor quantity).
[0034] For example, after the ZQ calibration procedure, the result of an OCD resistance value of 50 ohms is calibrated pull-up resistor number: 32 / calibrated pull-down resistor number: 28; the result of an OCD resistance value of 35 ohms is calibrated pull-up resistor number: 48 / calibrated pull-down resistor number: 40; the result of an OCD resistance value of 25 ohms is calibrated pull-up resistor number: 64 / calibrated pull-down resistor number: 58; the result of an OCD resistance value of 18 ohms is calibrated pull-up resistor number: 95 / calibrated pull-down resistor number: 82.
[0035] However, in a specific architecture where the external input voltage level cannot be changed (e.g., DDR2, DDR3), it is impossible to know the actual situation of the signal in the eye diagram, and when choosing to use the resistance value after ZQ calibration, it is often impossible to know whether the corresponding eye diagram has sufficient eye height because the eye width under the fixed reference voltage VREFDQ can only be known through testing. In other words, the number of calibrated pull-up resistors and the number of calibrated pull-down resistors after calibration can only ensure sufficient eye width. Therefore, it is necessary to further use statistical methods to confirm the best ODT-OCD combination to ensure that the signal has sufficient eye width and eye height.
[0036] The signal quality optimization method proceeds to perform the following steps:
[0037] Step S12: configuring the processing device to perform a waveform test procedure for each of the ODT-OCD resistance combinations to obtain the resistance adjustable ratio corresponding to the ODT-OCD resistance combinations.
[0038] Please refer to Figure 4 , which is a flow chart of the waveform test program of an embodiment of the present invention. As shown in the figure, the waveform test program includes:
[0039] Step S120: Set a predetermined time specification to determine the operation success condition between the first circuit and the second circuit. For example, at a predetermined test frequency (for example, the test frequency is first fixed to 533MHz), configure the memory controller circuit (first circuit 1) to perform a write operation on the memory circuit (second circuit 2), and the operation success condition is a write success condition, and the corresponding predetermined time specification can be set to 13 PIs (time units).
[0040] Step S121: The OCD circuit is adjusted according to the number of calibration resistors corresponding to the target ODT resistance value, and a set of test signals is transmitted between the second circuit and the first circuit. Specifically, the OCD circuit 10 can be adjusted by gradually increasing the number of pull-up resistors and reducing the number of pull-down resistors, or gradually reducing the number of pull-up resistors and increasing the number of pull-down resistors.
[0041] For example, if the ODT resistance is 150 ohms as the target ODT resistance, when the OCD resistance is 35 ohms, the number of calibrated pull-up resistors and the number of calibrated pull-down resistors can be known after the ZQ calibration procedure. To test the available range of the eye diagram pull-up, based on the number of calibrated pull-up resistors when the OCD resistance is 35 ohms, the number of turned-on pull-up resistors RU is increased one by one, and the number of turned-on pull-down resistors RD is reduced one by one. This method is similar to directly reducing the level of the external reference voltage. Figure 5, which is a waveform diagram showing how increasing the number of pull-up resistors that are turned on and reducing the number of pull-down resistors that are turned on affects the signal of the data pin DQ.
[0042] On the contrary, when testing the available range of the eye diagram's pull-down, the number of pull-down resistors RD that are turned on is increased one by one based on the number of calibrated pull-down resistors when the OCD resistance is 35 ohms, while the number of pull-up resistors RU that are turned on is reduced one by one. This method is similar to directly increasing the level of the external reference voltage. Through the above method, the signal quality presented by the eye diagram in the voltage direction (i.e., the two-dimensional direction) can be simulated when the voltage level of the reference voltage changes.
[0043] Step S122: Obtain the signal eye diagram corresponding to the set of test signals.
[0044] Step S123: Determine whether the signal eye diagram meets the operation success condition.
[0045] In this step, it is mainly to determine whether the eye width of the signal eye diagram is greater than the predetermined time specification. If so, return to step S121, if not, enter step S124.
[0046] After repeated adjustment and testing, when it is determined that the signal eye diagram does not meet the operation success condition, step S124 is entered: the maximum adjustable resistor quantity before the operation success condition cannot be met is obtained. The maximum adjustable resistor quantity includes the maximum upward adjustment resistor quantity and the maximum downward adjustment resistor quantity, the maximum upward adjustment resistor quantity includes an upward adjustment pull-up resistor adjustment number and an upward adjustment pull-down resistor adjustment number, and the maximum downward adjustment resistor quantity includes a downward adjustment pull-up resistor adjustment number and a downward adjustment pull-down resistor adjustment number.
[0047] For example, when the number of pull-up resistors increases by 6 and the number of pull-down resistors decreases by 6, the eye width presented by the eye diagram is greater than 13 PIs, and the eye width can still meet the predetermined time specification. However, when the number of pull-up resistors increases by 7 and the number of pull-down resistors decreases by 7, the eye width is less than 13 PIs and cannot meet the predetermined time specification. Therefore, the increase of 6 in the number of pull-up resistors and the decrease of 6 in the number of pull-down resistors before the predetermined time specification cannot be met are respectively regarded as the increase in the pull-up resistor adjustment number and the increase in the pull-down resistor adjustment number included in the maximum increase in the number of resistors. Based on a similar approach, by adjusting downward based on the calibration number of pull-down resistors, it can be obtained that the number of pull-up resistors decreases by 2 and the number of pull-down resistors increases by 2, respectively, as the decrease in the pull-up resistor adjustment number and the decrease in the pull-down resistor adjustment number included in the maximum decrease in the number of resistors before the predetermined time specification cannot be met.
[0048] Step S125: obtaining the adjustable resistance ratio corresponding to the target ODT resistance value.
[0049] For example, this step calculates an average resistance adjustable ratio according to the maximum adjustable resistance quantity, the calibration pull-up resistance quantity, and the calibration pull-down resistance quantity to serve as the resistance adjustable ratio.
[0050] Please refer to Figure 6 , which is a detailed flow chart of step S125 of an embodiment of the present invention. Figure 6 As shown, step S125 may include the following steps:
[0051] Step S1250: Divide the pull-up resistor adjustment number by the number of calibrated pull-up resistors to calculate the first waveform up-adjustment available percentage.
[0052] Step S1251: Divide the pull-down resistor adjustment number by the number of calibrated pull-down resistors to calculate the second waveform up-adjustment available percentage. For example, when the OCD resistance is 50 ohms, the pull-up resistor adjustment number is 6, and the pull-down resistor adjustment number is 6, so the first waveform up-adjustment available percentage is 6 / 32=18.8%, and the second waveform up-adjustment available percentage is 6 / 28=21.4%.
[0053] Step S1252: Divide the pull-up resistor adjustment number by the number of calibrated pull-up resistors to calculate the first waveform down-adjustment available percentage.
[0054] Step S1253: Divide the pull-down resistor adjustment number by the number of calibrated pull-down resistors to calculate the second waveform down adjustment available percentage. For example, when the OCD resistance is 50 ohms, the pull-up resistor adjustment number is 2, and the pull-down resistor adjustment number is 2, so the first waveform down adjustment available percentage is 2 / 32=6.3%, and the second waveform down adjustment available percentage is 2 / 28=7.1%.
[0055] Step S1254: Add the first waveform up-adjustment available percentage to the first waveform down-adjustment available percentage to obtain the first up-adjustable percentage. For example, if the first waveform up-adjustment available percentage is 18.8% and the first waveform down-adjustment available percentage is 6.3%, the first up-adjustable percentage is 18.8%+6.3%=25.1%.
[0056] Step S1255: Add the second waveform up-adjustment available percentage to the second waveform down-adjustment available percentage to obtain the second up-adjustable percentage. For example, the second waveform up-adjustment available percentage is 21.4%, the second waveform down-adjustment available percentage is 7.1%, and the second up-adjustable percentage is 21.4%+7.1%=28.5%.
[0057] Step S1256: average the first adjustable percentage and the second adjustable percentage to obtain an average adjustable resistance ratio. Therefore, the average adjustable resistance ratio is equal to (25.1+28.5) / 2=26.8%.
[0058] Therefore, for the aforementioned 16 ODT-OCD resistance combinations, the average resistance adjustable ratio corresponding to each ODT-OCD resistance combination can be calculated, as shown in Table 1 below.
[0059] Table 1:
[0060]
[0061] As shown in Table 1 above, although under the same OCD resistance, the smaller the ODT resistance, the larger the calculated percentage, however, in the embodiment of the present invention, in order to verify the actual adjustable range of different reference voltages, the circuit is further modified to obtain experimental results corresponding to different reference voltages, as shown in Table 2 below:
[0062] Table 2
[0063]
[0064] As shown in Table 2, the eye height when the ODT resistance is 50 ohms is not actually better than other ODT resistances (150, 100, 75). Different ODT resistances will affect the amplitude of the waveform and the adjustable range of the signal. Therefore, it is necessary to further consider different ODT resistances to evaluate the best ODT-OCD resistance combination.
[0065] Therefore, the signal quality optimization method of the present invention enters step S14: configuring the processing device to extract the OCD resistance with the highest resistance adjustable ratio for the different ODT resistances to obtain a plurality of optimal ODT-OCD resistance combinations.
[0066] In step S14 , four combinations of OCD resistance of 25 ohms and ODT resistance of 50 / 75 / 100 / 150 ohms are selected as the preferred ODT-OCD resistance combinations.
[0067] Step S16: The configuration processing device configures the ODT circuit and the OCD circuit according to the preferred ODT-OCD resistance combination, and performs multiple operation test procedures on the first circuit and the second circuit to obtain an optimized ODT-OCD resistance combination according to the test results of the operation test procedures.
[0068] In this step, the method of testing various OCD-ODT resistance combinations is based on the number of calibration resistors, and the reading and writing can be successful without increasing or decreasing the number of conductive resistors in any OCD circuit 10 and without changing the reference voltage level. The test results are shown in Table 3 below:
[0069] Table 3
[0070]
[0071] As shown in Table 3, the combination of OCD resistance 25 ohms and ODT resistance 150 ohms with the maximum time unit when reading and writing are successful can be taken out. This result can be verified by referring to Table 2 by actually changing the eye height result of the reference voltage, which proves that the signal quality optimization method and signal quality optimization system provided by the present invention can screen out a group of OCD-ODT resistance combinations that can ensure that the signal eye diagram has an appropriate eye height.
[0072] [Beneficial Effects of Embodiments]
[0073] One of the beneficial effects of the present invention is that the signal quality optimization method and signal quality optimization system provided by the present invention can count the maximum and minimum values of the pull-up resistor (or pull-down resistor) that can meet the self-defined time specification by adjusting the number of OCD resistors, and calculate the available range of each OCD resistance value, thereby automatically finding the best set of OCD-ODT resistance combinations, under which the corresponding eye diagram can be guaranteed to present a certain signal quality.
[0074] The contents disclosed above are only preferred feasible embodiments of the present invention, and are not intended to limit the scope of the present invention. Therefore, all equivalent technical changes made using the contents of the present invention's specification and drawings are included in the scope of the present invention.
[0075]
Explanation of symbols
[0076] Signal quality optimization system: 100
[0077] First Circuit: 1
[0078] OCD circuit: 10
[0079] Supply voltage: VDD
[0080] Pull-up resistor circuit: 102
[0081] Pull-up resistor: RU
[0082] First control switch: SW1
[0083] Pull-down resistor circuit: 104
[0084] Pull-down resistor: RD
[0085] Second control switch: SW2
[0086] Ground terminal: GND
[0087] Control circuit: 106
[0088] Second Circuit: 2
[0089] ODT circuit: 20
[0090] Reference resistors: Rt1, Rt2
[0091] ZQ calibration circuit: 3
[0092] ZQ pin: Pzq
[0093] Reference resistance: Rref
[0094] Processing devices: 4
[0095] Input and output terminal: IO
[0096] Data pin: DQ
Claims
1. A signal quality optimization method, applicable to a first circuit and a second circuit electrically connected to each other, the signal quality optimization method comprising: Performing a ZQ calibration procedure on the OCD circuit of the first circuit and an ODT circuit of the second circuit through a ZQ calibration circuit to obtain a plurality of calibration resistor quantities corresponding to a plurality of OCD resistance values and a plurality of corrected ODT resistance values, wherein a plurality of ODT-OCD resistance value combinations define a corresponding relationship between the ODT resistance values and the OCD resistance values; A processing device is configured to perform a waveform test procedure for each of the ODT-OCD resistance combinations, including: Setting a predetermined time specification to determine an operation success condition between the first circuit and the second circuit; and The OCD circuit is adjusted according to the number of calibration resistors corresponding to a target ODT resistance value, and a set of test signals is transmitted between the second circuit and the first circuit, and a signal eye diagram corresponding to the set of test signals is obtained. After repeated adjustment and testing, an adjustable resistance ratio corresponding to the target ODT resistance value is obtained; configuring the processing device to extract the OCD resistance value having the highest adjustable resistance ratio for the different ODT resistance values, so as to obtain a plurality of preferred ODT-OCD resistance value combinations; and The processing device is configured to configure the ODT circuit and the OCD circuit according to the preferred ODT-OCD resistance combinations, and multiple operation test procedures are performed on the first circuit and the second circuit to obtain an optimized ODT-OCD resistance combination according to the test results of the operation test procedures.
2. The signal quality optimization method according to claim 1, wherein: The calibration resistor quantities each include a calibration pull-up resistor quantity and a calibration pull-down resistor quantity, and the OCD circuit is adjusted according to the calibration resistor quantity corresponding to the target ODT resistance value, and the set of test signals is transmitted between the second circuit and the first circuit, and the steps of obtaining the signal eye diagram corresponding to the set of test signals include: Based on the calibration pull-up resistor quantity and the calibration pull-down resistor quantity, the pull-up resistor quantity and the pull-down resistor quantity of the OCD circuit are adjusted, and the group of test signals are transmitted at the same time to obtain the signal eye diagram corresponding to the group of test signals.
3. The signal quality optimization method according to claim 2, wherein: The step of obtaining the adjustable ratio of the resistor corresponding to the target ODT resistance value comprises: After obtaining the signal eye diagram, determining whether the signal eye diagram satisfies the operation success condition, and obtaining a maximum adjustable resistance quantity that satisfies the operation success condition; An average adjustable resistance ratio is calculated according to the maximum adjustable resistance quantity, the calibration pull-up resistance quantity, and the calibration pull-down resistance quantity as the adjustable resistance ratio.
4. The signal quality optimization method according to claim 3, wherein: The step of adjusting the number of the pull-up resistors and the number of the pull-down resistors of the OCD circuit includes: gradually increasing the number of the pull-up resistors and reducing the number of the pull-down resistors; and Gradually reduce the number of pull-up resistors and increase the number of pull-down resistors at the same time.
5. The signal quality optimization method according to claim 3, wherein: The steps of determining whether the signal eye diagram satisfies the operation success condition and obtaining the maximum adjustable resistance quantity that satisfies the operation success condition include: It is determined whether the eye width of the signal eye diagram is greater than the predetermined time specification, and after repeated adjustment and testing, a maximum upward adjustment resistance quantity and a maximum downward adjustment resistance quantity are obtained before the operation success condition cannot be met.
6. The signal quality optimization method according to claim 5, wherein: The maximum number of upward-adjustable resistors includes an upward-adjustable pull-up resistor adjustment number and an upward-adjustable pull-down resistor adjustment number, the maximum number of downward-adjustable resistors includes a downward-adjustable pull-up resistor adjustment number and a downward-adjustable pull-down resistor adjustment number, and the step of calculating the average resistance adjustable ratio according to the maximum number of adjustable resistors, the number of calibrated pull-up resistors, and the number of calibrated pull-down resistors includes: Dividing the pull-up resistor adjustment number by the number of calibrated pull-up resistors to calculate a first waveform up-adjustment available percentage; Dividing the pull-down resistor adjustment value by the number of calibrated pull-down resistors to calculate a second waveform up-adjustment available percentage; Dividing the pull-up resistor adjustment number by the number of calibrated pull-up resistors to calculate a first waveform down-adjustment available percentage; Dividing the pull-down resistor adjustment number by the number of calibrated pull-down resistors to calculate a second waveform down-adjustment available percentage; Adding the first waveform up-adjustable percentage to the first waveform down-adjustable percentage to obtain a first up-and-down-adjustable percentage; Adding the second waveform up-adjustable percentage to the second waveform down-adjustable percentage to obtain a second up-and-down-adjustable percentage; and The first adjustable percentage and the second adjustable percentage are averaged to obtain the average resistance adjustable ratio.
7. The signal quality optimization method according to claim 1, wherein: The first circuit is a memory controller circuit, the second circuit is a memory circuit, the operation success condition is a read operation success condition or a write operation success condition, and the operation test program is a read operation test or a write operation test.
8. The signal quality optimization method according to claim 7, wherein: In the step of transmitting the set of test signals between the second circuit and the first circuit to obtain the signal eye diagram corresponding to the set of test signals, a write operation is performed on the second circuit by configuring the first circuit at a predetermined test frequency.
9. The signal quality optimization method according to claim 1, wherein: The OCD circuit includes: A pull-up resistor circuit includes a plurality of pull-up resistors and a plurality of first control switches, wherein each of the pull-up resistors and the corresponding first control switch are connected in series between a power supply voltage and an input / output terminal; A pull-down resistor circuit includes a plurality of pull-down resistors and a plurality of second control switches respectively corresponding to the pull-down resistors, wherein each of the pull-down resistors and the corresponding second control switch are connected in series between the input-output terminal and a ground terminal; and A control circuit is configured to control the first control switches and the second control switches to adjust the number of the pull-up resistors and the number of the pull-down resistors.
10. A signal quality optimization system, comprising: a first circuit including an OCD circuit; a second circuit comprising an ODT circuit; a ZQ calibration circuit electrically connected to the OCD circuit and the ODT circuit, and configured to perform a ZQ calibration procedure on the OCD circuit and the ODT circuit to obtain a plurality of calibration resistor quantities corresponding to a plurality of OCD resistance values and a plurality of corrected ODT resistance values, wherein a plurality of ODT-OCD resistance value combinations define a corresponding relationship between the ODT resistance values and the OCD resistance values; and A processing device is configured to perform a waveform test procedure for each of the ODT-OCD resistance value combinations, including: Setting a predetermined time specification to determine an operation success condition between the first circuit and the second circuit; and The OCD circuit is adjusted according to the number of calibration resistors corresponding to a target ODT resistance value, and a set of test signals is transmitted between the second circuit and the first circuit, and a signal eye diagram corresponding to the set of test signals is obtained. After repeated adjustment and testing, an adjustable resistance ratio corresponding to the target ODT resistance value is obtained; Wherein, the processing device is further configured to: For different ODT resistance values, the OCD resistance value having the highest adjustable resistance ratio is selected to obtain a plurality of optimal ODT-OCD resistance value combinations; and The processing device is configured to configure the ODT circuit and the OCD circuit according to the preferred ODT-OCD resistance combinations, and multiple operation test procedures are performed on the first circuit and the second circuit to obtain an optimized ODT-OCD resistance combination according to the test results of the operation test procedures.
