1. Field of the Invention
The present invention relates generally to analog function synthesizers, and particularly to a universal CMOS current mode analog function synthesizer that can realize over thirty-two nonlinear functions using a transistor squaring unit without dedicated current multipliers.
2. Description of the Related Art
The use of analog nonlinear networks, signal processing and medical equipment justifies the large number of analog nonlinear function synthesizers available in the literature. Over the years, different approaches have been used for synthesizing nonlinear functions. Initially, diodes and linear resistors were extensively used. Later on, the nonlinear characteristics of MOSFETs operated in weak or strong inversion regions and JFETs operated in the pinch-off or the triode region have been exploited in realizing various analog functions including the exponential, the squarer and the square rooting functions. Recently, the realization of nonlinear functions using piecewise-linear function approximations and integrated-circuit operational amplifiers, current conveyors, operational transconductance amplifiers and current comparators has been reported.
The exponential characteristic of the bipolar junction transistor has been exploited to advantage in the design of analog nonlinear functions using the translinear principle. Design of analog BiCMOS computational circuits has also been reported.
Over the years analog CMOS circuits have evolved based on the exponential law characteristic of a MOS transistor operating in weak inversion. Moreover, the square-law characteristic of a MOS transistor operating in strong inversion has been reported. Voltage multipliers, linear voltage-to-current and current-to-voltage converters, exponential and pseudo exponential current-to-voltage, voltage-to-current, voltage-to-voltage converters, vector-summation circuits, sin(x) shapers, square-rooters, arc sine function and arc cosine function are several examples of the analog nonlinear CMOS circuit realizations available in the literature. These circuit realizations suffer from many disadvantages. For example, the related art circuit realizations may permit only one function realization at a time. They may require numerical optimization routines to select the device size ratios and the bias voltages. They may use piecewise linear approximations for synthesizing the nonlinear functions. They may require programming of the parameters of several circuits. They may operate in voltage-mode with input and output voltages or mixed-mode with voltages as the input or output and current as output or input.
Current-mode circuits, with currents as input and output variables, are more attractive than their voltage-mode counterparts. This is attributed to wider signal bandwidths and larger dynamic ranges of operation that can be obtained using current-mode circuits rather than voltage-mode circuits.
Although a number of CMOS current-mode analog function synthesizers are available these circuits suffer from disadvantages such as, e.g., they may use piecewise linear approximations for synthesizing nonlinear functions; they may provide only a few functions (mostly the exponential or the pseudo exponential functions); they may extensively use integrated circuits such as operational transconductance amplifiers and current comparators; they may require digital control circuits to select the required function; they may realize only one function at a time.
Recently, a universal CMOS current-mode analog function synthesizer has been proposed. The key idea of the proposed circuit is the fact that numerous nonlinear functions can be approximated, to a high degree of accuracy, using a few terms of their Taylor series expansion.
Although a number of dedicated current multipliers are already available, current multipliers usually suffer from limited bandwidth, complexity leading to high power consumption, the need to trim out the feed-through terms (offset currents) and to adjust the scale factor (the multiplier gain).
It therefore would be desirable to present a new universal CMOS current-mode analog function synthesizer that can realize a wide range of nonlinear functions without recourse to dedicated current multipliers.
Thus, a universal CMOS current-mode analog function synthesizer solving the aforementioned problems is desired.
The universal CMOS current-mode analog function synthesizer is based on approximating the required function using a sixth-order Taylor series expansion of the function. These approximations can be implemented by adding the weighted output currents of a number of basic building blocks, built around a basic current squarer, and a constant current. The circuit can simultaneously realize thirty-two different mathematical functions and can be easily expanded to accommodate many others. Simulation results have verified the accuracy and performance of the synthesizer circuit.
The synthesizer circuit enjoys the following attractive features: (1) the circuit uses CMOS transistors and is, therefore, compatible with the current digital signal processing CMOS technology; (2) CMOS transistors work in the strong inversion, thus operation at relatively high frequency is feasible; (3) the circuit can simultaneously realize several nonlinear functions; (4) the circuit does not require any programming for its bias voltages or currents and parameter optimization is not required; (5) the circuit avoids the use of piecewise linear approximation of the synthesized nonlinear functions; and (6) the circuit operates in current-mode, thus providing higher frequencies of operation and wider dynamic ranges.
These and other features of the present invention will become readily apparent upon further review of the following specification and drawings.
Similar reference characters denote corresponding features consistently throughout the attached drawings.
The universal CMOS current-mode analog function synthesizer (shown in
The universal CMOS current-mode analog function synthesizer circuitry 400a-400d approximates numerous nonlinear functions to a high degree of accuracy by using the first seven terms of a Taylor series expansion of the form:
f(x)≅y=a0+a1x+a2x2+a3x3+a4x4+a5x5+a6x6; |x|<1 (1)
Table I shows a number of nonlinear functions with the corresponding values of the parameters an, n=0, 1, 2, . . . , 6. In current mode, with the variable x representing the normalized input current, Equation (1) can be implemented by adding the weighted output currents of a number of power-factor raising circuits with power factors=2, 3, . . . 6, current amplifiers (or attenuators) and a constant current. In the function synthesizer circuit shown in
Table II shows the aspect ratios (W/L) of transistors M1-M10 of current mirror 100.
Assuming that transistors M1 M2 as well as transistors M3 and M4 are well matched and that all transistors are operating in their saturation region and having the same value of the process transconductance parameter, i.e., βn=βp, then applying the translinear principle, we obtain:
2√{square root over (Iq)}=√{square root over (ID2)}+√{square root over (ID4)} (2)
where the currents ID2 and ID4 are the drain currents of transistors M2 and M4, respectively. Combining Equation (2) with:
I
D2
+I
in
=I
D4 (3)
and using simple mathematical manipulations, the currents ID2 and ID4 can be expressed as:
From Equations (4) and (5), the current ID5 and the output current IB can be expressed as:
By subtracting a constant current=2Iq from ID5, the output current IA can be expressed as:
From Equations (7) and (8) it appears that the currents IB and IA are proportional to the normalized input-current
and the square of the normalized input current
respectively.
As shown in
The aspect ratios (W/L) of transistors M1-M8 of
Similarly, as shown in
Normalized currents proportional to higher powers of the normalized input current with different weighting factors can be obtained by successive use of squares and the square-difference identity and appropriate current-mirrors. Thus, higher-order terms of Equation (1) can be obtained using the already available design of the SU derived from
Table III shows the aspect ratios (W/L) of the MOSFETs used to obtain the normalized currents x, x3/2, x4/8, x5/2 and x6/8. Using these normalized currents in addition to the appropriate normalized DC current component, any function in Table I can be realized using MOSFET current-mirrors with the appropriate aspect ratios (W/L).
A complete circuit realization for the thirty-two functions of Table I is shown in
The circuit of
In
The outputs of the circuit of
The outputs of the circuit of
The SU plays a key role in the realization of the analog function synthesizer. Therefore, it is essential to investigate its performance in detail. The analysis presented above is based on the assumption that the transistors M1-M4, of the class-AB configuration of
A minimum gate length, which largely avoids short channel effects due to mobility reduction and velocity saturation, is, therefore, recommended to avoid destroying the square-law equation. Consequently, this minimum gate length ultimately limits the maximum operating frequency of the analog function synthesizer. Mismatch between the process transconductance parameters Kn and Kp, the aspect ratios (W/L), and the threshold voltages Vthi, i=1-4 of the n- and p-channel MOS transistors of the class-AB configuration of
Assuming that transistors M1-M4 have threshold voltage mismatches, refinement of the translinear loop formed of M1-M4 of
where K=Kn=Kp, ID2 and ID4 are the currents in the drains of transistors M2 and M4, respectively,
Combining Equations (3), (9)-(11) and using simple mathematical manipulations, the normalized output current of the SU can be expressed as
On the right-hand side of Equation (12), the first term represents the output current of the ideal SU; the second and third terms represent a DC offset output current and the fourth and fifth terms are proportional to the square of the input current and represent an error in the output of the SU. Using Equation (12), the amount of error can be estimated for different values of x. For example, for Vth0=0.2578V, ΔVth1=1 mV, ΔVth2=0.7 mV, ΔVth3=0.3 mV, ΔVth4=1.2 mV and K=4.0 μA/V2, then for Iin=1 μA, Iq, =1 μA that is x=1.0, the output current of the SU is 0.2 μA, whereas the expected output current assuming identical transistors, with no threshold-voltage mismatch is 0.125 μA. This represents 60% error and shows that a total threshold-voltage mismatch ΣΔVthi=0.3% results in 60% error in the output current of the SU. This clearly indicates the importance of minimizing the threshold-voltages mismatches of the MOSFET transistors.
Assuming that transistors M1-M4 have transconductance parameters mismatch with Kn≠Kp where Kn and Kp of the n- and p-channel MOS transistors, re-analysis of the translinear loop formed of transistors M1-M4 of
With Kn=K, Kp=K(1+δ), using the approximation (1+x)−1/2≈1−½x, if x<<1, ignoring terms containing δ2, combining Equations (3) and (13), the output current of the SU can be expressed as:
I
D2(16(1−2Δ)Iq+4Δx)=16(1−2Δ)Iq2+(1−4Δ)x2−8(1−3Δ)Iqx (14)
where Δ=0.5δ. Assuming that 4(1−2Δ)Iq>>Δx, equation (14) yields the following expression for the second-order output current:
Successive use of Equation (15), ignoring second-order effects, yields the following expressions for the third-, fourth-, fifth- and sixth-order normalized output currents:
Equations (15)-(19) clearly show that the normalized output currents IA, IB, IC, ID, and IE will be affected by the mismatch of the process transconductance parameters Kn and Kp. In fact each of the currents IA, IB, and ID, are comprised of the required second-, third- and fifth-order components plus a linear one. And the currents IC and IE are comprise of the required fourth- and sixth-order components plus a second-order and a third-order component, respectively. Obviously, this will lead to error in the synthesized analog function.
To illustrate the amount of error, consider the following example. To synthesize the function:
the current IA must be inverted and multiplied by 4, and the current IB must be divided by 3, the current IC must be divided by 3, the current ID must be divided by 60 and the current IE must be divided by 90. Thus, using Equations (15)-(19), and assuming that the current Iq=1 uA, the output current will be given by:
For any value of Δ, using (21), the amount of error can be estimated for different values of x. For example, for Δ=0.05, that is 10% transconductance mismatch, x=0.2, the output will be 1.261139, that is e0.2≈1.261139. The exact value is 1.2214. Thus, the error due to the transconductance mismatch is 3.25%.
Assuming that transistors M1-M4 have aspect ratios mismatch with (W/L)1—(W/L)2≠(W/L)3≠(W/L)4, re-analysis of the translinear loop formed of M1-M4 in
With (W/L)i=(W/L)(1+δi), i=1, 2, 3, 4, using the approximation (1+x)−1/2≈1−½x, if x<<1, ignoring terms containing δi2, Equation (22) reduces to
Combining Equations (3) and (23), simple mathematical manipulations lead to the following approximate expression for the output current of the SU, after subtracting the current 2Iq.
where =α1=(1−½δ2), α2=(1−½δ4) and α3=2−½(δ1+δ3). On the right hand side of Equation (24), the first two terms represent a DC offset in the normalized output current of the SU, the third term represents the required output of the SU; now modified, and the fourth term is proportional to the normalized input current and represents an error in the output of the SU. For any values of δ1, δ2, 67 3 and δ4 the error can be estimated for different values of x. For example, for δ1=0.1, δ2=0.05, δ3=0.07 and δ4=0.06, then the normalized output current of the SU will have an undesired DC offset component equal to 0.1 instead of zero in the ideal case, the coefficient of the square of the normalized output current will be 1/7.9997 instead of the exact value=⅛ and an undesired output component proportional to the normalized input with coefficient=0.0208. This clearly indicates that the output of the SU will be slightly affected by the mismatches in the aspect ratios W/L.
A simple technique for synthesizing nonlinear functions has been presented. This technique is based on approximating the nonlinear function of interest using the first seven terms in its Taylor-series expansion. The desired function is the summation of the weighted output currents of a number of power-factor raising circuits built around a basic current squarer circuit (SU), a weighted current amplifier (or attenuator) and a DC current component. The technique is very flexible and can simultaneously realize many functions by proper selection of the aspect ratios of MOSFET transistors. Adding higher-order terms to the Taylor series requires the use of additional power-factor raising circuits, which can be easily realized using the current squarer circuit (SU). The simulation results, obtained from the thirty-two functions, verified the operation of the circuit.
The accuracy of the synthesized functions will be primarily decided by the number of Taylor-series terms used in the approximation and the effects of mismatch between transistors used in practical implementation of the required current power-factor raising circuits built around the SU of
The high frequency limitations of the analog function synthesizer will be decided by the high frequency performance of the class-AB configuration of
It is to be understood that the present invention is not limited to the embodiment described above, but encompasses any and all embodiments within the scope of the following claims.