Documente Academic
Documente Profesional
Documente Cultură
ABSTRACT
In this paper we describe an optimization-based method for sizing the devices in an analog circuit to meet a set of given constraints. The current optimization method does not guarantee to nd an optimal solution but nds a set of good solutions within a short time. To decrease the computation time no external simulators are used, instead the transistor model, BSIM3v3, has been integrated into the program. The motivation to use an optimization-based device sizing program for analog circuit design are to increase the design efciency and use more complex cost functions.
1. INTRODUCTION
It is well known that a considerably amount of time is spent on the iterative process of device sizing using simulations of analog circuits. During this process it is difcult to obtain optimal performance since many of the performance metrics are nonlinear functions of the design parameters, i.e., transistor sizes and bias currents. Optimization-based methods can in this case be used to achieve good trade-offs between several performance metrics. Furthermore optimization-based device sizing can be used to improve the design efciency for analog circuit design since the designer can work at a higher level of abstraction. There are a multitude of optimizing techniques that can be used for designing analog circuits [1], for example knowledge-based methods, global optimization methods, geometric programming, and gradient-based optimization methods. A knowledge-based system incorporate the know-how of an experienced analog designer. The advantage of this approach is the short computation time. Its drawback is the long set-up time for optimizing new structures since all circuits requires their own design rules. Further there is no guarantee that a global optimum is obtained. An example of a knowledge-based system is the IDAC program [2]. Global optimization methods on the other hand use optimization algorithms such as simulating annealing, genetic evolution, branch-and-bound, or exhaustive search. However, in practice non of these methods are guaranteed to nd the global optimum since the optimization time is limited [3]. In most cases, however, a good
solution is found within a short time. In our case we do not consider the computation time as a major problem. An optimization method that has become popular during the last few years is geometric programming [3], [4]. All design equations are formulated as posynomials, transforming the problem into a convex problem for which a global optimum is easily found. The drawback is that accurate design equations cannot be formulated as posynomials, thus, the use of posynomials restricts the transistor model to be of low accuracy. Furthermore, it is difcult to incorporate certain types of constraints and the use of simplied models does not ensure that all transistors operate in the proper region. Most classical optimization methods rely on gradient methods to nd a local optimum. These can also be used for optimizing the performance metrics of an analog circuit. In [6], [7] simplied models together with a minimax formulation of the problem were used to nd the DC operating points. Complete SPICE simulations can also be used in the iteration loop at a cost of very long simulation times [8]. Here we present on-going work to incorporate high accuracy transistor models in order to ensure accurate results. A minimax formulation of the optimization problem is currently used. The optimization scheme does not guarantee to nd the optimal solution, but a set of good solutions are found. Future work involves the implementation of more sophisticated optimization methods.
Start
VS1
ID1
Generate initial values for transistor widths, node voltages, and bias currents Optimization
VG1
M1
W1,L VB1
no
DC operating point found? yes Generate initial value for the ac optimization ac optimization
VS2
no
no
Figure 2. An example circuit ble bias currents. Applying these equations together with constraints on the operation region of the transistors will result in a DC solution where all transistors are operating in their desired operation region.
V M M
dd
bias network can be neglected. The output range is computed by the following expression. OR max V dd V DSAT 7
C
bias
OR min V DSAT 6
L
(4)
The minimum and maximum voltage at the input of the amplier is given by CMR max V dd V DSAT 5 V TH 1 CMR min V TH 3 + V DSAT 1 V TH 1
(5)
M M
3
ss
Figure 3. Single-ended two-stage operational amplier. where the factors k gs , a gs and k gd are used as tting parameters. Based on these AC parameters the frequency dependent properties of the circuit is computed. A large number of starting points can be evaluated in the optimization process. At the end the solution that best ts the design objectives is chosen.
In order to minimize the input offset voltage of the circuit the following relationship must be met. 2W 4 W 7 ------------------ = 1 W 5W 6
(6)
The common-mode rejection ratio at low frequencies is approximated by g m1 g m3 CMRR min 2 --------------------------------------( g ds1 + g ds3 )g ds5
(7)
3. DESIGN EXAMPLE
The differential input single-ended output two-stage operational transconductance amplier, OTA, used in this example is shown in Figure 3. This OTA is chosen in this design example since it is a commonly used all-purpose OTA. It has also a large output swing, high open loop voltage gain, and large common-mode input swing. The non-dominating pole, originating from the parasitic capacitance at the gate of transistor M6, is its main drawback. The load capacitor C L is set to be 5 pF and the power supply voltage is 3.3 V. Symmetry is obtain by setting the widths to be equal for transistors M1, M2 and M3, M4 respectively. The channel length, L, is set to 0.7 m for all transistors. Currently all constraints used in this design example are derived using simplied transistor models.
The power supply rejection ratio from the negative supply can approximately be expressed as g m1 g m6 negPSRR min --------------------------------------( g ds1 + g ds4 )g ds6
(8)
which is the PSRR at low frequencies. Constraints on the CMRR and PSRR for higher frequencies can easily be introduced if required, as for example in mixed-signal circuits where high frequency clock noise, etc., is injected into the power supplies. These high frequency constraints must be implemented in the AC optimization since they depend on the poles and zeros of the OTA.
3.2 AC Constraints
In the design of an amplier it is common to have a specication on for example DC gain, unity-gain frequency, phase margin and so on. To meet the specication, constraint must be set during the AC optimization phase. A simplied model for the transfer function of a twostage operational amplier is given by A0 N ( s ) A0 ( 1 + s z1 ) A ( s ) = ----------------------------------------------------------------------------------- = ----------------(9) D(s) s s s s 1 + ---- 1 + ---- 1 + ---- 1 + ---- p 1 p 2 p 3 p 4 where A0 is the DC gain, z1 is the zero, pi are the poles, N(s) is the numerator and D(s) is the denominator. The DC gain can be expressed as g m2 g m6 A 0 = ------------------------- ------------------------g ds2 + g ds4 g ds6 + g ds7
(10)
3.1 DC Constraints
To meet different types of performance measures a set of constraints must be specied. A short description of the constraints that where used in this example is given below. A constraint is that all transistors must operate in the saturation region. To guarantee this the following wellknown relationship must be met for each transistor V GS > V T V DS V DSAT
(2)
where V DSAT , is the minimum drain source voltage for each transistor. The quiescent power dissipation of the circuit is given by P max ( V dd V ss ) ( I D5 + I D7 + I D8 )
(3)
if transistor M5 is assumed to have zero output conductance. Furthermore, the dominant pole is given by g m2 p 1 = -----------A0 C c
(11)
In, for example, analog lters where a single bias network are used for several OTAs the power dissipation in the
where C1, the parasitic capacitance at the gate of transistor M6, can be expressed as C 1 = C gs6 + C db2 + C db4 + C gd 2 + C gd 4
(13)
and CTL, the total capacitance at the output node, is given by C TL = C L + C db6 + C db7 + C dg6 + C dg7
(14)
Only Cgs and Cdb are implemented in the optimization program and therefore the AC properties will not have the same accuracy as for example in the SpectreTM simulator. The third pole is introduced in the current mirror and it is given by g m3 p 3 = ------(15) C2 where the capacitance C2 at the gate of transistor M3 is given by C 2 = C gs3 + C gs4 + C db1 + C db3 + C db4 The compensation pole is given by 1 p 4 = ----------C 1 Rc and the compensation zero is 1 z 1 = -------------------------------1 ------- R C c c g m6
(18) (17) (16)
4.1 Specication
The specication together with the simulation results is shown in Table 1. In this case a low-power specication was chosen. The objective function was to maximize the unity-gain frequency. The sizes of the transistors in the OTA is shown in Table 2.
Table 1. Specication of the two-stage OTA. Performance measure DC gain Unity-gain frequency Phase margin Slew rate negative PSRR Power dissipation Output range Common-mode range Specication Optimized circuit > 80 dB >100 MHz > 60 83.6 dB 105.5 MHz
The zero can be placed at different locations. For example far away in the right hand plane, at innity, or in the left hand plane at z 1 = 1.2 u , depending of the value of Rc. In this design example the zero is chosen to be in the left hand plane about 1.2 times the unity-gain frequency of the amplier. This position of the zero will increase the phase margin and the unity-gain frequency [11]. At the unity-gain frequency the magnitude of the gain equals unity. This can be reformulated as A 0 N ( jw u ) D ( j u ) = 0 The phase margin can be found according to M u u u u u = + atan ----- atan ----- atan ----- atan ----- atan ----(20) p1 z1 p2 p3 p4
(19)
Another performance measures of interest is the slew rate which can be approximated as I D5 I D7 SR = min ------- , --------------------- C c C c + C TL
(21)
One problem with the approach given above is to nd the poles and zeros of the circuit. Usually it is easier to derive the transfer function than factorizing the numerator and denominator into accurate expressions for the poles and the zeros. In our case it is possible to compute the unitygain frequency and the phase margin directly from the transfer function [10].
10 8
6 4 2 0 2 4 6 8
implementation of a corresponding layout generator will allow back annotation of parasitic properties introduced in the layout phase and improve the design efciency signicantly.
7. CONCLUSION
A rst version of an optimization-based device sizing program has been implemented. The program is capable to size the transistors of analog circuits, such as operational ampliers, to meet certain performance metrics. We can not guarantee that the optimizer nds the global optimum since the problem is not convex, but it can generate a set of good solutions. Recongurating the optimization program for a new circuit can be done in a reasonable short time. The program uses the complete BSIM3v3 transistor model for the DC operation points to ensure that each transistor are biased to operate in the desired operation region. Simplied small signal model for the transistors are used to decrease the AC optimization time. The designed circuits have been veried in a SpectreTM simulation to evaluate its performance.
10
20
40
60
80
100
120
solution number
6 4 2 0 2 4 6 8
REFERENCES
0 20 40 60 80 100 120
10
solution number
Figure 5. DC gain deviations between optimized and obtained. The discrepancy for the unity-gain frequency and the DC gain have been evaluated for about 100 different solutions. The results are shown in Figure 4 and Figure 5, respectively. The deviation in the unity-gain frequency can be explained by three causes. The rst one is the simplied models used for the poles and zeros of the circuit. Second, all parasitic capacitances in the small signal model for the transistor are not incorporated in the optimization program. The last cause is the simplied modelling of the capacitors used in the current version of the optimization program. The deviation in the DC gain can be explained by the use of the simplied model for the DC gain. Furthermore, the computation of the g m , g mbs , and g ds values differs a little with the one used in the simulator. These parameters are derived by taking the numerical derivative of the current with respect to V GS , V BS , and V DS respectively in the operation point.
6. FUTURE WORK
The optimization procedure used in this paper is divided into two different steps. On-going work is to integrated both optimization steps into a single step. A single optimization step makes it possible to minimize the power dissipation for the specication. Future work will include optimization of more complex performance metrics. The
[1] R.K. Brayton, G.D. Hachtel, and A.L SangiovanniVincentelli, A survey of optimization techniques for integrated-circuit design, Proc. IEEE, vol. 69, pp. 1334-1362, Oct. 1981. [2] M. G. R Degrauwe, et. al., IDAC: An interactive design tool for analog circuit design, IEEE Trans. on Computer-Aided Design, vol. 8, pp. 1247-1265, June 1989. [3] M. M. Hershenson, S.P. Boyd, and T.H. Lee, Optimal Design of a CMOS Op-Amp via Geometric Programming, IEEE Trans. Computer-Aided Design, vol. 20, pp. 1-21, Jan. 2001. [4] P. Mandal and V. Visvanathan, CMOS op-amp sizing using a geometric programming formulation,, IEEE Trans. Computer-Aided Design, vol. 20, pp. 22-28, Jan. 2001. [5] A.R. Conn, et. al., Optimization of custom MOS circuits by transistor sizing, Proc. Int. Conf. Computer-Aided Design, pp. 174-180, 1996, San Jose, USA. [6] P. Heikkil, M. Valtonen, and K. Mannersalo, CMOS op amp dimensioning using multiphase optimization, Proc. IEEE Int. Symp. Circuit Systems, pp. 167-170, 1988, Helsinki, Finland. [7] F. Leyn, W. Daems, G. Gielen, and W. Sansen, Analog circuit sizing with constraint programming modelling and minimax optimization,, Proc. Int. Symp. Circuits Systems, pp. 1500-1503, 1997, Hong Kong. [8] W. Nye, et. al., DELIGHT.SPICE: An optimization-based system for the design of integrated circuit, IEEE Trans. Computer-Aided Design, vol. 7, pp. 501-519, 1988. [9] Y. Cheng, et. al., BSIM3v3 manual (nal version), 1996. [10] R. Hgglund, E. Hjalmarsson, and L. Wanhammar, Optimization-based device sizing in analog circuit design, Proc. Swedish System-on-Chip Conf., Falkenberg, Mar. 2002. [11] D.A. Johns and K. Martin, Analog integrated circuit design, Crawfordsville, John Wiley & Sons, 1997.