Sunteți pe pagina 1din 4

Top-Down Analog Design Methodology Using Matlab and Simulink

Naveen Chandra and Gordon W. Roberts


Microelectronics And Computer Systems Laboratory, McGill University
3480 University Street, Montreal, Quebec, Canada H3A 2A7
{ naveen,roberts) @macs.ece.mcgill.ch
Tel: 1-514-398-6029. Fax: 1-514-398-4470

ABSTRACT To reduce the number of design iterations and better explore the
This paper presents a new design methodology, featuring top-down design options, it is beneficial to perform an analysis at the system
design techniques iri cor~jurictioriwith an optirnicatioii process for architectural level before starting transistor level design. This
the creatiori of arialog or nii.red signal iiitegrated circuits. As a re- allows for a feasibility analysis in which all the design
sult, the requirements of the building blocks will be specified prior considerations are treated at the highest level of abstraction. The
to the undertaking of traiisistor lewl siniulations. saving valrred de- ultimate goal is to have the low level circuit parameters dictated
sign time. This method has the advaritage that designs can be imple- by the selected architecture and desired performance.
merited with cui-rently used, arid available tools. A design featuring In section 2, the motivation for the design methodology is
a switched capacitor delta-sigma niodulator will be presented. discussed. We continue in section 3 with a design example
featuring a AZ modulator. This is followed by simulation results in
1. Introduction section 4, and wrapped up with concluding remarks in section 5.
Design of an analog system primarily consists of three obstacles:
2. Design Methodology Motivation
( 1 ) Selection of an architecture. Choosing the specifications for an analog circuit given a set of
( 2 ) Determining the specifications of the analog building blocks design objectives such as minimal area and power, is potentially a
necessary to implement the chosen architecture. very complicated and time consuming process. This task is further
made difficult by the fact that the number of specifications to deal
(3) Minimization of the effects of circuit non-idealities. with is usually very large. and vary over wide ranges from one
These are usually done separately, and more often than not, most application to another.
of the building block specifications and non-idealities are There exist tools aimed at fully automating the design process.
explored at the transistor level using circuit simulation programs. however they are limited to a small number of fixed schematics [I,
To verify the circuit with respect to changes in passive component 21. These tools, .which are not designed to be reproduced, remove
and transistor characteristics requires simulation over the full the designer from the process, and do nothing to increase the
range of these variations. Obtaining performance curves when designer’s knowledge. Furthermore, the techniques used in these
considering a single architecture, let alone multiple architectures, programs are hidden and cannot be applied to other designs.
also requires multiple simulations. Attempting to perform this
type of analysis at a low level can be problematic due to long Due to the uncertainty that arises with a change in technology. it is
simulation times. As a result, the design cycle will take too long to more amenable to consider a design process that can begin without
practically meet the market demands for the technology. In a complete dependence on a specific technology. High level
addition, the entire procedure must be carried out for each optimization geared design avoids this reliance the longest, and
architecture selected, which forces the designer to be very careful provides the designers with values for familiar parameters (i.e. g,,,
for fear of losing much valued time. and rol,, for an OTA), which provide excellent guidelines for the
construction of a device. A comparison of this method and the
currently used methods can be seen in Figure 1 .
The main focus is to provide a means of tackling the design
problem by presenting a simple to implement methodology that
mnkes use of widely used and available tools. This allows the
procedure to be implemented and reused with little difficulty or
Based
Parameters expense [3].In short, SIMULINK is used to implement the system
architecture and model non-idealities, while MATLAB [4] is used
to create routines to optimize the circuit parameters.
Values

Results
+
Results
2.1. Optimization Procedure
Optimization concerns the minimization or maximization of a
(a) (b) function. In the case of analog systems, the objective is to
Figure I Design Using (a)Prevalent (6) Proposed Methods maximize or minimize a given set of performance criterion (such
as SNDR, power. area or settling time).

V-3 19
0-7803-6685-910 1/$10.000200 I IEEE
Circuit w OPTZMIZATION
SIMULINK
SYSTEM
EVALUATION

Exit if error
low enough

Dcsired
Figure 3 Optimization Setup
Propcrtv
for setting bounds on variables. Preliminary simulations in SPICE
Figure 2 Optimization Procedure can solve this problem quickly and efficiently.
In order to do so, one must establish a trackable set of variables For example, the measurement of ro for a single transistor is a
(g,Jl,ro, Ibias or C,oad)that can be used to model the system while
trivial matter, and based on this value a range of values for rolctof
simultaneously providing a link to the performance criteria. An
an OTA can be constructed. This process is very simple, and only
illustrative flow of this procedure can be seen in Figure 2. The
need be done once for each new technol'ogy.
property measurement block detects particular attributes of the
output signal from the circuit and compares it with the desired Bounds can also be created based on the designer's preference.
behaviour. The error signal is then used to adjust the key For example, if a capacitance is desired, then upper and loRer
parameters such that the error is minimized. It is using this very bounds can be set so that no solution will contain too low or 030
simple principle that the proposed top-down methodology is high a capacitance for the designer's liking. Once bounds have
executed. been chosen for each of the key parameters, choosing the initial
conditions is not so arduous a task, as values within those bounds
2.2. Isolating the Key Parameters can be taken as a starting point.

A set of guidelines that clarify the MATLAB design space will be 2.2.2. Additional Factors
presented to carry out the design methodology. Familiarity with There are additional factors that can alter the behaviour of the
the MATLAB optimization toolbox will be assumed. system. As examples, the input and output capacitances of an
The optimizer is split into three parts, and is illustrated in Figure 3: amplifier along with the loading capacitance of the common-mode
feedback circuit can affect the settling times of integrators. Tht:se
(1) The MATLAB Optimizer Block, which receives an error value parameters can be accounted for by including them in with other
and accordingly adjusts the key parameters given to it in order to key parameters. For example, the load capacitance parameter, CL,
minimize any further error. On the first run, the optimizer begins
can be altered to reflect this. The inclusion of these additional
by using the initial conditions supplied to it for the key parameters.
factors can be left to the discretion of the designer, or can be part
(2) The SIMULINK System, with its built in nonidealities. This is of a larger iterative design procedure.
called by the optimizer so that data for property measurements can
be obtained (e.g. getting data to produce SNDR calculations) 3. EA Design Example
through transient simulations. To best explain the procedure, this methodology will be explained
using a Delta-Sigma (AX) analog to digital converter (ADC),
( 3 ) The MATLAB Evaluation Block. This block receives data which despite a high tolerance for non-idealities is still governed
from the SIMULINK System, evaluates the results based on by the limitations of its analog building blocks, especially at the
constraints (bounds) on the key parameters, and produces a value input stage where no noise-shaping has taken place.
for the error based on the designer's criteria. When the error is
low enough the process will stop and deliver its results. 3.1. Isolating the Key Parameters
As a result. for each design it is necessary to identify the key
In order to best utilize the optimization procedure, it is first
parameters along with the error measurement criteria and
necessary to isolate the key parameters that influence
constraints.
performance. For a high resolution switched-capacitor AZ
2.2. I . Initial coiiditioiis modulator. it can appear that there is a large set of parameters to
optimize. However, if one examines its building blocks carefully,
A good set of initial conditions or an adequate bounding of the
most of the factors that affect the system's performance can be
variables are needed for improved Optimization efficiency, and to
related to a small set of parameters, which will now be explored
increase the chances of obtaining a convergent solution.
3.1.1. kT/C Noise
The best set of initial conditions and bounds will usually come
from the designer, as a designer usually has a better intuitive A critical source of noise in the system, is the kT/C noise injected
understanding, and more knowledge concerning the feasibility of into the first stage integrator of the modulator. As a result, the
certain values. In addition. the knowledge of transistor parameters input capacitors must be large enough to counter the additive noise
such as ro and gn,can help to obtain all of the information needed effect that results. Therefore the first key parameter is the input

V-330
Table 1: OTA Non-idealities

Non-ideality I Result
-7
Random Zero-Order

Saturation
kT/C noisel

1 /Supply-factor
Sum1
~

Slew Rate Limiting Noise due to incomplete settling (1)


and harmonic distortion %(ti Product3

Thermal Noise 1 Added white noise Figure 4 kT/C Noise Model in SIMULI"

Table 2: Key Parameters for Modeling (1>


Kint

Cascode
1
I

Two-Stage Class A
I

I Two-Stage
ClassAB
Random ZerQ-Order Gain
Number Hold

Figure 5 OTA Noise Model in Simuliiik


number with unity standard deviation. This has been implemented
sampling capacitor of the first integrator (Cs).
in a SIMULINK, and can be seen in Figure 4.
3.1.2. OTA Parameters It is important to note that the formula used in theflu) block with
The OTA is the most critical component of the modulator, as its its input ki,,f, implements the nsn,ifc,,(t)formula. A Sirppl)~fncror
non-idealities causes an incomplete transfer of charge, leading to block is present for simulations in which it is desired to normalize
nonlinearities. The key parameters that govern its behaviour are the supply voltage. If no such normalization is desired, then
isolated and examined in Table 1. SupplyJictor should be set to I.
There are three OTA topologies commonly used in the design of 3.2.2. OTA Noise
A I modulators. From Table 3. we can see that the main sources
The input referred noise of an OTA can be modeled as follows:
for non-idealities can be related to a few OTA parameters. It is
important to note that roI refers to the output resistance of the fist- y( t ) = k.~ n r [x(t) +nOTA(t)l (2)
stage, I,,,f to the current in the second stage, C, to the load
where n O T A ( r ) = V I ?. R N ( t ) , kirlr is the integrator gain, Vn is
capacitance, and C, to the compensation capacitance.
the OTA RMS noise voltage. and RN(r) is a Gaussian random
3.2. Modeling in Siinuliitk number with unity standard deviation. The model can be seen in
Figure 5 [ 5 ] .
In order to perform behavioural simulations of AX modulators
while taking into account the non-idealities, it is necessary to 3.2.3. SC Integrator Non-Idealities
create models. A set of models have been proposed that attempt to
simulate the non-idealities in SIMULINK [5]. The following work The diagram in Figure 6, incorporates the finite gain, the
is intended as modifications and extensions to them, for the saturation levels. the finite bandwidth and the slew rate limiting of
purpose of providing reference to the key parameters in Table 2. the OTA. The formulas used here depend on the type of OTA used.
This makes them more suitable for an optimization environment. From the diagram, it can be noticed that a Slew & Bandwidth
MATLAB function block exists that interfaces with a multiplexer.
3.2.1. Switch Tlzerinal Noise
The slew and bandwidth behaviour of the OTA were modeled
The thermal noise associated with the switching due to input based on analysis in which their effects in a switched capacitor
sampling onto the first integrator can be modeled as follows: integrator are interpreted as a nonlinear gain [6]. There are three
basic conditional states that can occur: complete bandwidth
y(t) = ki,lt:k[x(tj +nswitc~i(t)l (1)

where E'
I I ~ ~ , , , ~ ~ ~=, , ( ~ ) RN(r) and where kirlf is the
limiting, complete slew rate limiting, or first slew rate followed by
bandwidth limiting. These are all mutually exclusive, and are
selected based on the present input voltage and the previous output
voltage. Due to this conditional nature, the modeling was much
integrator gain. Cs is the input sampling capacitor, k is Boltzman's easier accomplished through the use of a MATLAB function.
constant. T i s temperature, and RN(r) is a Gaussian random

V-32 1
Figure 6 Non-Ideal Integrator Model in SIMULINK
(a) Ideal (b) Nonideal

3.3. Optirnizatioii Setup


Figure 7 SNDR Plots f o r 3rd Order Modulator in SIMULINK
For this specific case, the folded cascode OTA was chosen, and as
a result, the key parameters that necessitated optimization were
Cs, gm,ro. and Ibias. Therefore, the next step is to define both the
error measurement criteria and the constraints.
3.3.1. Error Measureinent Criteria arid Coiistraiiits
It is important to note that these criteria can be as simple or as
complicated as the designer wishes. The more criteria that are
given translates into a longer optimization routine, but a final
result that is closer to the overall goal. In this case these were
formulated based on the following three criterion: Figure 8 Nonideal System in SIMULINK
( I ) Minimization of Area. Since the capacitance required in single 5. Conclusion
loop modulators usually accounts for at least half of its area, the A new design methodology for analog or mixed signal integrated
area constraint placed an emphasis on minimizing the capacitance. circuit components was presented. The benefits of the top-down
(2) Minimization of Power. The main power consumption in the optimization were presented, which featured a shorter design
modulator comes from the OTA used in the first stage. As a result, cycle, along with ease of implementation and reproducibility. The
constraints were placed on the bias current in order to place an design of a A 2 modulator was presented to illustrate the benefits
upper bound on power consumption by minimizing the current. of this methodology.

( 3 ) Maximization of SNDR. Since SNDR is a dominant measure Acknowledgments


of a modulator’s performance, lower limits were placed on its This work was supported by NSERC, the Canadian Microelectron-
value, with an emphasis placed on its maximization. The ics Corporation, and Micronet. a Canadian network of centers of e.K-
SIMULINK system was used in order to get the data for the cellence dealing with microelectronic devices, circuits, and systems.
SNDR measurements.
4. Simulation Results
References
[I ] M.Degrauwe et al. “IDAC: An interactive Design Tool for Analog
This optimization procedure was applied to the design of a 16 bit, CMOS Circuits”.IEEE Joc1171~11of Solid-Stnrc Cirniits. vo1.23. pp. 1 106-
3rd order AX ADC, in which the primary objective was to design a 11 14. Dec. 1987.
lowpass, audioband, single bit, modulator. with an oversampling
[2] E Medeiro et al. “A Vertically Integrated Tool for Automated Design of
ratio of 128. XA Modulators”. IEEE Jour1101of Solid-Smre Circuits,~01.30.no.?.
In the ideal case the SIMULINK simulation of this modulator pp.762-772. July 1995.
yields peak SNDR of 105.72 dB, and a dynamic range of I12 dB, [3]T.E. Dwan. and T.E. Hechert. “IntroducingSIMULINK into Systems
which can be seen in Figure 7(a). After the addition of the models Engineering Curriculum”. Proc. of Frorzriers iiz €d. Cor$. 23rd Annual,
that were presented in section 3, the SIMULINK diagram was pp.627-671. 1993.
constructed (Figure 8). and the optimization routine was run. [4] A. Grace. Optirriirntiori Toolbo.xfoi use with MATLAB. Mathworks Inc..
The process resulted in feasible design values (g, = 3.3 m A N , ro 1990.
= 960 162. Ibias = 450 PA, and C s = 4.5 pF, for a load of 8.2 pF). [5] S . Brigati et al. “Modeling Sigma-Delta Modulator Non-Idealities in
SIMULINK’.Proc. oftlie IEEE S y r i p . 011 Circ. mid Sy., vol.?. pp. 384-
An SNDR curve which reflected the modeled nonidealities and 387. ISCAS ‘99.
can be seen in Figure 7(b). The SIMULINK simulation of the [6] E Medeiro. et al. “Modeling Ophip Induced Hamionic Distortion for
nonideal modulator yields peak SNDR of 99.45 dB, and a Switched-Capacitor U Modulator Design”. P roc. of rlic I€€€ h f .
dynamic range of 102 dB. A chip has been sent for fabrication in a SVr~ip.0 1 1 Cirr. ( i i i d Sys.. vo1.5. pp.445-US. London. UK. June 1994.
0.25 pm process.

v-323

S-ar putea să vă placă și