Impedance adjusting method based on hybrid control and resistance network

By combining a hybrid control method of binary code resistor array and thermometer code resistor array, the intermediate transition state and complexity problems of impedance adjustment schemes in the prior art are solved, and accurate impedance matching and signal integrity improvement are achieved in high-speed interface applications.

CN121585157AActive Publication Date: 2026-02-27XIN YAOHUI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202511781469.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-29
Publication Date
2026-02-27
Estimated Expiration
2045-11-29

AI Technical Summary

Technical Problem

In the prior art, impedance adjustment schemes for terminating resistors have intermediate transition state problems or require too many control bits, which increases complexity and makes it difficult to achieve accurate impedance matching in high-speed interface applications.

Method used

An impedance adjustment method based on hybrid control is adopted, which combines binary code resistor array and thermometer code resistor array. Through the optimized hybrid control code generation method, the combination of first thermometer code control code and third binary code control code is used to achieve coarse and fine impedance adjustment, avoid intermediate transition states and reduce the complexity of bit control bits.

Benefits of technology

It achieves precise impedance regulation in high-speed interface applications, effectively overcomes intermediate transition state problems, and reduces the complexity of bit control bits while maintaining the same precision, thus improving signal integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121585157A_ABST
    Figure CN121585157A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of integrated circuits and provides an impedance adjusting method based on hybrid control and a resistance network. The method comprises: connecting a target resistor between a ground terminal and the second terminal such that the target resistor and the resistor network are connected in series between the first terminal and the ground terminal; closing all binary code switches of the binary code resistor array, and then gradually changing the thermometer code control code according to a first preset step length; maintaining the first thermometer code control code, and then gradually changing the binary code control code according to a second preset step length; and determining a hybrid control code of the resistance network corresponding to the resistance value of the target resistor. Therefore, not only is the problem of an intermediate transition state effectively solved, but also the complexity caused by excessive bit control bits is reduced as much as possible under the condition that the same precision is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of integrated circuits, and particularly relates to an impedance adjustment method based on hybrid control and a resistance network. BACKGROUND

[0002] In high-speed interface applications, reflections are absorbed by termination resistors to improve signal integrity. For example, Double Data Rate Synchronous Dynamic Random Access Memory (DDR SRAM), sometimes referred to as DDR, absorbs reflections by on-chip termination resistors, and the target resistance value of the on-chip termination resistors is generally set to 50 ohms or other resistance values. Because resistors with precise resistance values are difficult to produce, digital calibration methods are generally used to meet the precision requirements. Impedance adjustment schemes for termination resistors in the prior art are generally divided into two ways: thermometer code adjustment and binary code adjustment. However, in the case of achieving the same precision, the thermometer code adjustment has the disadvantage of requiring more bit control bits and relatively complex control logic, but the thermometer code switching process has no intermediate transition state, which can reduce the influence of bit skew between the bit control bits. The disadvantage of the binary code adjustment is that the switching process has an intermediate transition state, the influence of bit skew between the bit control bits is greater, but the number of bit control bits required is relatively small.

[0003] Therefore, the present application provides an impedance adjustment method based on hybrid control and a resistance network, which not only effectively overcomes the problem of intermediate transition state, but also reduces the complexity caused by excessive bit control bits as much as possible under the condition of achieving the same precision. SUMMARY

[0004] In a first aspect, the application provides a hybrid control-based impedance adjustment method. The impedance adjustment method is applied to a resistance network including a binary code resistance array and a thermometer code resistance array, the resistance network being connected between a first end and a second end and being used to provide an adjustable resistance value between the first end and the second end. The impedance adjustment method includes: connecting a target resistance between a ground end and the second end, so that the target resistance is connected in series with the resistance network between the first end and the ground end; closing all binary code switches of the binary code resistance array, and then gradually changing a thermometer code control code for controlling thermometer code switches of the thermometer code resistance array in a first preset step, until a resistance value of the resistance network under a first thermometer code control code is less than a resistance value of the target resistance, and a resistance value of the resistance network under a second thermometer code control code is greater than the resistance value of the target resistance, wherein the second thermometer code control code is obtained by changing the first thermometer code control code in the first preset step; keeping the thermometer code switches of the thermometer code resistance array under control of the first thermometer code control code, and then gradually changing a binary code control code for controlling binary code switches of the binary code resistance array in a second preset step, until a resistance value of the resistance network under a first binary code control code is less than the resistance value of the target resistance, and a resistance value of the resistance network under a second binary code control code is greater than the resistance value of the target resistance, wherein the second binary code control code is obtained by changing the first binary code control code in the second preset step; and determining a jump point of the resistance value of the resistance network relative to the resistance value of the target resistance based on the first binary code control code and the second binary code control code, so as to determine a third binary code control code corresponding to the jump point, and then using a combination of the first thermometer code control code and the third binary code control code as a hybrid control code of the resistance network corresponding to the resistance value of the target resistance.

[0005] By the first aspect of the application, by optimizing the generation mode of the hybrid control code after design, using the combination of the first thermometer code control code and the third binary code control code as the hybrid control code of the resistance network corresponding to the resistance value of the target resistance, the impedance adjustment scheme of two levels of coarse adjustment and fine adjustment can be established by the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array and the binary code control code for controlling the binary code switches of the binary code resistance array, so as to realize the specific distribution of current or voltage by the resistance network, and then realize the impedance adjustment meeting the accuracy requirement, which not only effectively overcomes the problem of intermediate transition state, but also reduces the complexity caused by excessive bit control bits as much as possible in realizing the same accuracy.

[0006] In a possible implementation of the first aspect of the application, all resistors of the binary code resistor array are connected in parallel between the first end and the second end through respective corresponding binary code switches, and all resistors of the thermometer code resistor array are connected in parallel between the first end and the second end through respective corresponding thermometer code switches.

[0007] In a possible implementation of the first aspect of the application, all resistors of the thermometer code resistor array each have the same resistance value, and all resistors of the binary code resistor array each have consistent or inconsistent resistance values.

[0008] In a possible implementation of the first aspect of the application, when all binary code switches of the binary code resistor array are closed, the equivalent resistance value of all resistors of the binary code resistor array is less than the same resistance value that all resistors of the thermometer code resistor array each have.

[0009] In a possible implementation of the first aspect of the application, the lowest adjustment precision in the adjustment precision of the binary code control code for controlling the binary code switches of the binary code resistor array is not lower than the highest adjustment precision in the adjustment precision of the thermometer code control code for controlling the thermometer code switches of the thermometer code resistor array.

[0010] In a possible implementation of the first aspect of the application, the resistance values of all resistors of the binary code resistor array each are in a geometric progression from the lowest bit to the highest bit from the maximum resistance value to the minimum resistance value, and the resistance values of all resistors of the thermometer code resistor array each are equal to the minimum resistance value in the resistance values of all resistors of the binary code resistor array.

[0011] In a possible implementation of the first aspect of the application, the adjustment precision of the binary code control code for controlling the binary code switches of the binary code resistor array from the lowest bit to the highest bit is from the highest adjustment precision to the lowest adjustment precision, and the adjustment precision of the thermometer code control code for controlling the thermometer code switches of the thermometer code resistor array from the lowest bit to the highest bit is equal to the lowest adjustment precision in the adjustment precision of the binary code control code for controlling the binary code switches of the binary code resistor array from the lowest bit to the highest bit.

[0012] In a possible implementation of the first aspect of the application, the geometric progression is with the resistance value of the target resistor divided by two as the first term and with one-half as the common ratio.

[0013] In a possible implementation manner of the first aspect of the present application, all binary code switches of the binary code resistance array are controlled by the third binary code control code to turn off the binary code switches of the lowest bit or the lowest multiple bits relative to the control of the first binary code control code or the second binary code control code.

[0014] In a possible implementation manner of the first aspect of the present application, the resistance network comprises a field effect tube equivalent resistance.

[0015] In a possible implementation manner of the first aspect of the present application, the resistance network is configured to provide calibration of a terminal resistance under the control of the hybrid control code, and the resistance value of the target resistance is determined based on an expected resistance value of the terminal resistance, and the terminal resistance is configured to eliminate signal reflection.

[0016] In a possible implementation manner of the first aspect of the present application, when the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array is switched, the resistance network does not generate an intermediate transition state.

[0017] In a possible implementation manner of the first aspect of the present application, the resistance value of the target resistance is determined by monitoring the voltage on the target resistance, and the impedance adjustment method is performed by a comparator and a finite state machine.

[0018] In a possible implementation manner of the first aspect of the present application, the first preset step size is the minimum step size of the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array, and the second preset step size is the minimum step size of the binary code control code for controlling the binary code switches of the binary code resistance array.

[0019] In a second aspect, the application provides a resistance network based on hybrid control. The resistance network comprises: a binary code resistance array, wherein all resistances of the binary code resistance array are connected in parallel between a first end and a second end through respective corresponding binary code switches; and a thermometer code resistance array, wherein all resistances of the thermometer code resistance array are connected in parallel between the first end and the second end through respective corresponding thermometer code switches. The resistance network is connected between the first end and the second end and is used to provide an adjustable resistance value between the first end and the second end. The impedance adjustment method of the resistance network comprises: connecting a target resistance between a ground end and the second end, so that the target resistance is connected in series between the first end and the ground end with the resistance network; closing all binary code switches of the binary code resistance array, and then gradually changing a thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array in a first preset step, until a resistance value of the resistance network under a first thermometer code control code is less than a resistance value of the target resistance, and a resistance value of the resistance network under a second thermometer code control code is greater than the resistance value of the target resistance, wherein the second thermometer code control code is obtained by changing the first thermometer code control code in the first preset step; keeping the thermometer code switches of the thermometer code resistance array under control of the first thermometer code control code, and then gradually changing a binary code control code for controlling the binary code switches of the binary code resistance array in a second preset step, until a resistance value of the resistance network under a first binary code control code is less than a resistance value of the target resistance, and a resistance value of the resistance network under a second binary code control code is greater than the resistance value of the target resistance, wherein the second binary code control code is obtained by changing the first binary code control code in the second preset step; and determining a jump point of a resistance value of the resistance network relative to the resistance value of the target resistance based on the first binary code control code and the second binary code control code, so as to determine a third binary code control code corresponding to the jump point, and then using a combination of the first thermometer code control code and the third binary code control code as a hybrid control code of the resistance network corresponding to the resistance value of the target resistance.

[0020] By the second aspect of the present application, by optimizing the generation mode of the mixed control code, the combination of the first thermometer code control code and the third binary code control code is used as the mixed control code of the resistance network corresponding to the resistance value of the target resistance. In this way, the coarse adjustment and fine adjustment two-level impedance adjustment scheme can be established by the thermometer code control code for controlling the thermometer code switch of the thermometer code resistance array and the binary code control code for controlling the binary code switch of the binary code resistance array, so as to realize the specific distribution of current or voltage through the resistance network, and then realize the impedance adjustment meeting the accuracy requirement. Not only the problem of intermediate transition state is effectively overcome, but also the complexity caused by too many bit control bits is reduced as much as possible under the realization of the same accuracy. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0022] Figure 1 A flowchart of an impedance adjustment method based on hybrid control provided by an embodiment of the present application; Figure 2 A schematic diagram of a resistance network of a first implementation provided by an embodiment of the present application; Figure 3 A schematic diagram of a resistance network of a second implementation provided by an embodiment of the present application. DETAILED DESCRIPTION

[0023] The embodiments of the present application will be further described in detail below with reference to the drawings.

[0024] It should be understood that in the description of the present application, "at least one" means one or more, and "multiple" means two or more. In addition, the words "first", "second", etc. are used only for the purpose of distinguishing the description, unless otherwise specified, and cannot be understood as indicating or implying relative importance, nor can it be understood as indicating or implying order.

[0025] Figure 1 A flowchart of an impedance adjustment method based on hybrid control provided by an embodiment of the present application. The impedance adjustment method is applied to a resistance network, the resistance network includes a binary code resistance array and a thermometer code resistance array, the resistance network is connected between a first end and a second end and is used to provide an adjustable resistance value between the first end and the second end. As shown in Figure 1 The impedance adjustment method includes the following steps.

[0026] Step S101: connecting a target resistance between a ground terminal and the second terminal, so that the target resistance is connected in series with the resistance network between the first terminal and the ground terminal.

[0027] Step S103: closing all binary code switches of the binary code resistance array, and then changing a thermometer code control code for controlling thermometer code switches of the thermometer code resistance array step by step in a first preset step size, until a resistance value of the resistance network under a first thermometer code control code is less than a resistance value of the target resistance, and a resistance value of the resistance network under a second thermometer code control code is greater than the resistance value of the target resistance, wherein the second thermometer code control code is obtained by changing the first thermometer code control code in the first preset step size.

[0028] Step S105: keeping the thermometer code switches of the thermometer code resistance array under control of the first thermometer code control code, and then changing a binary code control code for controlling binary code switches of the binary code resistance array step by step in a second preset step size, until a resistance value of the resistance network under a first binary code control code is less than a resistance value of the target resistance, and a resistance value of the resistance network under a second binary code control code is greater than the resistance value of the target resistance, wherein the second binary code control code is obtained by changing the first binary code control code in the second preset step size.

[0029] Step S107: determining a jump point of the resistance value of the resistance network relative to the resistance value of the target resistance based on the first binary code control code and the second binary code control code, so as to determine a third binary code control code corresponding to the jump point, and then using a combination of the first thermometer code control code and the third binary code control code as a hybrid control code of the resistance network corresponding to the resistance value of the target resistance.

[0030] Referring to Figure 1, the resistance network includes a binary code resistance array and a thermometer code resistance array, so as to have the advantages of both binary code and thermometer code. The thermometer code is a numerical representation method in which the number of 1s is used to represent the increase of true value. Because of its representation method, the thermometer code has anti-interference ability, so that converting the binary code into the thermometer code can effectively avoid noise interference caused by switching of voltage or current output while increasing the circuit size. In terms of impedance adjustment of a termination resistor, in order to achieve an accurate resistance value such as 50 ohms, digital calibration is required to achieve the resistance value with the required accuracy. Using the thermometer code adjustment, there is no intermediate transition state, but more bit control is required, and the circuit size is large. Using binary code adjustment, there is an intermediate transition state, so it is easy to be affected by noise interference caused by switching of voltage or current output, and the impedance value may be deviated due to skew between different bit positions. Therefore, Figure 1 The hybrid control-based impedance adjustment method shown in the figure is suitable for a resistance network including a binary code resistance array and a thermometer code resistance array. By optimizing the generation method of the hybrid control code, the combination of the first thermometer code control code and the third binary code control code is used as the hybrid control code of the resistance network corresponding to the resistance value of the target resistance. In this way, the thermometer code control code for controlling the thermometer code switch of the thermometer code resistance array and the binary code control code for controlling the binary code switch of the binary code resistance array can be used to establish a two-level impedance adjustment scheme of coarse adjustment and fine adjustment, so as to realize a specific distribution of current or voltage through the resistance network, and then realize impedance adjustment meeting the accuracy requirement. Not only the problem of intermediate transition state is effectively overcome, but also the complexity caused by excessive bit control is reduced as much as possible under the same accuracy.

[0031] Referring back to Figure 1In step S101, a target resistor is connected between the ground terminal and the second terminal, so that the target resistor is connected in series with the resistance network between the first terminal and the ground terminal. The target resistor can provide a reference resistance value for calibrating the resistance network to support the generation of a hybrid control code, so that impedance adjustment can be made based on the hybrid control to provide a resistance value with the required accuracy. The target resistor can be implemented as a field effect transistor or any other suitable means as long as it can provide a reference resistance value for calibrating the resistance network. Here, the equivalent resistance of the resistance network to the outside is connected between the first terminal and the second terminal, and the equivalent resistance has an adjustable resistance value between the first terminal and the second terminal. Therefore, by connecting the target resistor in series with the resistance network between the first terminal and the ground terminal, the subsequent adjustment process can be completed by monitoring the voltage on the target resistor, and then using a comparator and a finite state machine. Here, the first terminal and the second terminal refer to the two terminals to which the equivalent resistance of the resistance network is connected. As mentioned above, in high-speed interface applications such as DDR, reflected signals are absorbed by on-die termination resistors to provide impedance matching to improve signal integrity. Therefore, the first terminal and the second terminal can refer to the two nodes to which the termination resistor is connected. For example, the first terminal and the second terminal can refer to the beginning and end of a bus. For another example, the first terminal can be VP used in the application of on-die termination (ODT), and the second terminal can be PAD used in the application of ODT.

[0032] With reference to the drawings again Figure 1At step S103, all binary code switches of the binary code resistor array are closed, and then the temperature code control code for controlling the temperature code switches of the temperature code resistor array is changed step by step according to a first preset step size until the resistance value of the resistor network under a first temperature code control code is less than the resistance value of the target resistor, and the resistance value of the resistor network under a second temperature code control code is greater than the resistance value of the target resistor, wherein the second temperature code control code is obtained by changing the first temperature code control code according to the first preset step size. Here, all binary code switches are first closed, and then the temperature code switches are adjusted so that the resistance value of the resistor network is gradually increased from being less than the resistance value of the target resistor to being greater than the resistance value of the target resistor. In this way, the first temperature code control code can be recorded. The first temperature code control code means that the resistance value of the resistor network is only slightly less than the resistance value of the target resistor, because the resistance value of the resistor network under the second temperature code control code obtained by changing the first temperature code control code according to the first preset step size is greater than the resistance value of the target resistor. Therefore, the first temperature code control code represents the jump point at which the resistance value of the resistor network changes from being less than the resistance value of the target resistor to being greater than the resistance value of the target resistor when all binary code switches of the binary code resistor array are closed, thereby achieving macro-level impedance adjustment based on the temperature code control code. In general, because the temperature code adjustment mode requires more bit control positions than the binary code adjustment mode, in order to reduce the complexity that may be caused by too many bit control positions as much as possible, the temperature code adjustment mode is selected here to complete the macro-level impedance adjustment, i.e., coarse adjustment. At the same time, in order to combine with micro-level impedance adjustment based on the binary code control code, all binary code switches are first closed here so that all resistors of the binary code resistor array have been incorporated into the resistor network, thereby facilitating subsequent micro-level impedance adjustment, i.e., fine adjustment, by using the binary code adjustment mode. The resistance value of the resistor network under the first temperature code control code being less than the resistance value of the target resistor and the resistance value of the resistor network under the second temperature code control code being greater than the resistance value of the target resistor can be determined by monitoring the voltage on the target resistor. Because all binary code switches of the binary code resistor array are closed, all resistors of the binary code resistor array are incorporated into the calculation of the external equivalent resistance of the resistor network. The temperature code control code for controlling the temperature code switches of the temperature code resistor array determines which resistors in the temperature code resistor array are incorporated into the resistor network and which resistors are not incorporated. Under the control of the current temperature code control code, some temperature code switches are closed so that the corresponding resistors in the temperature code resistor array are incorporated into the resistor network, and some temperature code switches are open so that the corresponding resistors in the temperature code resistor array are not incorporated into the resistor network.In some embodiments, the bit control of the thermometer code control code is set to be 1 or high level, and the corresponding thermometer code switch is closed, so that the resistance in the corresponding thermometer code resistance array is incorporated into the resistance network. In contrast, when the bit control of the thermometer code control code is set to be 0 or low level, the corresponding thermometer code switch is opened, so that the resistance in the corresponding thermometer code resistance array is not incorporated into the resistance network. In other embodiments, the bit control of the thermometer code control code is set to be 0 or low level, and the corresponding thermometer code switch is closed, so that the resistance in the corresponding thermometer code resistance array is incorporated into the resistance network. In contrast, when the bit control of the thermometer code control code is set to be 1 or high level, the corresponding thermometer code switch is opened, so that the resistance in the corresponding thermometer code resistance array is not incorporated into the resistance network. Thus, the relationship between the high and low levels of the bit control of the thermometer code control code and the opening and closing of the thermometer code switch can be flexibly set according to the specific circuit design requirements. Here, the first preset step size is the granularity for changing the thermometer code control code, which can be the minimum step size of the thermometer code control code or an integer multiple of the minimum step size. The thermometer code control code is changed step by step according to the first preset step size, which can be in the increasing direction or in the decreasing direction, or in other increasing and decreasing schemes such as starting from the minimum and maximum values of the thermometer code control code and approaching the middle. Any suitable method can be used to find the jump point based on the first preset step size, that is, to determine the jump point at which the resistance value of the resistance network changes from less than the target resistance to greater than the target resistance when all the binary code switches of the binary code resistance array are closed. By changing the thermometer code control code step by step according to the first preset step size, the resistance value of the resistance network can be determined by monitoring the voltage on the target resistance during the change, so that it can be determined that the resistance value of the resistance network under the first thermometer code control code is less than the resistance value of the target resistance, and the resistance value of the resistance network under the second thermometer code control code is greater than the resistance value of the target resistance, and the second thermometer code control code is obtained by changing the first thermometer code control code according to the first preset step size. In other words, the second thermometer code control code is obtained by increasing or decreasing the first thermometer code control code according to the first preset step size. As mentioned above, the relationship between the high and low levels of the bit control of the thermometer code control code and the opening and closing of the thermometer code switch can be flexibly set, so it can be set that the high level corresponds to the opening and the low level corresponds to the closing, or it can be set that the low level corresponds to the opening and the high level corresponds to the closing.By changing the thermometer code control code step by step according to the first preset step, the number of thermometer code switches in the closed state is changed, and the number of resistors in the resistance network incorporated into the resistance array of the thermometer code is changed, so that the resistance value of the resistance network is changed, so that the jump point mentioned above can be determined, that is, the jump point at which the resistance value of the resistance network changes from a resistance value less than the target resistance to a resistance value greater than the target resistance.

[0033] With reference to the foregoing Figure 1In step S105, the thermometer code switches of the thermometer code resistor array are kept under the control of the first thermometer code control code, and then the binary code control code for controlling the binary code switches of the binary code resistor array is changed step by step according to a second preset step size until the resistance value of the resistor network under the first binary code control code is less than the resistance value of the target resistor, and the resistance value of the resistor network under the second binary code control code is greater than the resistance value of the target resistor, wherein the second binary code control code is obtained by changing the first binary code control code according to the second preset step size. As mentioned above, the jump point is determined in step S103, that is, the jump point at which the resistance value of the resistor network changes from less than the resistance value of the target resistor to greater than the resistance value of the target resistor. The resistance value of the resistor network under the first thermometer code control code is less than the resistance value of the target resistor, and the resistance value of the resistor network under the second thermometer code control code is greater than the resistance value of the target resistor, and the second thermometer code control code is obtained by changing the first thermometer code control code according to the first preset step size. Therefore, the first thermometer code control code represents the jump point at which the resistance value of the resistor network changes from less than the resistance value of the target resistor to greater than the resistance value of the target resistor when all the binary code switches of the binary code resistor array are closed, so that macro-level impedance adjustment based on the thermometer code control code is realized. In step S105, the thermometer code switches of the thermometer code resistor array are kept under the control of the first thermometer code control code, and only the binary code switches are adjusted, so that the binary code control code for controlling the binary code switches of the binary code resistor array is changed step by step according to the second preset step size, so as to find the next jump point, that is, the jump point at which the resistance value of the resistor network changes from less than the resistance value of the target resistor to greater than the resistance value of the target resistor when the thermometer code switches of the thermometer code resistor array are kept under the control of the first thermometer code control code. Therefore, the first binary code control code represents the jump point at which the resistance value of the resistor network changes from less than the resistance value of the target resistor to greater than the resistance value of the target resistor when the thermometer code switches of the thermometer code resistor array are kept under the control of the first thermometer code control code, so that micro-level impedance adjustment based on the binary code is realized. Here, keeping the thermometer code switches of the thermometer code resistor array under the control of the first thermometer code control code means keeping the opening and closing states of the thermometer code switches, that is, keeping the resistors of the thermometer code resistor array which are incorporated into the resistor network, and the binary code control code for controlling the binary code switches of the binary code resistor array determines which resistors of the binary code resistor array are incorporated into the resistor network and which resistors are not incorporated. Depending on the specific circuit design needs, the relationship between the high and low levels of the bit control positions of the binary code control code and the opening and closing of the binary code switches can be flexibly set.In some embodiments, the binary code switch corresponding to a bit control bit being 1 or high level is closed, so that the resistance in the corresponding binary code resistance array is incorporated into the resistance network, and the binary code switch corresponding to a bit control bit being 0 or low level is open, so that the resistance in the corresponding binary code resistance array is not incorporated into the resistance network. In other embodiments, the binary code switch corresponding to a bit control bit being 0 or low level is closed, so that the resistance in the corresponding binary code resistance array is incorporated into the resistance network, and the binary code switch corresponding to a bit control bit being 1 or high level is open, so that the resistance in the corresponding binary code resistance array is not incorporated into the resistance network. Here, the second preset step size is the granularity for changing the binary code control code, which can be the minimum step size of the binary code control code or an integer multiple of the minimum step size. The binary code control code for controlling the binary code switches of the binary code resistance array is changed step by step according to the second preset step size, which can be in an increasing direction or in a decreasing direction, or in other increasing and decreasing schemes such as starting from the minimum and maximum values of the thermometer code control code and approaching the middle. Any suitable method based on the second preset step size can be used to find the jump point, that is, to determine the jump point at which the resistance value of the resistance network changes from less than the target resistance to greater than the target resistance while keeping the thermometer code switches of the thermometer code resistance array under the control of the first thermometer code control code. By changing the binary code control code for controlling the binary code switches of the binary code resistance array step by step according to the second preset step size, the resistance value of the resistance network can be determined by monitoring the voltage on the target resistance during the change, so that it can be determined that the resistance value of the resistance network under the first binary code control code is less than the resistance value of the target resistance and the resistance value of the resistance network under the second binary code control code is greater than the resistance value of the target resistance, and the second binary code control code is obtained by changing the first binary code control code according to the second preset step size. In other words, the second binary code control code is obtained by increasing or decreasing the first binary code control code according to the second preset step size. As mentioned above, the relationship between the high and low levels of the bit control bits of the binary code control code and the opening and closing of the binary code switches can be flexibly set, so it can be set that high level corresponds to opening and low level corresponds to closing, or it can be set that low level corresponds to opening and high level corresponds to closing.By changing the binary control code for controlling the binary switches of the binary code resistor array step by step according to the second preset step size, the number of binary switches in the closed state is changed, and the number of resistors in the binary code resistor array that are incorporated into the resistor network and the combination of specific resistors that are incorporated are also changed, thereby changing the resistance value of the resistor network, so that the jump point, that is, the jump point at which the resistance value of the resistor network changes from a resistance value less than the target resistance to a resistance value greater than the target resistance, can be determined.

[0034] With continued reference to Figure 1At step S107, based on the first binary code control code and the second binary code control code, the jump point of the resistance value of the resistance network relative to the resistance value of the target resistance is determined, thereby determining the third binary code control code corresponding to the jump point, and then using the combination of the first thermometer code control code and the third binary code control code as the hybrid control code of the resistance network corresponding to the resistance value of the target resistance. As mentioned above, the first thermometer code control code represents the jump point of the resistance value of the resistance network from less than the resistance value of the target resistance to greater than the resistance value of the target resistance in the case of closing all the binary code switches of the binary code resistance array, thus realizing the macro-level impedance adjustment based on the thermometer code control code. The first binary code control code represents the jump point of the resistance value of the resistance network from less than the resistance value of the target resistance to greater than the resistance value of the target resistance in the case of keeping the thermometer code switches of the thermometer code resistance array under the control of the first thermometer code control code, thus realizing the micro-level impedance adjustment based on the binary code. Therefore, by keeping the thermometer code switches of the thermometer code resistance array under the control of the first thermometer code control code, and then finding the first binary code control code and the second binary code control code, it means that the jump point of the resistance value of the target resistance is first found using the thermometer code control code, and then the jump point of the resistance value of the target resistance is found using the binary code control code under a finer adjustment accuracy. In this way, based on the first binary code control code and the second binary code control code corresponding to the jump point, the appropriate binary code control code can be determined, for example, by opening the binary code switches at the lowest bit or the lowest few bits, the third binary code control code corresponding to the jump point can be determined. Here, considering that the resistance values of the binary code resistance array can be consistent or inconsistent, and in the case of inconsistency, the adjustment accuracy corresponding to each binary code control code from the highest bit to the lowest bit is increasingly higher, which means that the lowest adjustment accuracy corresponds to the highest bit, and the highest adjustment accuracy corresponds to the lowest bit. Therefore, by opening the binary code switches at the lowest bit or the lowest few bits, it means that the highest adjustment accuracy or the most front few adjustment accuracies can be used to further approximate the resistance value of the target resistance, thereby determining the third binary code control code corresponding to the jump point. Finally, the combination of the first thermometer code control code and the third binary code control code is used as the hybrid control code of the resistance network corresponding to the resistance value of the target resistance.Thus, when the resistance value of the equivalent resistance provided by the resistance network is required to be the resistance value of the target resistance, the hybrid control code can be used to control the opening and closing of the binary code switches in the binary code resistance array and the opening and closing of the thermometer code switches in the thermometer code resistance array, so that the resistance value of the adjustable resistance provided by the resistance network between the first end and the second end is the resistance value of the target resistance, thereby achieving impedance adjustment. Moreover, because the macro-level impedance adjustment based on the thermometer code control code is performed first, the characteristic of using the thermometer code to adjust without intermediate transition states is fully utilized, and then the micro-level impedance adjustment based on the binary code is performed, so that the thermometer code control code is used first to find the jump point for approximating the resistance value of the target resistance, and then the binary code control code is used to find the jump point for approximating the resistance value of the target resistance at a finer adjustment accuracy. Finally, based on the first binary code control code and the second binary code control code corresponding to the jump point, a suitable binary code control code can be determined, and then the hybrid control code of the resistance network corresponding to the resistance value of the target resistance is determined. In addition, by using the macro-level impedance adjustment based on the thermometer code control code and the micro-level impedance adjustment based on the binary code, the weight relationship between the highest bits of the thermometer code part and the binary code part is decoupled to some extent. In some embodiments, a design constraint can be provided to set all resistances of the thermometer code resistance array to have the same resistance value, and the same resistance value of all resistances of the thermometer code resistance array is greater than the resistance value of the equivalent resistance of the binary code resistance array after all binary code switches are closed. In this way, by making the equivalent resistance of the parallel connection of all resistances of the binary code resistance array smaller than the resistance value of any resistance of the thermometer code resistance array, it is helpful to highlight that the resistance change degree in coarse adjustment, i.e., the macro-level impedance adjustment based on the thermometer code control code, is higher than the resistance change degree in fine adjustment, i.e., the micro-level impedance adjustment based on the binary code. In some examples, the resistance values of all resistances of the binary code resistance array can be designed to be regulated by a geometric progression, for example, with the resistance value of the target resistance divided by two as the first term and with a common ratio of one-half. Specifically, the resistance values of the binary code resistance array are regulated by a geometric progression, and the minimum value of the geometric progression is equal to the resistance value of the thermometer code resistance array. Because of the parallel relationship, the reciprocal of the resistance is the change amount of the final equivalent resistance. This means that from the highest bit to the lowest bit of the binary code, the adjustment accuracy becomes higher and higher, and the lowest adjustment accuracy is at the highest bit, which is equal to the adjustment accuracy of the thermometer code. The coarse adjustment uses the thermometer code to adjust to ensure that there is no intermediate state, and then the fine adjustment uses the binary code, and the higher the lower bit, the higher the adjustment accuracy.In some examples, the total impedance value is R, and 1 to n binary code switches are provided, which are respectively used to control resistances of 2n of R, 2n of R, and so on, up to 2n of R, so that by using 1 to n binary code switches, n resistances with different resistance values distributed according to a geometric progression can be connected in parallel between the first end (such as VP) and the second end (such as PAD), thereby forming a binary code resistance array. For example, assuming only the binary code switch of 1 is connected, the equivalent resistance value of the binary code resistance array is 2n of R; assuming the binary code switches of 1 and 2 are connected, the equivalent resistance value of the binary code resistance array is the parallel connection result of 2n of R and 2n of R, so that the equivalent resistance value of the binary code resistance array is 6 of R. In this way, by using binary code control codes, 1 to n binary code switches can be controlled, and then the impedance adjustment at the micro level based on the binary code. In addition, 1 to m thermometer code switches are provided, which are respectively used to control resistances of 2n of R, and the resistances are connected in parallel between the first end (such as VP) and the second end (such as PAD), thereby forming a thermometer code resistance array. It can be seen that by setting all resistances of the thermometer code resistance array to have the same resistance value, i.e., 2n of R, it means that the minimum value of the resistance values of all resistances of the binary code resistance array set according to the geometric progression relationship is equal to the same resistance value, i.e., 2n of R, and therefore it means that the equivalent resistance of the parallel connection of all resistances of the binary code resistance array is smaller than the resistance value of any resistance of the thermometer code resistance array. It should be understood that, in addition to the geometric progression relationship, any suitable mathematical relationship can be used to set the respective resistance values of all resistances of the binary code resistance array. Generally, by satisfying the design constraint, i.e., setting all resistances of the thermometer code resistance array to have the same resistance value, and the same resistance value of all resistances of the thermometer code resistance array is greater than the resistance value of the equivalent resistance of the binary code resistance array after all binary code switches are connected, the advantages of the generation mode of the hybrid control code after the optimization design are further embodied, which helps to fully utilize the characteristics of using the thermometer code to adjust without intermediate transition states and using the binary code control code to find the jump point of the resistance value of the approximation target resistance at a more fine adjustment precision.

[0035] In summary, Figure 1The shown hybrid control-based impedance adjustment method uses the combination of the first thermometer code control code and the third binary code control code as the hybrid control code of the resistance network corresponding to the resistance value of the target resistance by optimizing the generation mode of the designed hybrid control code, so that the impedance adjustment scheme of two levels of coarse adjustment and fine adjustment can be established by the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array and the binary code control code for controlling the binary code switches of the binary code resistance array, so as to realize the specific distribution of current or voltage through the resistance network, and then realize the impedance adjustment meeting the accuracy requirement, which not only effectively overcomes the problem of intermediate transition state, but also reduces the complexity caused by excessive bit control bits as much as possible under the realization of the same accuracy.

[0036] Figure 2 The schematic diagram of the resistance network of the first embodiment provided by the embodiment of the present application is shown. As shown in the figure, Figure 2 The resistance network 201 includes a binary code resistance array 203 and a thermometer code resistance array 205. The resistance network 201 is connected between a first end 210 and a second end 212 and is used to provide an adjustable resistance value between the first end 210 and the second end 212. All resistances of the binary code resistance array 203 are connected in parallel between the first end 210 and the second end 212 through the respective corresponding binary code switches, and all resistances of the thermometer code resistance array 205 are connected in parallel between the first end 210 and the second end 212 through the respective corresponding thermometer code switches. Figure 2 It is also shown in the figure that a target resistance 220 is connected between a ground end 214 and the second end 212, so that the target resistance 220 is connected in series with the resistance network 201 between the first end 210 and the ground end 214.

[0037] Reference is made to Figure 2The first end 210 and the second end 212 refer to the two ends of the equivalent resistance of the resistance network 201 to the outside. As mentioned above, in high speed interface applications, such as DDR, a reflected signal is absorbed by an on-die termination resistance to provide impedance matching to improve signal integrity. Therefore, the first end 210 and the second end 212 can refer to the two nodes to which the termination resistance is connected. For example, the first end 210 and the second end 212 can refer to the two ends of a bus. For another example, the first end 210 can be VP used in an on-die termination (ODT) application, and the second end 212 can be PAD used in the ODT application. The target resistance 220 is used to provide a reference resistance value for calibrating the resistance network 201 to support the generation of a hybrid control code, so that impedance adjustment can be made based on the hybrid control to provide a resistance value with the required accuracy. By connecting the target resistance 220 in series with the resistance network 201 between the first end 210 and the ground end 214, subsequent adjustment procedures can be completed by monitoring the voltage on the target resistance 220, and then using a comparator and a finite state machine.

[0038] With continued reference to Figure 2The first thermometer code control code represents a jump point at which the resistance value of the resistance network 201 changes from a resistance value less than the target resistance 220 to a resistance value greater than the target resistance 220 in the case that all the binary code switches of the binary code resistance array 203 are closed. This realizes macro-level impedance adjustment based on the thermometer code control code. The first binary code control code represents a jump point at which the resistance value of the resistance network 201 changes from a resistance value less than the target resistance 220 to a resistance value greater than the target resistance 220 in the case that the thermometer code switches of the thermometer code resistance array 205 are kept under the control of the first thermometer code control code. This realizes micro-level impedance adjustment based on the binary code. Therefore, by keeping the thermometer code switches of the thermometer code resistance array 205 under the control of the first thermometer code control code, and then finding the first binary code control code and the second binary code control code, it means that the jump point at which the resistance value approximates the target resistance 220 is first found using the thermometer code control code, and then the jump point at which the resistance value approximates the target resistance 220 is found using the binary code control code at a finer adjustment precision. In this way, macro-level impedance adjustment based on the thermometer code control code is first performed, which takes full advantage of the characteristic that there is no intermediate transition state when using thermometer code adjustment, and then micro-level impedance adjustment based on the binary code is performed, which first uses the thermometer code control code to find the jump point at which the resistance value approximates the target resistance 220, and then uses the binary code control code to find the jump point at which the resistance value approximates the target resistance 220 at a finer adjustment precision. Finally, the appropriate binary code control code can be determined based on the first binary code control code and the second binary code control code corresponding to the jump point, and then the hybrid control code of the resistance network 201 corresponding to the resistance value of the target resistance 220 is determined.

[0039] In summary, Figure 2 The resistance network 201 shown uses the combination of the first thermometer code control code and the third binary code control code as the hybrid control code of the resistance network corresponding to the resistance value of the target resistance, through the generation mode of the hybrid control code optimized by design. This can establish a two-level impedance adjustment scheme of coarse adjustment and fine adjustment through the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array and the binary code control code for controlling the binary code switches of the binary code resistance array, so as to realize a specific distribution of current or voltage through the resistance network, and then realize impedance adjustment that meets the accuracy requirement. Not only does this effectively overcome the problem of intermediate transition state, but also, in the case of realizing the same accuracy, it reduces the complexity caused by excessive bit control bits as much as possible.

[0040] Referring to Figure 1 and Figure 2In one possible implementation, all resistors of the binary code resistor array are connected in parallel between the first end and the second end through respective corresponding binary code switches, and all resistors of the thermometer code resistor array are connected in parallel between the first end and the second end through respective corresponding thermometer code switches. In this way, using the combination of the first thermometer code control code and the third binary code control code as a mixed control code of the resistor network corresponding to the resistance value of the target resistor, a coarse and fine impedance adjustment scheme can be established through the thermometer code control code for controlling the thermometer code switches of the thermometer code resistor array and the binary code control code for controlling the binary code switches of the binary code resistor array, so as to realize a specific distribution of current or voltage through the resistor network, and then realize impedance adjustment meeting the accuracy requirement.

[0041] In some embodiments, all resistors of the thermometer code resistor array have the same resistance value, and all resistors of the binary code resistor array have consistent or inconsistent resistance values. In this way, it is helpful to adapt the structure and setting of various resistor arrays.

[0042] In some embodiments, when all binary switches of the binary code resistor array are closed, the equivalent resistance value of all resistors of the binary code resistor array is less than the same resistance value each resistor of the thermometer code resistor array has. In this way, by making the equivalent resistance of all resistors of the binary code resistor array connected in parallel less than the resistance value of any resistor of the thermometer code resistor array, it helps to highlight that the degree of resistance change under coarse adjustment, i.e. macro level impedance adjustment based on the thermometer code control code, is higher than the degree of resistance change under fine adjustment, i.e. micro level impedance adjustment based on the binary code. For example, using a geometric progression as the resistance values of the binary code resistor array, the minimum value of the geometric progression is equal to the resistance value of the thermometer code resistor array. Because of the parallel relationship, the reciprocal of the resistance is the change in the final equivalent resistance. This means that from the highest bit to the lowest bit of the binary code, the adjustment precision is getting higher and higher, and the lowest adjustment precision is at the highest bit, which is equal to the adjustment precision of the thermometer code. The thermometer code is used for coarse adjustment to ensure that there is no intermediate state, and then the binary code is used for fine adjustment, and the adjustment precision gets higher and higher as it goes to the lower bit. By satisfying the design constraint that all resistors of the thermometer code resistor array have the same resistance value, and the same resistance value that all resistors of the thermometer code resistor array have is greater than the resistance value of the equivalent resistance of the binary code resistor array when all binary switches are closed, the advantages of the generation method of the hybrid control code after the optimization design are further embodied, which helps to fully utilize the characteristics of using the thermometer code to adjust without intermediate transition state and using the binary code control code to find the jump point of the resistance value of the target resistance under finer adjustment precision.

[0043] In some embodiments, the lowest resolution of the binary code control code for controlling the binary code switches of the binary code resistance array is not lower than the highest resolution of the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array. In this way, the macro-level impedance adjustment based on the thermometer code control code is performed first, so that the characteristic of using the thermometer code to adjust without intermediate transition states is fully utilized, and then the micro-level impedance adjustment based on the binary code is performed, so that the thermometer code control code is used first to find the jump point of the resistance value that approximates the target resistance, and then the binary code control code is used to find the jump point of the resistance value that approximates the target resistance at a finer resolution (the lowest resolution of the binary code control code is not lower than the highest resolution of the thermometer code control code). In this way, the degree of resistance change in the coarse adjustment, i.e., the macro-level impedance adjustment based on the thermometer code control code, is higher than the degree of resistance change in the fine adjustment, i.e., the micro-level impedance adjustment based on the binary code, which helps to fully utilize the characteristic of using the thermometer code to adjust without intermediate transition states and to use the binary code control code to find the jump point of the resistance value that approximates the target resistance at a finer resolution.

[0044] In a possible implementation, the resistance values of all resistors of the binary code resistance array are in a geometric progression from the lowest bit to the highest bit, from the maximum resistance value to the minimum resistance value, and the resistance value of each resistor of the thermometer code resistance array is equal to the minimum resistance value among the resistance values of all resistors of the binary code resistance array. In this way, the macro-level impedance adjustment based on the thermometer code control code and the micro-level impedance adjustment based on the binary code decouple the weight relationship between the highest bits of the thermometer code part and the binary code part to some extent. By setting the resistance values of all resistors of the thermometer code resistance array to be the same, and setting the minimum value among the resistance values of all resistors of the binary code resistance array to be equal to the same resistance value in a geometric progression, it means that the equivalent resistance of all resistors of the binary code resistance array connected in parallel is smaller than the resistance value of any resistor of the thermometer code resistance array. By making the equivalent resistance of all resistors of the binary code resistance array connected in parallel smaller than the resistance value of any resistor of the thermometer code resistance array, it helps to highlight that the degree of resistance change in the coarse adjustment, i.e., the macro-level impedance adjustment based on the thermometer code control code, is higher than the degree of resistance change in the fine adjustment, i.e., the micro-level impedance adjustment based on the binary code.

[0045] In some embodiments, the adjustment precision of the binary code control code for controlling the binary code switches of the binary code resistance array is from the highest adjustment precision to the lowest adjustment precision from the lowest bit to the highest bit, and the adjustment precision of the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array from the lowest bit to the highest bit is equal to the lowest adjustment precision among the adjustment precision of the binary code control code for controlling the binary code switches of the binary code resistance array from the lowest bit to the highest bit. This means that the adjustment precision is higher and higher from the highest bit to the lowest bit of the binary code, and the lowest adjustment precision is at the highest bit, which is equal to the adjustment precision of the thermometer code. The coarse adjustment is adjusted by the thermometer code to ensure that there is no intermediate state, and then the fine adjustment is adjusted by the binary code, and the adjustment precision is higher and higher as it goes to the lower bit. In this way, the characteristics of using the thermometer code to adjust without intermediate transition states and using the binary code control code to find the jump point of the resistance value approaching the target resistance at a finer adjustment precision are fully utilized.

[0046] In some embodiments, the geometric progression relationship is with the half of the resistance value of the target resistance as the first term and with a common ratio of one-half. In this way, the macro-level impedance adjustment based on the thermometer code control code is performed first, which fully utilizes the characteristics of using the thermometer code to adjust without intermediate transition states, and then the micro-level impedance adjustment based on the binary code is performed, which first uses the thermometer code control code to find the jump point of the resistance value approaching the target resistance, and then uses the binary code control code to find the jump point of the resistance value approaching the target resistance at a finer adjustment precision.

[0047] In one possible implementation, all the binary code switches of the binary code resistance array are opened at the control of the third binary code control code relative to all the binary code switches of the binary code resistance array being opened at the control of the first binary code control code or the second binary code control code. In this way, by keeping the thermometer code switches of the thermometer code resistance array under the control of the first thermometer code control code, the first binary code control code and the second binary code control code are further found, which means that the thermometer code control code is used first to find the jump point of the resistance value approximating the target resistance, and then the binary code control code is used to find the jump point of the resistance value approximating the target resistance at a finer adjustment precision. In this way, based on the first binary code control code and the second binary code control code corresponding to the jump point, a suitable binary code control code can be determined, for example, by opening the binary code switches at the lowest bit or the lowest several bits, the third binary code control code corresponding to the jump point can be determined. Here, considering that the resistance values of the binary code resistance array can be consistent or inconsistent, and in the case of inconsistency, the adjustment precisions corresponding to the binary code control codes from the highest bit to the lowest bit are increasingly higher, which means that the lowest adjustment precision corresponds to the highest bit, and the highest adjustment precision corresponds to the lowest bit. Therefore, by opening the binary code switches at the lowest bit or the lowest several bits, it means that the highest adjustment precision or the most front several adjustment precisions can be used to further approximate the resistance value of the target resistance, so as to determine the third binary code control code corresponding to the jump point. Finally, the combination of the first thermometer code control code and the third binary code control code is used as the hybrid control code of the resistance network corresponding to the resistance value of the target resistance. In this way, when the resistance value of the equivalent resistance provided by the resistance network is required to be the resistance of the target resistance, the hybrid control code can be used to control the opening and closing of the binary code switches in the binary code resistance array in the resistance network and the opening and closing of the thermometer code switches in the thermometer code resistance array, so that the adjustable resistance value between the first end and the second end provided by the resistance network is the resistance value of the target resistance, thereby realizing impedance adjustment.

[0048] In one possible implementation, the resistance network includes a field effect tube equivalent resistance. In this way, impedance adjustment of the resistance network supporting various structures and device combinations is realized.

[0049] In one possible implementation, the resistance network is configured to provide calibration of a termination resistance under control of the hybrid control code, and the resistance value of the target resistance is determined based on an expected resistance value of the termination resistance used to eliminate signal reflection. In this way, the high-precision impedance adjustment requirement in high-speed interface applications such as DDR is supported.

[0050] In one possible implementation, the resistance network does not generate intermediate transient states when the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array is switched. In this way, not only is the problem of intermediate transient states effectively overcome, but the complexity caused by excessive bit control bits is also minimized while achieving the same precision.

[0051] In one possible implementation, the resistance value of the target resistance is determined by monitoring the voltage across the target resistance, and the impedance adjustment method is implemented by a comparator and a finite state machine. In this way, the complexity is simplified.

[0052] In one possible implementation, the first preset step size is the minimum step size of the thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array, and the second preset step size is the minimum step size of the binary code control code for controlling the binary code switches of the binary code resistance array. In this way, a flexible adjustment mode is supported.

[0053] Figure 3 A schematic diagram of a resistance network according to a second embodiment of the present application is provided. As shown in Figure 3 , the resistance network includes: a binary code resistance array, wherein all resistances of the binary code resistance array are connected in parallel between a first end VP and a second end PAD through respective corresponding binary code switches; and a thermometer code resistance array, wherein all resistances of the thermometer code resistance array are connected in parallel between the first end VP and the second end PAD through respective corresponding thermometer code switches. The resistance network is connected between the first end VP and the second end PAD and is configured to provide an adjustable resistance value between the first end VP and the second end PAD.

[0054] Referring to Figure 3 , an equal ratio sequence is used as the resistance values of the binary code resistance array, and the minimum value of the equal ratio sequence is equal to the resistance value of the thermometer code resistance array. Because of the parallel relationship, the reciprocal of the resistance is used as the change amount of the final equivalent resistance. This means that from the highest bit to the lowest bit of the binary code, the adjustment precision is higher and higher, and the lowest adjustment precision is at the highest bit, which is equal to the adjustment precision of the thermometer code. The thermometer code is used for coarse adjustment to ensure that there is no intermediate state, and then the binary code is used for fine adjustment, and the adjustment precision is higher and higher as the bit goes lower.Figure 3 For example, let the total impedance value be R, and provide binary code switches from 1 to n, which are respectively used to control the resistance from 1 / 2 of R, 1 / 4 of R, to 1 / 2n of R, so that by using the binary code switches from 1 to n, n resistors with different resistance values distributed according to a geometric progression can be connected in parallel between the first end (such as VP) and the second end (such as PAD), thereby forming a binary code resistor array. Moreover, the corresponding binary code control code is Bin<1>, Bin<2>, Bin <n-1>, Bin <n>For example, assuming a binary switch connected to 1, for example, set the corresponding binary code control code Bin<1> to close the binary switch of 1, the equivalent resistance value of the binary resistance array is 1 / 2 of R; assuming a binary switch connected to 1 and 2, the equivalent resistance value of the binary resistance array is the parallel connection result of 1 / 2 of R and 1 / 4 of R, so that the equivalent resistance value of the binary resistance array is 1 / 6 of R. In this way, through the binary code control code, the binary switch of 1 to n can be controlled, and then the impedance adjustment of the micro level based on the binary code. In addition, through the thermometer code switch of 1 to m, the thermometer code switches are respectively used to control the resistance of 1 / 2n of R, and the resistances are connected in parallel between the first end (such as VP) and the second end (such as PAD), thereby forming a thermometer code resistance array. And the corresponding thermometer code control code is th<1>, th<2>, th <m-1>, th <m>Let's represent this. It can be seen that by setting all resistors in the thermometer-coded resistor array to have the same resistance value, which is one of the powers of 2 (R), it means that the minimum resistance value among all resistors in the binary-coded resistor array, set according to a geometric progression, is equal to this same resistance value, one of the powers of 2 (R). Therefore, it means that the equivalent resistance of all resistors in the binary-coded resistor array connected in parallel is less than the resistance value of any single resistor in the thermometer-coded resistor array. It should be understood that, except... Figure 3 In addition to the geometric progression relationship embodied in the resistor network of the second embodiment shown, the resistance values ​​of all resistors in the binary code resistor array can be set by referring to any suitable mathematical relationship. Generally, by satisfying the design constraints, namely setting all resistors in the thermometer code resistor array to have the same resistance value, and the same resistance value of all resistors in the thermometer code resistor array being greater than the equivalent resistance value of the binary code resistor array after all binary code switches are closed, the advantages of the optimized hybrid control code generation method can be further demonstrated. This helps to fully utilize the characteristic of using thermometer code adjustment without intermediate transition states and using binary code control code to find the jump point of the resistance value approaching the target resistance value with finer adjustment accuracy.

[0055] In one possible implementation, a hybrid control based resistance network includes: a binary code resistance array, wherein all resistances of the binary code resistance array are connected in parallel between a first end and a second end through respective corresponding binary code switches; and a thermometer code resistance array, wherein all resistances of the thermometer code resistance array are connected in parallel between the first end and the second end through respective corresponding thermometer code switches. The resistance network is connected between the first end and the second end and is configured to provide an adjustable resistance value between the first end and the second end. A method for impedance adjustment of the resistance network includes: connecting a target resistance between a ground end and the second end, such that the target resistance is connected in series with the resistance network between the first end and the ground end; closing all binary code switches of the binary code resistance array, and then gradually changing a thermometer code control code for controlling the thermometer code switches of the thermometer code resistance array in a first preset step, until a resistance value of the resistance network under a first thermometer code control code is less than a resistance value of the target resistance, and a resistance value of the resistance network under a second thermometer code control code is greater than the resistance value of the target resistance, wherein the second thermometer code control code is obtained by changing the first thermometer code control code in the first preset step; keeping the thermometer code switches of the thermometer code resistance array under control of the first thermometer code control code, and then gradually changing a binary code control code for controlling the binary code switches of the binary code resistance array in a second preset step, until a resistance value of the resistance network under a first binary code control code is less than the resistance value of the target resistance, and a resistance value of the resistance network under a second binary code control code is greater than the resistance value of the target resistance, wherein the second binary code control code is obtained by changing the first binary code control code in the second preset step; and determining a jump point of the resistance value of the resistance network relative to the resistance value of the target resistance based on the first binary code control code and the second binary code control code, to determine a third binary code control code corresponding to the jump point, and then using a combination of the first thermometer code control code and the third binary code control code as a hybrid control code of the resistance network corresponding to the resistance value of the target resistance.Thus, by optimizing the generation mode of the hybrid control code, the combination of the first thermometer code control code and the third binary code control code is used as the hybrid control code of the resistance network corresponding to the resistance value of the target resistance. Thus, the impedance adjustment scheme of two levels of coarse adjustment and fine adjustment can be established by the thermometer code control code for controlling the thermometer code switch of the thermometer code resistance array and the binary code control code for controlling the binary code switch of the binary code resistance array, so that the specific distribution of the current or voltage is realized by the resistance network, and then the impedance adjustment meeting the accuracy requirement is realized. Not only the problem of intermediate transition state is effectively overcome, but also the complexity caused by excessive bit control bits is reduced as much as possible under the realization of the same accuracy.

[0056] The method and the device provided by the embodiments of the present application are based on the same inventive concept. Since the principles of the method and the device for solving problems are similar, the embodiments, the implementation manners, the examples or the implementation manners of the method and the device can be referred to each other, and the repeated parts will not be described herein. The embodiments of the present application further provide a system, which includes a plurality of computing devices. The structure of each computing device can refer to the structure of the computing device described above. The functions or operations that can be realized by the system can refer to the specific implementation steps in the method embodiments described above and / or the specific functions described in the device embodiments described above, which will not be described herein.

[0057] The embodiments of the present application further provide a computer readable storage medium, which stores computer instructions. When the computer instructions run on a computer device (such as one or more processors), the method steps in the method embodiments described above can be realized. The specific implementation of the processor of the computer readable storage medium in executing the method steps described above can refer to the specific operations described in the method embodiments described above and / or the specific functions described in the device embodiments described above, which will not be described herein.

[0058] Those skilled in the art will appreciate that embodiments of the present application can be readily used as a method, apparatus, or computer program product. The present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both software and hardware aspects. Embodiments of the present application can be implemented in software, hardware, firmware or any combination thereof. Embodiments of the present application can be implemented as computer program products that comprise computer executable code, which when loaded and executed by a computer, cause the computer to carry out the steps of the processes described herein. Embodiments of the present application can take the form of a computer program product which can be embodied in one or more computer-usable storage media, having computer-usable program code embodied thereon. The computer-usable program code can be executed by a computer to cause the computer to carry out the steps of the processes described herein. The computer-usable storage media can be a tangible computer-readable storage medium. The computer-usable program code can be stored in a computer-usable storage medium as computer-readable code. The computer-readable code can be any data (which can be machine, human or both machine- and human-readable) that can be processed by or in connection with a computer system. The computer-readable code can be embodied in any computer-readable media for use by or in connection with an instruction execution system such as, for example, a computer system. Computer-readable media includes, at least, two types of media, namely computer-readable storage media and communications media. Computer-readable storage media includes, at least, two types of media, namely computer-readable storage media and communications media. Computer-readable storage media includes, but is not limited to, RAM, ROM, EEPROM, solid state drives (SSDs) that are based on RAM, flash memory or other types of memory, and data cartridges, hard disks, magnetic tapes, and other magnetic media, magneto-optical media, and optical media. Communications media includes, but is not limited to, wired media such as, for example, twisted pair wires, coaxial cables, fiber optics, and other types of wired media, and wireless media such as, for example, acoustic, radio frequency (RF), infrared and other types of wireless media. The term "computer-readable storage media" should be taken to include a single medium or multiple media (e.g., central or remote

[0059] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic Figure 1 The processes and logic flows can also be performed by, and apparatus can also be implemented as, a computer having a processor, and a memory coupled to the processor, the memory containing computer program instructions. Figure 1 The processes and logic flows can also be performed by, and apparatus can also be implemented as, a computer having a processor, and a memory coupled to the processor, the memory containing computer program instructions. Figure 1 one or more processes and / or functions specified in the flow block or blocks Figure 1 one or more processes and / or functions specified in the flow block or blocks Figure 1 one or more processes and / or functions specified in the flow block or blocks Figure 1 one or more processes and / or functions specified in the flow block or blocks

[0060] In the above embodiments, the description of each embodiment is focused on, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments. Obviously, those skilled in the art can make various modifications and variations to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. The steps in the method of the embodiments of the present application can be adjusted, combined or deleted in sequence according to actual needs; the modules in the system of the embodiments of the present application can be divided, combined or deleted according to actual needs. If these modifications and variations of the embodiments of the present application belong to the scope of the claims of the present application and the equivalent technologies thereof, the present application also intends to include these modifications and variations.< / m> < / n>

Claims

1. An impedance regulation method based on hybrid control, characterized in that, The impedance adjustment method is applied to a resistor network, the resistor network including a binary code resistor array and a thermometer code resistor array, the resistor network being connected between a first terminal and a second terminal and used to provide an adjustable resistance value between the first terminal and the second terminal, the impedance adjustment method comprising: The target resistor is connected between the ground terminal and the second terminal, such that the target resistor is connected in series with the resistor network between the first terminal and the ground terminal; Close all binary code switches of the binary code resistor array, and then gradually change the thermometer code control code used to control the thermometer code switches of the thermometer code resistor array according to a first preset step size, until the resistance value of the resistor network under the first thermometer code control code is less than the resistance value of the target resistor, and the resistance value of the resistor network under the second thermometer code control code is greater than the resistance value of the target resistor, wherein the second thermometer code control code is obtained by changing the first thermometer code control code according to the first preset step size; The thermometer-coded switch of the thermometer-coded resistor array is kept under the control of the first thermometer-coded control code. Then, the binary code control code used to control the binary code switch of the binary code resistor array is gradually changed according to a second preset step size until the resistance value of the resistor network under the first binary code control code is less than the resistance value of the target resistor, and the resistance value of the resistor network under the second binary code control code is greater than the resistance value of the target resistor, wherein the second binary code control code is obtained by changing the first binary code control code according to the second preset step size; and Based on the first binary code control code and the second binary code control code, the jump point of the resistance value of the resistor network relative to the resistance value of the target resistor is determined, thereby determining the third binary code control code corresponding to the jump point. Then, the combination of the first thermometer code control code and the third binary code control code is used as the mixed control code of the resistor network corresponding to the resistance value of the target resistor.

2. The impedance adjustment method according to claim 1, characterized in that, All resistors of the binary code resistor array are connected in parallel between the first terminal and the second terminal through their respective binary code switches, and all resistors of the thermometer code resistor array are connected in parallel between the first terminal and the second terminal through their respective thermometer code switches.

3. The impedance adjustment method according to claim 2, characterized in that, All resistors in the thermometer code resistor array have the same resistance value, while all resistors in the binary code resistor array have either the same or different resistance values.

4. The impedance adjustment method according to claim 3, characterized in that, When all binary code switches of the binary code resistor array are closed, the equivalent resistance value of all resistors in the binary code resistor array is less than the same resistance value of each resistor in the thermometer code resistor array.

5. The impedance adjustment method according to claim 4, characterized in that, The lowest adjustment accuracy of the binary code control code used to control the binary code switch of the binary code resistor array is not lower than the highest adjustment accuracy of the thermometer code control code used to control the thermometer code switch of the thermometer code resistor array.

6. The impedance adjustment method according to claim 2, characterized in that, The resistance values ​​of all resistors in the binary code resistor array are arranged in a geometric sequence from the least significant bit to the most significant bit, representing the maximum resistance value to the minimum resistance value. Furthermore, the resistance value of each resistor in the thermometer code resistor array is equal to the minimum resistance value among all the resistance values ​​of the binary code resistor array.

7. The impedance adjustment method according to claim 6, characterized in that, The adjustment precision of the binary code control code used to control the binary code switch of the binary code resistor array is from the least significant bit to the most significant bit, which is from the highest adjustment precision to the lowest adjustment precision. Furthermore, the adjustment precision of the thermometer code control code used to control the thermometer code switch of the thermometer code resistor array from the least significant bit to the most significant bit is equal to the lowest adjustment precision among the adjustment precisions of the binary code control code used to control the binary code switch of the binary code resistor array from the least significant bit to the most significant bit.

8. The impedance adjustment method according to claim 6, characterized in that, The geometric sequence relationship has half of the resistance value of the target resistor as the first term and half as the common ratio.

9. The impedance adjustment method according to claim 2, characterized in that, Under the control of the third binary code control code, all binary code switches of the binary code resistor array, relative to all binary code switches of the binary code resistor array, are disconnected under the control of the first binary code control code or the second binary code control code.

10. The impedance adjustment method according to claim 1, characterized in that, The resistor network includes the equivalent resistance of a field-effect transistor.

11. The impedance adjustment method according to claim 1, characterized in that, The resistor network is used to provide calibration of the terminating resistor under the control of the hybrid control code, and the resistance value of the target resistor is determined based on the expected resistance value of the terminating resistor, which is used to eliminate signal reflections.

12. The impedance adjustment method according to claim 1, characterized in that, When the thermometer control code used to control the thermometer switch of the thermometer-coded resistor array is switched, the resistor network does not generate an intermediate transition state.

13. The impedance adjustment method according to claim 1, characterized in that, The resistance value of the target resistor is determined by monitoring the voltage across the target resistor, and the impedance adjustment method is executed by a comparator and a finite state machine.

14. The impedance adjustment method according to claim 1, characterized in that, The first preset step size is the minimum step size of the thermometer code control code used to control the thermometer code switch of the thermometer code resistor array, and the second preset step size is the minimum step size of the binary code control code used to control the binary code switch of the binary code resistor array.

15. A resistor network based on hybrid control, characterized in that, The resistor network includes: A binary code resistor array, wherein all resistors of the binary code resistor array are connected in parallel between a first terminal and a second terminal through their respective corresponding binary code switches; and A thermometer-coded resistor array, wherein all resistors of the thermometer-coded resistor array are connected in parallel between the first terminal and the second terminal through their respective corresponding thermometer-coded switches. The resistor network is connected between the first end and the second end and is used to provide an adjustable resistance value between the first end and the second end. The impedance adjustment method of the resistor network includes: The target resistor is connected between the ground terminal and the second terminal, such that the target resistor is connected in series with the resistor network between the first terminal and the ground terminal; Close all binary code switches of the binary code resistor array, and then gradually change the thermometer code control code used to control the thermometer code switches of the thermometer code resistor array according to a first preset step size, until the resistance value of the resistor network under the first thermometer code control code is less than the resistance value of the target resistor, and the resistance value of the resistor network under the second thermometer code control code is greater than the resistance value of the target resistor, wherein the second thermometer code control code is obtained by changing the first thermometer code control code according to the first preset step size; The thermometer-coded switch of the thermometer-coded resistor array is kept under the control of the first thermometer-coded control code. Then, the binary code control code used to control the binary code switch of the binary code resistor array is gradually changed according to a second preset step size until the resistance value of the resistor network under the first binary code control code is less than the resistance value of the target resistor, and the resistance value of the resistor network under the second binary code control code is greater than the resistance value of the target resistor, wherein the second binary code control code is obtained by changing the first binary code control code according to the second preset step size; and Based on the first binary code control code and the second binary code control code, the jump point of the resistance value of the resistor network relative to the resistance value of the target resistor is determined, thereby determining the third binary code control code corresponding to the jump point. Then, the combination of the first thermometer code control code and the third binary code control code is used as the mixed control code of the resistor network corresponding to the resistance value of the target resistor.

Citation Information

Patent Citations

  • Impedance matching network, data transmission system and impedance matching method

    CN114124030A

  • Precision adjusting circuit, adjusting method, RC oscillating circuit, equipment and medium

    CN117060855A

  • High-precision R-2R voltage type digital-to-analog converter based on binary weighting code and thermometer code

    CN120880455A

  • Combination binary and thermometer code for a controlled impedance driver

    GB0205678D0

  • Hybrid binary / thermometer code for controlled-voltage integrated circuit output drivers

    US20050242830A1