Analog-to-digital converters (ADCs) have a wide range of applications. Applications such as high speed communication systems often require ADCs with low distortion or linear distortion that may be corrected using known techniques. In practice, the outputs of many ADCs have nonlinear distortion in addition to quantization error inherent in the conversion of an analog signal to a digital signal. There are many causes for the nonlinear distortion, including nonlinear components such as inductors, capacitors and transistors, nonlinear gate transconductance, gain errors in amplifiers, digital to analog converter level errors, etc. Nonlinear ADCs often have variable time constants that change with the input. Changes in time constants may depend on the input, the rate of change for the input (also referred to as slew rate), as well as external factors such as temperature. The effects of the changing time constants are often more pronounced in high speed ADCs where the slew rate change in the input is high. To improve nonlinear distortion, some of the existing ADC designs use physical components that are less sensitive to input changes. This approach, however, is not always effective. Some nonlinearity in the physical components is usually unavoidable, which means that the ADC typically will have some nonlinearity. Furthermore, the special components often lead to more complicated design and higher device cost.
It would be useful if the nonlinear distortion in ADCs could be more easily compensated. It would also be desirable if the compensation technique would not significantly increase the complexity and cost of the ADCs.
Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.
The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a composition of matter, a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or electronic communication links. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. A component such as a processor or a memory described as being configured to perform a task includes both a general component that is temporarily configured to perform the task at a given time or a specific component that is manufactured to perform the task. In general, the order of the steps of disclosed processes may be altered within the scope of the invention.
A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
A method and system of converting an input analog signal to a compensated digital signal is disclosed. In some embodiments, the input analog signal is converted to an uncompensated digital signal. The uncompensated digital signal is sent to a distortion model and a modeled distortion signal is generated. The modeled distortion signal is subtracted form the uncompensated digital signal to generate the compensated digital signal. In some embodiments, fractional phase samples and/or derivatives of the input are used to generate the modeled distortion signal.
In the examples shown above, a signal entering the ADC propagates in continuous-time mode through several analog circuit components before being sampled and held at a sampling capacitor. The sampled signal is compared with a set of pre-stored voltage (or current) levels and the results of the comparisons are converted to digital bits that form the output of the ADC. The dynamic signal path extends from the ADC's input pad to the sampling capacitor(s). The sample-and-hold function places on the sampling capacitor(s) a charge proportional to the input signal level at the time the sampling switch opens. After the charge is placed, the signal is no longer processed in the continuous-time domain. It is processed in the discrete-time domain and the signal path becomes static. As used in this specification, the distortions in the continuous-time path and the discrete-time path are referred to as dynamic distortion and static distortion respectively.
The dynamic distortion is a function of the continuous-time signal v(t) propagating through a nonlinear analog medium. The analog signal paths have one or more resistor-capacitor (RC) time constants τ1, τ2 . . . τL. The dynamic nonlinear distortion in ADCs are due to RC time constants that change as functions of the continuous-time signal and its history, i.e., τ1 (v(t), v(t−ε), v(t−2ε), . . . ), τ2(v(t), v(t−ε), v(t−2ε), . . . ), . . . , τL(v(t), v(t−ε), v(t−2ε), . . . ), where ε is an small time increment. In other words, the dynamic nonlinear distortion is a function of the signal value at time t, the signal value immediately preceding time t at t−ε, and the signal value immediately preceding t−ε and so on. The dynamic nonlinear distortion is therefore a function of the signal v(t) and its rate of change {dot over (v)}(t) (also referred to as derivative or slew rate). The analog signal path also contains linear distortion that generates memory effects on the distortion, causing the nonlinear distortion to be a function of v(t), v(t−ξ), . . . and {dot over (v)}(t), {dot over (v)}(t−ξ), . . . where ξ is a discrete time step and a high sampling-rate.
Take the following dynamic nonlinear distortion function for example:
y(t)=v(t)+k1(v(t))(y(t−ξ)−x(t))+k2 arctan(v(t)) (equation 1),
where k1(v(t)) is the filter constant that is a varying function of the signal input level, and k2arctan(v(t)) is a continuous-time, nonlinear distortion function. This equation can be approximated by
y(t)=v(t)+k1(v(t))({dot over (v)}(t))+k2 arctan(v(t)) (equation 2).
When linear distortion is severe enough to cause analog signal path bandwidth limitations and consequently memory effects on the nonlinear distortion, the previous equation can be written as:
y(t)=v(t)+k1(v(t))({dot over (v)}(t))+k11(v(t−ξ))({dot over (v)}(t−ξ))+k2 arctan(v(t))+k21 arctan(v(t−ξ)) (equation 3).
After the sample-and-hold function, the signal is discretized, and the static distortion is a function of the signal level at the sampling instant and the history of the signal levels at previous sampling instants. Thus, the distortion can be expressed as:
ƒ(y(nT), y((n−1)T), . . . y((n−L)T))ƒ(v(nT), v((n−1)T), v((n−2)T), . . . v(nT−ξ), v(nT−2ξ), v(nT−3ξ), . . . {dot over (v)}(nT), {dot over (v)}(nT−ξ), {dot over (v)}(nT−2ξ), . . . ) (equation 4).
A general expression for the distortion function is the following:
ηn=vn+a00vn+a10vnvn−ξ+a20vn−2ξ3+ . . . +ak0{dot over (v)}nvn−kξ+a01{dot over (v)}n3+a11{dot over (v)}n−ξ+a21{dot over (v)}n−2ξ+ . . . +ak1{dot over (v)}n−kξ+a02vn−1+a12vn−2+a22vn−3+ . . . +an2vn−k−1+b (equation 5),
where the coefficients aji and b are nonlinear functions of all the signals that cause the distortion. In other words, each coefficient is a nonlinear function of the vector
Vn=[vnvn−ξ vn−2ξ . . . vn−kξ {dot over (v)}n {dot over (v)}n−ξ {dot over (v)}n−2ξ . . . {dot over (v)}n−kξ vn−1 vn−2 vn−3 . . . vn−k−1].
Alternatively, the distortion function may be expressed as:
ηn=ã0,n(Vn)vn+ . . . +ã2N−2,n(Vn)vn−2N+2+{tilde over (b)}n(Vn) (equation 6),
where each coefficient ãk,n(Vn) is a nonlinear function of Vn. In some embodiments, the coefficients of the distortion function are determined empirically. Test tones having varying amplitudes and slew rates are sent to the ADC. Least mean squared error approximation is performed on the results to determine the coefficients.
Process 200 may be implemented by a system such as ADC 100 of
ADCs are configured to sample the input signal at various phases.
Returning to
The distortion correction module implements a distortion model with the following transfer function:
{circumflex over (η)}n=ã0,n(Yn)yn+ . . . +ãN,n(Yn)yn−N+{tilde over (b)}n(Yn) (equation 7),
where Yn is a vector including the integral samples, the fractional samples, and the derivatives. An example of Yn is
Yn=[yn yn−ξ yn−2ξ {dot over (y)}n {dot over (y)}n−ξ {dot over (y)}n−2ξ yn−1 yn−2 yn−3].
Equation 7 can be viewed as a “linear” convolution between the input variables and the nonlinear coefficients that are time variant nonlinear functions of the input signal. In other words, the function has the form of a linear filter, but with nonlinear coefficients. The relative location of input Yn in the multi-dimensional input space determines the values of the ãj,n and {tilde over (b)}n coefficients. The dependence of the filter coefficient values on the input signal vector gives the filter its nonlinear property.
The nonlinear processor output, {circumflex over (v)}n, includes a replica of the original linear signal vn and the residual uncorrected nonlinear distortion {tilde over (η)}n. The relationship may be expressed as:
{circumflex over (v)}n=yn−{circumflex over (η)}n=vn+ηn−{circumflex over (η)}n=vn+{tilde over (η)}n (equation 8), where
{tilde over (η)}n=ηn−{circumflex over (η)}n. (equation 9).
By using the fractional samples and the fractional derivative samples, the distortion correction module can better predict the distortion of the signal. The estimated distortion is then subtracted from the output of the primary ADC to provide a compensated output.
In the examples shown, a distortion correction module relies on the samples to generate an estimated distortion signal. Since the distortion model is dependent on the history of the signal and its derivatives, the model can provide better distortion estimation if more detailed information between the sampled points is available. For example, more input data history and better derivative values can be used to improve the distortion model output. In
In some systems, the distortion model also depends on system temperature. In
In some embodiments, a distortion model similar to equation 7 can be implemented using one or more minimum-maximum processors and/or absolute value processors. Details of the implementation are described in U.S. Pat. No. 6,856,191, entitled NONLINEAR FILTER, which is incorporated herein by reference for all purposes. According to the techniques described, the transfer function of the distortion model may be expressed as:
Let sign({right arrow over (α)}jYn+βj)+λjn, equation 10 can be rewritten as:
Equation 11 is also equivalent to equation 7.
The distortion function may be transformed into vector form to simplify the function and achieve computational reductions. In some embodiments, the distortion function is implemented as a low complexity filter with reduced number of multiplication operations. The distortion function of equation 4 can be transformed as follows:
Let λj,n=sign(yn−1+βj), the function can be further transformed as
A filter implementing the general form of equation 13 is referred to as a first order nonlinear filter since each coefficient is multiplied with terms of y to the first order at most. In some embodiments, cj and cjβj are pre-computed and stored. Since λjn is either 1 or −1, the coefficients can be computed without using multiplication and the complexity in filter implementation is greatly reduced.
Other simplifications using vector manipulation are also possible. For example, another simplified form of the distortion function is expressed as:
{circumflex over (η)}n=ƒ0,n(Yn)yn+ . . . +ƒ2N−2,n(Yn)yn−2N+2+ã0,n(Yn)yn+ . . . +ã2N−2,n(Yn)yn−2N+2+{tilde over (b)}n(Yn) (equation 14),
where each ƒk,n(Yn) is a first order nonlinear function
Accordingly, each coefficient in equation 14 is a nonlinear function of the input vector elements and some of the coefficients multiply a power-of-two element of the input vector or cross-product-of-two elements of the input vector. A filter implementing this simplified form is referred to as a second order filter.
In some embodiments, the distortion function is simplified to have constants in each discrete input region. This simplification results in a zero order transfer function. The zero order filter is sometimes referred to as a “catastrophic” structure because of the discontinuities in the filter response. A general form of a zero order nonlinear filter is expressed as:
To implement a zero order nonlinear filter, combinations of
etc. may be pre-computed, stored and retrieved based on the appropriate input. In some embodiments, the coefficient value is determined using an indicator that indicates the relative location of the input within the range of possible inputs. The indicator is sometimes referred to as a “thermometer code,” which is a vector having a total of at most one sign change among any two adjacent elements.
Take the following second order function as an example:
The input is compared to the set of βjK values to determine the relative location of the input variable within the range of possible inputs, and the vector of λj,n, denoted as Λn. Depending on the input, Λn may be a vector with terms that are +1 only, −1 only, or −1 for the first k terms and +1 for the rest of the terms. In other words, Λn is a thermometer code with at most one sign change among its terms. For example, assuming that constants βjK are distributed across the dynamic range of yn ε(−1, 1) and there are 8 values of
then
yn is somewhere in between, Λn may have a sign change. For example, if
Λn=[−1−1−1+1+1+1+1+1]. Since the thermometer code has only 8 values, there are only 8 possible values for
8 possible values for
and 64 possible values for
The number of add operations can be reduced by pre-computing the possible values for coefficients of ã01,n, â1,n, etc. and storing them in memory. In this example, the addresses of the coefficients are stored in a lookup table, which stores the 8 possibilities of thermometer code Λn and the corresponding addresses of pre-computed coefficients. The coefficients can be retrieved by accessing the memory addresses that correspond to the appropriate thermometer code entry. Once the coefficients ã01,n, â11,n etc. . . . are read out of memory, the filter output can be computed as
{circumflex over (η)}n=ã01,nyn2+â1,nynyn−1+ã0,nyn+a1,nyn−1+b (equation 18).
This technique is also applicable to zero, first or higher order filters.
Low complexity nonlinear filters may be implemented based on the simplified forms. In some embodiments, the low complexity linear filter includes a processor coupled to the nonlinear filter, configured to determine the relative location of the input variable within a range of possible inputs and to determine a filter coefficient of the nonlinear filter using the relative location of the input variable. The filter coefficients can be determined without using multiplication operations. In some embodiments, filter coefficients for zero order, first order, second order and/or higher order filters are pre-computed, stored and retrieved when appropriate. Higher order filters can be formed by nesting lower order filters. Details of implementing a nonlinear transfer function using low-complexity filter or thermometer code are described in U.S. patent application Ser. No. 11/061,850 entitled LOW-COMPLEXITY NONLINEAR FILTERS, filed Feb. 18, 2005, which is incorporated herein by reference for all purposes.
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.
This application claims priority to U.S. Provisional Patent Application No. 60/556,663 entitled REDUCED COMPLEXITY NONLINEAR FILTERS FOR ANALOG-TO-DIGITAL CONVERTER LINEARIZATION filed Mar. 25, 2004 which is incorporated herein by reference for all purposes.
Number | Name | Date | Kind |
---|---|---|---|
4435823 | Davis et al. | Mar 1984 | A |
4843583 | White et al. | Jun 1989 | A |
5182558 | Mayo | Jan 1993 | A |
5302909 | Kettenis et al. | Apr 1994 | A |
5532642 | Takai | Jul 1996 | A |
5535246 | Beech | Jul 1996 | A |
5685317 | Sjostrom | Nov 1997 | A |
5786728 | Alinikula | Jul 1998 | A |
6181754 | Chen | Jan 2001 | B1 |
6351227 | Rudberg | Feb 2002 | B1 |
6351740 | Rabinowitz | Feb 2002 | B1 |
6388518 | Miyatani | May 2002 | B1 |
6512417 | Booth et al. | Jan 2003 | B1 |
6538592 | Yang et al. | Mar 2003 | B1 |
6621340 | Perthold et al. | Sep 2003 | B1 |
6677820 | Miyatani | Jan 2004 | B1 |
6677821 | Kusunoki et al. | Jan 2004 | B1 |
6856191 | Bartuni | Feb 2005 | B1 |
6885323 | Batruni | Apr 2005 | B1 |
Number | Date | Country | |
---|---|---|---|
20050219088 A1 | Oct 2005 | US |
Number | Date | Country | |
---|---|---|---|
60556663 | Mar 2004 | US |