Professional Documents
Culture Documents
LiU-Tek-Lic-2003:30
Department of Electrical Engineering
Linköpings universitet, SE-581 83 Linköping, Sweden
Linköping, December 2003
Studies on Design Automation of Analog Circuits – The Design Flow
i
ii
ACKNOWLEDGEMENTS
First, I would like to thank my supervisor, Professor Lars Wanhammar, for his
support, valuable discussions, and granting me the opportunity to pursue this
work.
Further, I would like to direct a special gratitude to my co-worker and friend,
M.Sc. Robert Hägglund, for always supporting the project and for sharing his
skills in the field of analog circuit design. Also, I would like to thank M.Sc.
Jonas Carlsson, Dr. Per Löwenborg, and Tekn. Lic. Henrik Ohlsson for proof-
reading this thesis.
A big thanks goes out to the rest of the staff at Electronics Systems for their sup-
port and friendship.
The work was financially supported by the Swedish Foundation for Strategic
Research (SSF).
Finally, I would like to thank my family, friends and my beautiful girlfriend
Rebecca for their support and love.
iii
iv
TABLE OF CONTENTS
I. INTRODUCTION ........................................................................................... 1
1.1. Analog Integrated Circuits ............................................................. 2
1.2. The Analog Design Flow ............................................................... 3
1.2.1. The Manual Design Methodology.............................................. 4
Topology section .................................................................... 5
Device Sizing ......................................................................... 6
Layout Generation.................................................................. 7
1.3. Challenges in Analog Design ......................................................... 7
1.4. Motivation ...................................................................................... 10
1.4.1. Goals in Analog Design Automation ......................................... 11
1.5. Scope of this Thesis........................................................................ 11
1.6. Publications Related to this Thesis................................................. 12
v
Circuit Area, Power Consumption, and Yield ........................24
2.3. Circuit Layout .................................................................................25
Interconnect Parasitics ............................................................26
Process Tolerances..................................................................26
Thermal Effects.......................................................................28
Substrate Coupling..................................................................28
2.4. Trade-Offs in Analog Amplifier Design .........................................29
vi
NEOLINEAR..........................................................................51
ANALOG DESIGN AUTOMATION ....................................51
BARCELONA DESIGN ........................................................51
ANASIFT................................................................................52
3.5. Summary of Existing Approaches ..................................................52
3.5.1. The Knowledge-Based vs. the Optimization-Based Approach ..56
3.5.2. Comparison of Optimization-Based Approaches .......................57
Preparatory Effort ...................................................................57
Execution Time .......................................................................58
Generality and Complexity .....................................................59
Accuracy .................................................................................61
Conclusion ..............................................................................61
vii
Chip Area ................................................................................76
4.4. The Cost Function ...........................................................................77
4.5. Optimization Method ......................................................................78
4.6. Distributing the Optimization Tasks ...............................................79
4.7. Device Models ................................................................................80
REFERENCES ....................................................................................................119
viii
ABBRIVATIONS
AI artificial intelligence
AMD advanced micro devices
AMS austrian micro systems
BiCMOS bipolar complementary metal-oxide semiconductor
CAD computer aided design
CMOS complementary metal-oxide semiconductor
CMR common-mode range
CMRR common-mode rejection ratio
CPU central processing unit
GA genetic algorithms
GP geometrical programming
GUI graphical user interface
IP intellectual property
KCL Kirchhoff’s current law
MNA modified nodal analysis
OR output range
OTA operational transconductance amplifier
Pcell parametrized cell
PSRR power supply rejection ratio
RF radio frequency
SA simulated annealing
SC switched capacitor
ix
SNR signal-to-noise-ratio
SNDR signal-to-noise-plus-distortion-ratio
SFDR spurious-free dynamic range
SoC system-on-chip
SQP sequential quadratic programming
TCP/IP Transfer Control Protocol/Internet Protocol
THD total harmonic distortion
UGBW unity-gain bandwidth
VHDL very high speed integrated circuits hardware description lan-
guage
x
CHAPTER I
INTRODUCTION
In the last few decades we have experienced a revolution in the field of electron-
ics. Going from one single transistor to multi million transistor circuits have pro-
vided us with the functionality that past generations could only dream of. The
level of integration will continue to increase and the buzzword of today is “ Sys-
tem-on-chip” (SoC).
With the rising level of integration the complexity of integrated circuits
increases. More and more functionality can be added as new process technolo-
gies evolves. With the increasing complexity the use of CAD tools that supports
design on a hierarchy of abstractions becomes more important. For digital circuit
design there exist a large variety of tools and design methodologies that effi-
ciently supports designs using several levels of abstraction. This is required in
order to keep in phase with the new capabilities offered by technology.
For analog circuit design the situation is different. The level of abstraction is still
kept at very low levels and there are not that many CAD tools available. The lack
of a structured design flow is one of the major problems in analog circuit design.
This becomes obvious when analog and digital circuits are put on the same chip,
as in mixed-signal SoCs. In general, the digital parts account for about 90% of an
integrated circuit while only 10% is analog. However, most of the time and effort
are spent on the analog parts [62].
1
Introduction
2
The Analog Design Flow
90
80
70
Mixed−signal circuits [%]
60
50
40
30
20
10
circuits are, and will remain, an important component in many integrated cir-
cuits.
3
Introduction
Analog
Function
Architectural Simulation
Design &
validation
Simulation
Cell Design &
validation
Simulation
Cell Layout &
validation
Ba
ck Simulation
tra System
ck &
ing Assembly
an validation
dr
ed
esi
gn
Fabrication
In the next step these cells are realized by designing the low-level building
blocks that comply with the previously derived performance specification. The
cell design step include choosing between several possible realizations in order
to implement the functionality in the most efficient way.
During the layout phase the geometries for the functional blocks is determined.
Finally the building blocks are assembled to implement the desired functionality.
Throughout the design process excessive simulations and validation steps are
required. If the circuit fail to meet the specification at some level the proceeding
design steps must be revised. This may include backtracking several steps in the
design process.
In this work we concentrate on cell design and cell layout. In the next section the
aspects of the traditional, manual methodology, concerning these parts is dis-
cussed in more detail
4
The Analog Design Flow
Circuit specification
Device sizing
Iterations
Iterations
Simulation
Performance evaluation
Iterations
Circuit layout
Iterations
Extraction and simulation
Performance evaluation
Circuit
Figure 1.3 Flow graph of the cell-level manual analog circuit design.
Topology section
Based on these requirements the designer have to choose a suitable circuit topol-
ogy that is able to meet the specification. Usually there exists several topologies
that implements a particular functionality.
In order to select the best topology for a specific task the designer must rely on
his or hers knowledge in order to select the candidate with the best prospect of
finally meeting the specification. Even though the number of possible candidates
could be reduced by qualitative reasoning there would still be several promising
topologies left. The designer have to decide upon one of them based on experi-
ence, simple hand calculations and rules of thumb.
Also, the designers choice may be influenced by other aspects than the actual
performance of the circuit. If time limits are tight, properties such as the circuit
complexity, how familiar the designer is with the topology, and so on, may be
given some consideration even though it may not favour a good outcome of the
design process.
5
Introduction
Device Sizing
In the component sizing step, the size of all transistors, resistors, capacitors, and
biasing voltages and currents are determined. These parameters are referred to as
the design parameters. Determining the values of the design parameters is a com-
plicated task since the relation between the parameters and the resulting perfor-
mance is a nonlinear function.
To get the approximative sizes of the components simplified hand-calculation
models may be used. The formulas are usually based on simple approximations
of the transistor characteristics that may differ significantly from the real
devices. The designers previous experience with analog circuit design may give
additional directions on what choices to make. Rules of thumb are also com-
monly used in order to reduce the large design space.
In order to evaluate the performance of the initial sizing of the devices a circuit
simulator, such as HSPICE [28] or Spectre [9], is used. A test bench is cre-
ated where a set of suitable input signals are applied to the circuit in order to
extract the performance metrics of interest. Most certainly the performance spec-
ification is not met at the beginning, and, thus, the device sizes must be adjusted.
The tools available to aid the designer when adjusting the design parameters are
not efficient. Many circuit simulator offers the ability to sweep the value of the
design parameters and determine their impact on the overall performance.
Sweeping a large number of design parameters are, however, costly in terms of
computational time. Thus, the search is, in practice, limited in the number of
design parameters that can be swept.
Some simulators, e.g., Spectre, offers a simple form of performance optimiza-
tion. Typically a few design parameters may be adjusted using optimization in
order to fine-tune a set of performance metrics. However, in practice these opti-
mization routines are only capable of handling a small number of design param-
eters. It also requires a good initial starting point. Thus, only minor
improvements are achieved. The time required to perform the optimization task
is also long, since the circuit simulator must be called repeatedly.
If no feasible solution is found after performing several iterations with parameter
adjustment and simulation the design process have failed and the designer have
to go back and select a different circuit topology. Thus, it is, important that a
suitable topology is chosen at the beginning of the design process. In a worst
case scenario the specification for a particular cell have been set to tight, if this
occurs the overall performance specification must be revisited.
6
Challenges in Analog Design
Layout Generation
Layout generation is a time consuming part in analog design. In the layout phase,
the device sizes from the previous design step are mapped onto a physical imple-
mentation.
The tools available at this level are, traditionally, basic module generators, tools
for checking deign rules, and the correctness of the interconnect. Even though
the situation is slightly better than for the device sizing step the task of generat-
ing a full-custom layout for a cell is a difficult task. While the goal, in most
cases, is to make the design as dense as possible other aspects such as the impact
of parasitic effects on the final circuit performance, matching conditions, and
yield degradation are also important.
In order to determine the layout-induced performance-shift an extraction tool is
used. Given the geometries of the layout, the tool extract the interconnect para-
sitics of the circuit. In order to meet the performance specification the designer
have to consider the degrading effect of the layout phase during the previous
step. Thus, some extra design margins have to be added.
If the margin is made to small, changes in the layout as well as resizing of the
devices might have to be performed. Such tasks are, of course, time consuming
and even a small change in the size of some devices might require large changes
in the layout. On the other hand, if the design margin is made to large, the pen-
alty will be, e.g., increased power consumption and larger chip area.
7
Introduction
Specification met
However, since the performance metric are nonlinear functions of the design
parameters the chance of finding the global, or even a local minima is small. Fur-
thermore, due to the time involved, only a small fraction of the design space may
be explored using manual design.
8
Challenges in Analog Design
In order to fully explore the potential of the process technology several circuit
topologies might have to be investigated. Due to the cost of designing several
candidate circuits this is often overlooked.
Yield is an important factor when considering the cost of the chip. Usually, man-
ual design is carried out using nominal process parameters. When the device
sizes have been determined the design is simulated using worst-case process
parameters in order to measure the effect of process variations. The worst-case
design parameters are derived by the process vendor in order to simulate process
corners. Also, Monte Carlo simulations, where design and process parameters
are varied according to a statistical distributions, are used for this purpose.
These methods provides a way of predicting the circuit yield. However, the
Monte Carlo simulations are time consuming. Also when a simulation fails there
are no way of identifying what design parameters is causing the failure. The use
of multiple sets of worst-case parameters will produce a large number of simula-
tion results to take into account, further complicating the design process. conse-
quently these approaches are only used at the end of the design procedure to
validate the performance. The actual device sizing is carried out using nominal
process parameters. Adjustments to the design parameters are usually required in
order for the circuit to work under several sets of worst-case parameters.
During the layout phase many effects that will increase the yield and ensure good
circuit behavior must be taken under consideration. The number of constraints
on an analog layout can be huge and it is hard for a human designer to keep them
in mind and make the appropriate choices. Also, the number of layout solutions
that can be tried out is limited by the time consuming task of producing them.
When migrating from one process technology to the next, the process parameters
determining the performance of the circuit are changed. Also, layout rules, such
as minimum spacing rules and so on, change. This usually require a complete
redesign of the circuit, both with respect to the sizing and the layout. Thus, the
level of reuse of analog circuits is low.
To conclude the following drawbacks of the manual design methodology are
identified:
z Time consuming and therefore costly.
z Insufficient exploration of available design space, i.e., low utilization of
existing process technology.
z Hard to reuse previous designs.
z High risk of errors being introduced.
z Yield is not taken into account during the design process.
9
Introduction
1.4 Motivation
It is clear from the previous section that the manual analog design flow suffers
from serious problems. The situation becomes more critical when entering the
era of SoC. Due to the high level of automation and abstraction, digital design
manage to keep in phase with the rapid change in process technology and the
increasing demands on a short time-to-market. For analog design the situation is
completely different, since the level of automation is low.
The main tool used by analog designers today is the circuit simulator. Apart from
this and a few surrounding tools such as layout editors and validation utilities the
design process involves little automation. Thus, the analog design process of
today is based on manual efforts.
There are numerous reasons for this situation. The high level of automation in
digital design may partly depend on the fact that the digital design flow is con-
sidered more suited for automation. For example, a digital functionality can be
represented by Boolean expression and programing languages such as VHDL.
Further, in order to implement a logical function we require only a few logical
building blocks. Thus standard cell libraries containing only a limited number of
blocks can cover a large portion of the functionality in digital circuitry.
In analog design the number of performance specifications to take into account is
higher. Thus, the approach with standard cells is not feasible. Making libraries
with analog standard cells would require an enormous number of cells in order to
cover the range of specifications appearing in analog design.
One reason for the shortcomings of analog design automation tools is the lack of
a structured design flow. Despite the systematic flow shown in Fig. 1.2 the pro-
cess of analog design involves taking all design steps into account concurrently.
For example, the designer must consider layout effects when choosing the topol-
ogy. This is due to that a decision taken at one level of the design flow will effect
the design on several other levels. This complicated design flow have led to that
there have been little success in quantifying the work of an experienced designer.
Also, the complicated relations between the design parameters and the resulting
performance in analog design poses a challenging task.
Yet another important factor is that the market for digital circuits is much larger
than for analog circuits. Thus, the interests in the research areas involved with
analog design automation have been lower than for the digital counterpart. How-
ever, with the recent interest in mixed-signal chips this ought to change.
10
Scope of this Thesis
11
Introduction
such as layout generation are also addressed. These tools are, however, in their
infancy and much work still remains.
The work have been carried out in close collaboration with Robert Hägglund
who is also working in the same research project. Most of the progress within the
project have been the result of joint efforts.
In this thesis the emphasis, beside the design tool in general, are on layout gener-
ation with parasitic feedback and the exploration of trade-offs within analog
design. However, some important parts of the device sizing tool, such as the gen-
eration of symbolic expressions required to compute noise and distortion are dis-
cussed in more detail by Robert Hägglund.
The outline of the work is as follows. In chapter 2 an overview of performance
metrics and design issues in analog amplifier design is given. Chapter 3 dis-
cusses the current state of analog design automation. The emphasis in this chap-
ter are on automated device sizing and several existing tools are reviewed. In
chapter 4 our proposed design platform is discussed. A more detailed description
of the device sizing tool is also given. The layout generation and parasitic feed-
back tools are discussed in chapter 5 together with a design example. Chapter 6
introduces the design space exploration tool used to identify trade-offs in analog
amplifier design. An example, involving the comparison of three different ampli-
fier structures, is given.
12
Publications Related to this Thesis
13
Introduction
14
CHAPTER II
PERFORMANCE METRICS AND DESIGN ISSUES
FOR ANALOG AMPLIFIERS
In this chapter the basics of analog circuit design are discussed. The fundamental
small-signal models and hand-calculation formulas are presented. Also, some
important performance metrics in analog design are discussed. The performance
metrics of interest depends on the circuit, in this case we focus on analog
amplifiers. However, some of these measures are commonly used in other ana-
log circuits as well. At the end of the chapter analog layout is briefly discussed.
Some of the common techniques used to improve the performance during this
phase are also presented.
15
Performance Metrics and Design Issues for Analog Amplifiers
The low power consumption and the fact that the manufacturing cost of CMOS
circuits is low compared to, e.g., bipolar circuits, has made CMOS the most pop-
ular process technology for digital circuits.
Even though the bipolar transistors can work at higher frequencies, the proper-
ties discussed above and the fact that analog and digital circuits are used on the
same chip have made the CMOS process important for analog design as well.
Special processes, such as BiCMOS, combine the bipolar technology with the
CMOS technology. In this way the designer can use bipolar devices for perfor-
mance-critical analog parts and CMOS for digital parts on the same chip.
However, in this work the process technology considered is standard CMOS.
Since our target is analog amplifiers working at baseband frequencies this pro-
cess technology is sufficient in most cases.
Large-Signal Model
The symbols of the NMOS and PMOS transistors are shown in Fig. 2.1. These
symbols are the four-terminal version of the transistor. In this simple model the
transistors are assumed to have three operating regions. Here the equations for
the NMOS transistor are given. However, the corresponding relations and equa-
tions for the PMOS transistor are similar. For the NMOS transistor the cut-off,
linear, and saturated regions are defined by the following relations
cut-off VDS < V GS – V TH (2.1)
linear V DS ≤ V GS – V TH and VGS > V TH (2.2)
saturated V DS ≥ V GS – V TH and V GS > V TH (2.3)
Here VTH, the threshold voltage, is the minimum gate to channel voltage
required in order to create a conducting channel between the drain and source in
the transistor. The threshold voltage is modelled by
V TH = V TH0 + γ ( 2φ F – V BS – 2φ F ) (2.4)
16
The Process Technology
VD VS
+ + + +
ID
VSG VSB
VB - - VB
VG VDS VG VSD
+ +
VBS
VGS - ID -
- -
VS VD
(a) (b)
Figure 2.1 Voltage and current definitions for four-terminal NMOS (a) and PMOS (b)
transistors.
where VTH0 is the threshold voltage when VBS is zero. The additional terms are
results of the body-effect. The body-effect is an increase in the threshold voltage
due to the voltage difference between the substrate (bulk) and the source of the
transistor. In (2.4) φ F is the difference between the Fermi potential at the gate
and the Fermi potential at the substrate. γ is the body-constant determined by the
process parameters.
Depending on the operating region the current through the transistor, ID, is given
by
cut-off I D ≈ 0 (2.5)
V2
linear I D = µ n Cox ----- ( VGS – V TH )VDS – ---------
DS
W
(2.6)
L 2
µ C
n ox W
- ----- ( V GS – V TH ) 2 [ 1 + λV DS ]
saturated I D = -------------- (2.7)
2 L
where µn is the mobility of electrons near the silicon surface for the NMOS tran-
sistor, Cox is the gate capacitance per unit area, λ is the output impedance con-
stant, and W and L are the width and channel length of the transistor.
In analog amplifiers the transistors are usually biased to work in the saturated
region. The reason for this is that when a transistor operates in that region the
current is controlled mainly by the gate-source voltage. However, as stated in
(2.7) the nonzero λ will introduce an unwanted dependency on the drain-source
voltage as well.
The concept, used in high accuracy models such as BSIM3v3 [36, 10], EKV [14]
or Phillips MOS level 9 [64], is similar to the simplified models shown here.
17
Performance Metrics and Design Issues for Analog Amplifiers
However, the expressions for computing, e.g., the drain current of the transistor
include many more effects. Thus, the expressions used within these models are
not suited for hand calculations.
Small-Signal Model
For large signal variations the large-signal model can be used to calculate the
behavior of the circuit. However, if only small signal variations are considered
the nonlinear large-signal model can be linearized. The small-signal model is a
linearization of the large-signal model around the operating point of the circuit.
This model is only valid for small perturbations from the operating point. The
models can be used in order to simplify the calculation of, e.g., the frequency
dependent properties of the circuit.
Gate Drain
g m V gs g ds g mbs V bs
Source
Figure 2.2 Simple small-signal model of a MOS transistor.
A simple small-signal model for the NMOS transistor is shown in Fig. 2.2. Here
gm is the transconductance and gds is the output conductance. The small-signal
parameters are derived using the following expressions:
∂I D 1 W
- = --- µ n C ox ----- ( V GS – V TH ) 2 λ
g ds = ----------- (2.8)
∂V DS 2 L
∂I D W
- = µ n C ox ----- ( VGS – V TH )
g m = ----------- (2.9)
∂V GS L
∂I D ∂V TH γ
g mbs = ------------ ------------ = g m -------------------------------- = ηgm (2.10)
∂V BS ∂V BS 2 2φ F + V BS
As in the case with the large-signal model more accurate small-signal transistor
models take into account several additional parameters. The small-signal model
used within the BSIM3v3 model will be presented in Sec. 4.7.
18
Performance Metrics in Amplifier Design
A 0 1 + ---- s … 1 + ---- s
z1 z n
A ( s ) = ----------------------------------------------------
- (2.11)
1 + ---- s- … 1 + ----- s-
p p
1 m
Here z denotes a zero and p denotes a pole. A0 is the DC gain, i.e., the gain when
s is equal to zero.
Further, the output signal of a differential amplifier can be written as
Vp ( s ) + Vp ( s )
V out ( s ) = A CM ( s ) --------------------------------- + A DM ( s ) [ V p ( s ) – V n ( s ) ] (2.12)
2
where ACM(s) is the common mode gain and ADM(s) is the differential gain.
Vp(s) is the positive input signal while Vn(s) is the negative input signal.
19
Performance Metrics and Design Issues for Analog Amplifiers
A0 80
60
Magnitude [dB]
40
20
0
−20
−40
−60
−80
0 1 2 3 4 5 6 7 8
10 10 10 10 10 10 10 10 10
Frequency [rad/s] ωu
0
Phase [degrees]
−45
−90
−135 ϕm
−180
0 1 2 3 4 5 6 7 8
10 10 10 10 10 10 10 10 10
Frequency [rad/s]
Phase Margin
The phase margin,ϕm, is defined as
ϕ m = arg ( βA ( jω u ) ) – ( – π ) (2.14)
here β is the feedback factor in a closed-loop amplifier configuration. The phase
margin is a stability measure for the amplifier.
20
Performance Metrics in Amplifier Design
A DM ( jω )
PSRRp ( jω ) = 20 log ------------------------- (2.15)
A VDD ( jω )
A DM ( jω )
PSRRn ( jω ) = 20 log ----------------------- (2.16)
A VSS ( jω )
where AVDD is the magnitude of the frequency response from the positive power
supply to the output terminal and AVSS is the magnitude of the frequency
response from the negative power supply to the output terminal.
the gain of the common-mode signal is compared to gain of the differential sig-
nal. In the ideal case the CMRR is infinitely large, i.e., the common-mode signal
is not amplified of at all.
Slew Rate
The slew rate is defined as the maximum slope at an amplifiers output.
dV out
SR = max ------------- (2.18)
dt
It is measured by applying a large step to the input terminal and measure the
slope at the output terminal. When slew-rate limitation occurs the amplifier will
not act as a linear system. For example, if a large step is applied on the amplifiers
input terminal, the output signal is a linear ramp with a constant slope (the SR).
Distortion
When, e.g., a sinusoidal signal is used as the input to an amplifier the output sig-
nal, in the ideal case, is a linear amplification of that signal. However, in reality
this is not the case. Instead the shape of the output signal deviates from that at its
input. This is due to that nonlinearities in the amplifier distort the signal.
There are several types of nonlinearities in analog amplifiers. First of all, the cir-
cuit elements, i.e., transistors, capacitors, and resistors are nonlinear elements.
Secondly, other effects such as slew rate limitation causes nonlinear behavior.
Distortion appears as unwanted frequency components at the circuits output.
One way of measuring the harmonic distortion, i.e., the effect of higher-order
harmonics, is by measuring the total harmonic distortion (THD). THD, relates
21
Performance Metrics and Design Issues for Analog Amplifiers
SFDR
3dB
Fundamental
2nd 3rd
harmonic harmonic
Noise floor
input
IIP2 IIP3 power
level
Figure 2.4 Intercept points and spurious-free dynamic range.
the fundamental and the higher order harmonics. It is calculated by summing the
higher order harmonics and comparing them to the fundamental according to
∞
∑ Pn
n=2
THD = 10 log ----------------------------
- (2.19)
P fundamental
where Pn is the power of the nth harmonic while Pfundamental is the power of the
fundamental.
Other performance metrics for linearity are harmonic distortion, compression
and intercept points, and inter modulation distortion [67]. The concept of inter-
cept points is illustrated in the Fig. 2.4.
The intercept points are computed by extrapolating the curves of the fundamen-
tal, second and third harmonic according to Fig. 2.4. Since the second harmonic
increases quadratically, it will intersect with the fundamental at some point, IIP2.
The higher the interception is located, the better is the suppression of the har-
22
Performance Metrics in Amplifier Design
Noise
In MOSFETs there are mainly two types of noise sources, thermal and flicker
noise (1/f noise) [31]. Thermal noise arise in resistors and is the result of random
motions of electrons due to thermal effects. Flicker noise is believed to be the
result of charges being “trapped” in the device for various reasons and later
released. Unlike thermal noise flicker noise is frequency dependent and
decreases inversely with the frequency.
The noise spectral density at the circuit output is computed by summarizing the
contribution of all independent noise sources in the circuit according to
N
S out ( ω ) = ∑ Sn Hn ( ω ) 2 (2.20)
n=1
Here N is the number of noise sources, Si is the spectral density of the noise
source, and Hn is the magnitude response from the noise source to the output of
the circuit. By integrating the noise over a frequency band the noise power is
obtained.
A common performance metric for noise is the signal-to-noise-ratio (SNR)
defined by
P signal
SNR = 10 log ---------------- (2.21)
P noise
where the Psignal is the signal power and Pnoise is the noise power. It is defined
for a specific frequency range over which the corresponding signal and noise
power is integrated.
Other measures include the combined effect of noise and distortion. The signal-
to-noise plus distortion ratio, SNDR, measures the degradation due to the com-
bined effect of noise and distortion within a frequency band. The SNDR is
defined as the ratio of the signal power of the fundamental to the sum of the
power of all of the harmonic, all of the aliased harmonics, and all of the noise.
P signal
SNDR = 10 log ------------------------------------
∞
- (2.22)
Pnoise + ∑ Pn
n=2
Another metric, indicated in Fig. 2.4, is the spurious-free dynamic range, SFDR.
SFDR is defined as the dynamic range where the signal is (fairly) unaffected by
23
Performance Metrics and Design Issues for Analog Amplifiers
noise and distortion in a specific frequency band. While the noise floor sets a
lower limit on the signal power the distortion implies an upper limit.
Settling time
The settling time denotes the time required for the output signal of an amplifier
to adjust when a step is applied to the input. Depending on the magnitude of the
step, the settling can be linear or nonlinear. For a small step, only the bandwidth
of the amplifier limits the settling time. In this case the settling is linear. The lin-
ear settling determines an overall upper limit of the settling time. However, when
a large step is applied to the input terminal, the amplifier experience slew rate
limitation due to the finite current that can be supplied to the capacitive nodes. In
this case the settling is nonlinear.
The settling is computed by applying a step to the amplifiers input terminal and
measure the time until the output signal is within a certain range of its final value
as shown in Fig. 2.5. The exact range may vary depending on the application of
the amplifier.
24
Circuit Layout
Vin
Vout
Upper tolerance level
Settling time
Figure 2.5 Measurement of the settling time from the circuit step response.
fications. Maximizing the yield directly effects the cost of manufacturing a chip.
Designing for high yield is therefore important.
Further, the yield is partly depending on the chip area since the number of pro-
cess errors is approximately the same per unit area. Thus, a lower percentage of
the chips will be affected by these errors if each chip is made smaller.
25
Performance Metrics and Design Issues for Analog Amplifiers
Interconnect Parasitics
Interconnect parasitics appear due to that the wires not only form a physical con-
nection in the circuit but add unwanted, parasitic, elements such as capacitors,
resistors, and inductors to the circuit. This effect the circuit performance.
The extra load introduced by the interconnect parasitics, may, affect performance
metrics such as the unity-gain frequency and the phase margin. Further, if the
parasitic load is large in comparison to the load at the amplifiers output, the slew
rate may be reduced.
Another problem is the effect of cross coupling created by interconnect parasit-
ics. Cross coupling appears when two wires are placed closely together and a
parasitic connection is created. If one of the wires carries a sensitive analog sig-
nal while the other carries noisy signal, e.g., a clock signal, noise will be intro-
duced in the sensitive signal. An example would be the amplifier input and the
power supply voltage. If these two are heavily coupled, the PSRR will be
reduced.
Process Tolerances
The process tolerances when manufacturing an integrated circuit are large. In the
case of on-chip resistors, chip-to-chip variations of 30% are reported [23]. Other
devices, such as capacitors and transistors, also experience large variations.
In order to cope with large chip-to-chip variations, analog functions tend to
depend on the ratio between two or several components rather than their absolute
value. In, e.g., switched capacitor (SC) filters the frequency characteristics are
determined by the clock frequency and the ratio of capacitance values. Since all
components on the same chip will experience approximately the same process
variations, ratios between components of the same type are preserved.
There are, however, some variations even between devices on the same chip.
These variations are called mismatch and is defined in [50] as “the process that
causes process-induced, time-independent random variations in physical quanti-
ties of identically designed devices”. Keeping the components well matched is
therefor fundamental when designing high-performance circuits.
The reason for mismatch is that the devices experience different process biases,
caused by systematic and random variations during the manufacturing process.
The details of mismatch will not discuss further here. An overview of the process
dependent effects causing mismatch is given in [23].
A set of layout rules to improve matching is reported in [65]. A short summary
of the rules, generally accepted by analog designers, are given here.
26
Circuit Layout
C3 C1 C2 C3
C2 C2 C1 C1 Center of mass
C1 C1 C2 C2
C3 C2 C1 C3
A set of matched components should use the same structure in order for all
matched devices to experience the same process bias. If, for example, two
matched capacitors are implemented as a poly-poly capacitor and a metal-metal
capacitor, the process bias will affect the capacitive value of these components
differently.
Common-centroid placement should be applied to all matched devices in order
to reduce the effect of first-order parameter variations across the chip. The prin-
ciple of common centroid is shown in Fig. 2.6. Here three capacitors are placed
using the common-centroid technique. In order to reduce gradient errors the
capacitors are divided into a set of unit-size elements and placed in such a fash-
ion that their center of mass coincide.
The matched device should experience the same surrounding structures. This is
to avoid various end effects that appear during manufacturing of the chip. For
example in Fig. 2.6 the transistors in the middle of the capacitor array are sur-
rounded by other capacitors in all directions. The capacitors at the edge of the
array will however only have a neighboring capacitor at two or three sides. In
27
Performance Metrics and Design Issues for Analog Amplifiers
order to reduce the impact of edge effects additional dummy elements may be
placed at the edge of the array in order to simulate a neighboring capacitor.
The principle with common-centroid placement and dummy element insertion is
applicable not only to capacitors but widely used for transistors and resistors as
well.
The devices should experience the same temperature shifts. This can be accom-
plished by placing the matched devices so that they are equally influenced by
high-power devices present on the chip.
All devices should have the same shape and size. For example two matched
capacitors should have the same aspect ratio, and matched transistors should
have the same length and width and use the same number of fingers.
The distance between the devices should be minimized in order to reduce the
effect of fluctuations in the physical parameters across the chip. By placing the
components close, the local correlation between these parameters can be
exploited.
All devices should be oriented in the same way in order to reduce the effects of
non-symmetries in the process parameters due to anisotropic process steps.
Especially the source and drain of transistors should be oriented in the same way
in order to facilitate strictly parallel current flows.
To reduce edge effects, minimal sizes for the devices should be avoided. In this
way the relative influence of edge variations are reduced.
Thermal Effects
Due to the miniaturization of integrated circuits the power densities on a chip
might be high in some areas. This is especially true for circuits with, e.g., high-
frequency digital processor cores. High-power densities means high tempera-
tures which will affect the performance of the circuit elements [35].
Temperature gradients on a chip may cause, e.g., the threshold voltage and the
transconductance of a MOS transistor to change. Also, the long term effect with
increasing temperatures on chip is a problem since the failure rate increases with
a factor of two for every 10 ° C rise in temperature [35].
To reduce the temperature dependent errors, sensitive parts must be well sepa-
rated from power intensive circuits. If this is not possible, matched components
must be placed so that they experience a similar shift in temperature.
Substrate Coupling
When analog and digital circuits are integrated on the same chip, the effect of
substrate coupling is a serious problem. The effect appears due to the coupling of
28
Trade-Offs in Analog Amplifier Design
noise from the digital circuits, which can be very noisy, to the noise sensitive
analog parts through the substrate.
Substrate coupling is the effect of limited isolation between analog and digital
circuits on the same chip provided by the substrate. Due to this currents are flow-
ing between the analog and the digital circuits throughout the substrate.
There are two methods commonly used to reduce substrate coupling in analog
layout. The first is to increase the distance between the noise source and the sen-
sitive circuits. This is however only effective if a high impedance substrate is
used. The second method is to use guard rings to isolate the sensitive parts from
the rest of the circuit. More details on substrate coupling may be found in [61].
All of the effects discussed above are hard to take into account during the layout
phase and may, if the design margins from the previous sizing phase are not large
enough, cause the circuit to violate the performance specification. If this occurs
changes must be made to the layout and/or the device sizes. Even small changes
in a compact layout can result in a complete redesign.
29
Performance Metrics and Design Issues for Analog Amplifiers
Noise Linearity
Power Gain
consumption
Voltage
Speed swings
Figure 2.7 Trade-offs in analog amplifier design.
30
CHAPTER III
COMPUTER AIDED DESIGN OF
ANALOG CIRCUITS
31
Computer Aided Design of Analog Circuits
Performance specification
¤
Topology selection
32/0.7 32/0.7
64/0.7
Layout generation
Figure 3.1 Typical design path for an analog design automation platform.
of the steps in the flow. By automating the design flow the design times of the
manual design methodology can be reduced from weeks to days or even hours
[24, 58].
Most of the design tools available do not cover the complete design process.
Instead they target a specific part of the design flow, such as the topology selec-
tion and device sizing while there are other tools that address the task of generat-
ing a circuit layout.
32
The Automated Design Flow
Also, the tasks are more or less loosely coupled. Most tools do not take into
account, the effect of design decisions taken at different levels in the design flow.
For example, the layout generation tool do not communicate with the device siz-
ing tool in order to get information on, e.g., current densities that could be used
to predict the required width of the wires.
33
Computer Aided Design of Analog Circuits
34
The Knowledge-Based Approach
35
Computer Aided Design of Analog Circuits
m
Expert designer
Performance specification
¤
4
Library of sizing plans
:
Execute sizing plan
10/0.7 10/0.7
64/0.7
mance specification. The design plan consist of design equations and a design
strategy.
Design equations are usually formulated in such a way that given the component
sizes, the performance metric can be calculated. In the knowledge-based
approach these equations are reformulated so that given a set of performance
requirements, the device sizes can be computed. In order to accomplish this the
equation complexity must be kept at a low level, hence, only simple device mod-
els may be used.
Since the number of design parameters usually exceeds the number of perfor-
mance metric the parameters can not be determined explicitly by the equations.
To handle the extra degree of freedom some of the design parameters must be
chosen by other means.
In the knowledge-based approach a circuit specific design plan is used for this
purpose. The design plan contains information on how these design parameters
are to be chosen in order to reduce the degree of freedom and achieve good per-
formance.
In this section a short review of some of the tools that utilize the knowledge-
based approach is given.
36
The Knowledge-Based Approach
IDAC
IDAC [12] is one of the first and most well-known knowledge-based design
tools. It was developed in the late 1980´s at the Centre Suisse d’Electronique et
de Microtechnique (CSEM), Switzerland. The tool supports the design of a large
variety of circuits such as amplifiers, voltage and current references, compara-
tors, and A/D converters. It was also released commercially by Mentor Graphics
Corporation.
Being a knowledge-based design tool IDAC relies upon a library of circuit spe-
cific design plans for different circuit topologies. The library is created by an
experienced designer and contains a set of design equations organized in an
appropriate way.
After executing the design plan the tool verifies the performance in a circuit sim-
ulator. If the circuit fails to meet the requirements the tool adjusts the perfor-
mance specification and executes the design plan again.
The procedural execution of design plans offers a short design times for circuits
already in the library enabling, i.e., design space exploration. However, even
though IDAC contains a large library of design plans the number of topologies in
analog design is huge and a designer might want to make small changes to the
topology in order to improve the performance. In such cases a completely new
design plan must be developed. Also, several different design plans might have
to be implemented in order to cover a wide range of possible scenarios.
The resulting performance in this kind of tool is dependent upon the quality of
the design equations and the design plan used. Solving the equation system pro-
duced by high-accuracy device models are not possible (today), thus the method
is limited to simple models. This yields poor estimation of the circuit perfor-
mance.
The IDAC is also accompanied by a layout tool, ILAC [56]. ILAC is based on
the basics of digital layout generators and uses several common digital layout
techniques. However, ILAC have been modified to take into account some ana-
log issues during the routing and placement.
During the placement the tool takes into account, e.g., device matching and sym-
metry. A library consisting of basic building blocks such as current-mirrors and
matched differential pares are used to realize the basic functions in the circuit.
As for the global routing the tool handles net couplings, undesired crossings, and
special routing of power nets. In the channel routing the tool strive to minimize
the parasitics on the sensitive nodes and minimize coupling between sensitive
and noisy nodes.
37
Computer Aided Design of Analog Circuits
OASYS
OASYS [20, 21] is a knowledge-based design tool where the circuit is parti-
tioned into several sub-blocks. The tool have been developed at the Carnegie
Mellon university in Pittsburgh, USA.
Circuits addressed by the tool are mainly amplifiers for which a few topologies
are available. The tool decomposes the amplifier structure into sub-blocks such
as current mirrors, voltage references, and so on. In this way the topology is
described in several hierarchical levels.
Starting from a performance specification the tool initially decides what topol-
ogy to use. The topology is then divided into several sub-blocks for which the
tool derives the corresponding performance specification. In this way the design
problem is decomposed into several separate design tasks. Since there may be
several possible sub-blocks with the same functionality, the tool generates all
available styles and picks the one yielding the best performance.
The selection of topology at each hierarchal level is referred to as style selection.
The process of mapping the performance specification onto a sub-block is
referred to as translation. In one design their might be several hierarchal levels
and several steps of style selection and translation. The process precedes as a
series of design plan steps.
In order to make the correct decisions at nontransistor level hierarchies, effects
such as parasitic influence on the performance are estimated. At the bottom level
simple device models are used to determine the device sizes in a knowledge-
based manner.
To cope with the possible discrepancy introduced in the estimations of the per-
formance of low-level blocks the design tool utilizes a backtracking strategy in
order to refine the design. The process of repeated backtracking/translation may
be seen as a simple form of optimization in this case.
Besides the use of simple device models the main drawback of this tool is the
task of creating the design plan. It is reported in [21] that the creation of the first
design plan required 18 months. In this case all sub-blocks required in a two-
stage operational amplifier was implemented. However, even though all sub-
blocks are available, the time required to create a design plan is in the order of
months.
For fundamental sub-blocks the level of reuse is high since they can be used
repeatedly in a large range of circuits. It is however a challenging task to make
the blocks general enough.
The layout tool in OASYS, KOAN/ANAGRAM [8, 11], consists of the floor-
planner KOAN, and the router ANAGRAM. The tool have been released in sev-
38
The Knowledge-Based Approach
BLADES
BLADES (Bell Laboratories Analog Design Expert System) [13] is one of the
first tools to rely on artificial intelligence (AI) to partition and size analog cir-
cuits. The system uses an expert system, built to mimic the behavior of an expert
analog designer.
It features a divide-and-conquer strategy where an operational amplifier is
assembled by combining several sub-circuits. An operational amplifier might,
for example, consist of a differential amplifier, a gain stage and an output stage.
The rules for how to decompose the circuit into blocks are written in a “if-then”
manner. In total the tool consists of about 250 different rules.
At the transistor level the blocks are sized in a similar manner. Here the decisions
are based on rules in combination with look-up tables where simulated results for
each sub-block are stored.
BLADES supports fast design of analog circuits, typically the time to design an
operational amplifier is only a few seconds. The tool however, as all knowledge-
based design systems, requires the adjustment and/or addition of proper design
rules. Since the system bases the sizing of sub-circuits partly on results stored in
look-up tables these have to be created and maintained for a large variety of
device models, manufacturing process, and specifications.
ISAID
ISAID [37] is developed at the Imperial Collage in London. The tool is based on
a the method of qualitative reasoning in order to adjust the performance of the
circuit.
Qualitative reasoning is a method of explaining mechanisms or changes in the
physical world. The approach is based on replacing exact performance relations
with quantitative relations, such as “larger” or “smaller”, and so on. For exam-
39
Computer Aided Design of Analog Circuits
ple, if the value of one design parameter is made smaller the value of a specific
performance metric will increase.
In this case, the sign of the gradients of a performance metric, when changing a
design parameter, is used to determine what will be the effect of changing a par-
ticular parameter. Using a large number of such predictions, the device sizes are
adjusted.
DELIGHT.SPICE
DELIGHT.SPICE [47], is one of the most well-known simulation-based design
tools developed in the late 1980’s at the University of California, Berkeley, USA.
The tool combines the optimization toolbox, DELIGHT, with a standard circuit
simulator, SPICE.
40
Optimization-Based Device Sizing
Performance evaluation
Circuit Simulator
Beside having the accuracy of the circuit simulator the tool is also capable of
deriving the sensitivity to parameter variations for the performance metric. This
enables design centering and yield optimization.
DELIGHT supports a large range of optimization algorithms. The algorithm
used in DELIGHT.SPICE is called method of feasible directions. This is an
aggressive optimization method where a subset of worst performance and con-
straint functions direct the search.
One of the main reason for choosing an aggressive optimization strategy is to
keep the number of performance evaluations at a low level. Since the tool is
intended as an interactive platform for the designer, the running time must be
short [48].
However, the tool still requires several hours to perform its task due to the use of
a circuit simulator in the optimization loop. Also, due to divergence problems in
the SPICE simulator the optimization must be initiated using relatively good
starting points, i.e., an extensive search over a large parameter space is not possi-
ble. For this reasons the tool is more suited to fine-tune manual designs [48].
FRIDGE
FRIDGE [41] is a simulation-based design tool that perform global optimization
on an arbitrary topology. The tool uses simulated annealing as its optimization
engine. The cooling scheme is, however, modified compared to the traditional
method of slowly decreasing the temperature monotonically during the search.
Instead an adaptive cooling scheme where a series of fast cooling and reheating
schemes are used. It is reported that the proposed method reduces the number of
iterations with about 6 times on average. The use of an aggressive optimization
41
Computer Aided Design of Analog Circuits
MAELSTROM/ANACONDA
These two simulation-based device sizing tools share the same framework and
differs only in the optimization method used. In MAELSTROM [33] a combined
genetic/annealing algorithm is used whereas in ANACONDA [51] a novel
method referred to as stochastic pattern search is used. Both tools have been
developed at the Carnegie Mellon University (CMU) in Pittsburgh, USA.
Both design systems features a wrapper enabling the optimization engine to
interface with several industrial circuit simulators. In doing this the wrapper also
keeps the circuit simulator “alive” to avoid some of the overhead when initiating
a simulation in a standard circuit simulator. Furthermore, the system is capable
of handling simulator crashes and convergence problems.
The optimization task can be distributed onto a cluster of workstations i order to
reduce the CPU time for optimization. The CPU time required for medium size
circuits, 15-20 transistors, using a cluster of 24, 300 MHz, SUN Ultra 10 work-
stations, are between a few hours up to a day depending on the specification and
the number of optimization parameters.
The optimization algorithms used do not require an initial sizing of the devices
(even though the usage of such information will increase the convergence rate).
However, the resulting performance obtained depends on the initial value of the
optimization parameters [51] indicating the need to evaluate several starting
points in order to perform a sufficient exploration of the available design space.
These tools share several things, e.g., the cost function, with its precursor
ASTRX/OBLX (discussed in the next section) developed by the same group.
The group have also commercialized their research through the simulation-based
device sizing tool NeoCircuit, and the layout tool, NeoCell, supplied by Neo-
linear Inc. [45].
42
Optimization-Based Device Sizing
Performance evaluation
Performance equations
Symbolic analyser
Manually derived
The accuracy of the performance predictions depend on the quality of the design
equations. If the equations are derived manually the device models are usually
too simplified, comparable to those used in manual design. If a symbolic analy-
ses is used the accuracy can be higher, in principal the same high-accuracy
device models as in circuit simulators can be used.
In this section a short review of some of the tools that utilize the equation-based
approach are given.
OPASYN
OPASYN [32] covers the complete design flow, including topology selection,
device sizing, and circuit layout. The tool have been developed at University of
California in Berkeley, USA. It features a design database that contains informa-
tion on each step in the design flow for a set of supported circuits.
The topology selection is done using a decision tree where all available designs
are classified according to some key criteria. The tree is created out of previous
43
Computer Aided Design of Analog Circuits
STAIC
STAIC [22] was developed at the University of Waterloo in Canada. The tool
provides the designer with a framework to explore and find design trade-offs
within reasonable time.
The program feature an analog hardware description language with four different
levels for describing the circuits. A categorical description describes the func-
tionality of a set of blocks. All of these blocks contain a specific block descrip-
tion in which a more detailed realization is given, e.g., in the category amplifiers
there may be a Folded-Cascode OTA as a specific implementation. Each specific
block have one or several layout types. At the lowest level there are devices, with
associated layout generators.
44
Optimization-Based Device Sizing
Using the hardware description language, code on how the blocks at each
abstraction level are to be implemented is written. Each level contains both sim-
plified model and a more accurate one. The tool feature a coupling between the
levels of description enabling, e.g., layout effects to be taken under consideration
during other stages of the design process.
The device sizing in STAIC is divided in two parts. First a grid-based scan of the
design space using simple device models are performed. In this step possible
trade-offs are visualized to the user. The result of this scan is then used as a start-
ing point for a secondary optimization step where more accurate models are
used.
Typically simulation-based approaches are used to size the components in the
second optimization step. Hence, STAICs main purpose is to provide the initial
starting point to such a tool.
The language make use of several abstraction levels in order to reuse low-level
blocks. However, entering a new circuit description into the tool is a time con-
suming task, especially since several levels of abstractions have to be used. In
[22] it is reported that 10000 lines of C-code was used to implement three
medium size circuits.
Maulik
Maulik [39, 40] have been developed at the Carnegie Mellon University in Pitts-
burg, USA. In this tool the device sizing and the topology selection task is per-
formed simultaneously. The tool assigns additional optimization parameters for
selecting the circuit topology, e.g., one parameter that determines if the input
stage should be cascaded or not. Another parameter may be used to select
between an NMOS or a PMOS input stage. Using this approach a branch-and-
bound optimization technique is used to find the suitable topology and determine
the device sizes.
One different approach when compared to previous tools is that Maulik uses a
relaxed DC formulation. In contrast with many of the early tools that used a DC
solver in each iteration in order to arrive at a physical circuit Maulik considers
the DC solution a part of the cost function. Hence, the circuits visited during the
optimization run may not be physically feasible.
Using a relaxed DC formulation render the possibility to use high accuracy
device models since there is no need to analytically solve the DC equations for
the circuit. In Maulik high-level, BSIM [10, 36], models are used for the devices,
i.e., high accuracy is achieved for the device parameters. However, since Maulik
do not support automatic derivation of the equations required to evaluate the
small-signal performance of the circuit these equations are simple expressions
entered manually.
45
Computer Aided Design of Analog Circuits
ASTRX/OBLX
ASTRX/OBLX [49] have been developed at the Carnegie Mellon University
(CMU) in Pittsburgh, USA. The tool relies on asymptotic waveform evaluation
(AWE), encapsulated device evaluators, simulated annealing, and a relaxed DC
formulation in order to perform device size optimization. The tool combines the
simulation-based and equation-based approach.
In order to reduce the long simulation times in circuit simulators and the low
accuracy achieved by simple models used in many equation-based design tools,
ASTRX/OBLX uses asymptotic waveform evaluation [55]. AWE is an efficient
approach to analyze linear circuits that is considerably faster than using a SPICE
like circuit simulator. In AWE a reduced complexity model is used to predict the
small-signal performance metrics. All other performance metrics are computed
from circuit equations.
The encapsulated device evaluators are used to evaluate the small-signal param-
eters of a circuit. These evaluators relay on high-accuracy device models used in
industry.
The use of a relaxed DC formulation is done in a similar way as in Maulik. How-
ever, here the DC constraints are automatically generated. In order to solve the
optimization problem a simulated annealing algorithm is used.
One draw back of the AWE approach is that nonlinear circuit behavior can not be
modeled. Furthermore, the approximation of the circuit transfer function with a
lower-order model render some loss in accuracy. However, the designer interac-
tion is made small since the setup for the optimization problem is highly auto-
mated.
AMGIE
The AMGIE [52, 53] design system, developed at Katholieke Universiteit at
Leuven, Belgium, covers the complete design flow from topology selection and
device sizing to layout generation.
Topology selection is performed using a set of three filters applied to a topology
database. The two first filters compare the performance space of the topologies
with the specification provided by the user and rejects the candidates that can not
meet this specification. The remaining topologies are ranked according to a rule-
based scheme in order to pick the most promising one.
The device sizing system is a compilation of several tools combined into a
design framework. It relies on a symbolic analyzer to automatically derive the
small-signal equations required in AC analyses directly from the circuit topol-
ogy. The symbolic equations are simplified in these tools in order to reduce the
46
Optimization-Based Device Sizing
size of the expressions evaluated inside the optimization loop. Symbolic equa-
tions for the DC constraints are also derived from the topology while all other
(e.g., time-domain equations) must be entered by the designer.
It should be noted that even though the system supports the automated setup of
design equations directly from the circuit topology it is only intended to be used
by expert users. The expert users can create libraries of “sizing plans” which is
later used by ordinary users to size a specific topology. The sizing plan should
not be confused with the design plan used in knowledge based systems. In this
case the plans consists of design equations for the optimization engine to operate
on and additional knowledge added by the designer in order to reduce the size of
the problem. The time to create such a sizing plan for a “moderate-complexity
circuit” is about 8 hours for an expert user.
The optimization engine, supports both global optimization methods such as
simulated annealing and local, gradient-based, methods. During the optimization
phase several methods may be combined on order to increase the convergence
rate. For example a simulated annealing algorithm may be used to search the
design space while a gradient based methods is used to fine tune the final solu-
tion.
The layout generator LAYLA [35], uses a performance driven problem formula-
tion in order to minimize the performance degradation in the layout step. The
simulated annealing optimization algorithm is used to minimize the impact of
interconnect parasitics, mismatch, and thermal effects during the floorplaning. In
the routing phase several routing solutions are examined in order to minimize
performance degradation and increase circuit yield.
In the LAYLA tool the sensitivities of the performance metrics due to changes in
the layout phase are computed before generating the layout. This is referred to as
direct performance driven layout generation, as apposed to the method where
upper and lower bounds on the parasitics where obtained from the performance
specification. The sensitivities are used to derive a first-order model of the rela-
tion between layout induced effects and the circuit performance. This model is
the use to predict the performance degradation when generating the layout.
The tool also has a redesign wizard that steps in whenever a circuit fails to meet
the specification. This tool compares the reason for failing to meet the specifica-
tion against a redesign database which contains of a set of scenarios and possible
solutions. The optimization process is then adjusted and restarted at an appropri-
ate point in the design flow.
47
Computer Aided Design of Analog Circuits
GPCAD
GPCAD [25, 26] is a device sizing tool dedicated to the design of operational
amplifiers. It have been developed at the Stanford University in Stanford, USA.
The novelty of the tool is to formulate the sizing task using geometrical pro-
graming (GP). In order to accomplish this the design equations are written as
posynomial equations. This results in a convex optimization problem for which a
global optimum can be found in only a few seconds, even for very large circuits.
The function f is a posynomial of x if
t
α 1k α 2k α nk
f ( x 1 , …, x n ) = ∑ ck x1 x 2 …x n (3.1)
k=1
where c j ≥ 0 and α ij ∈ ℜ . When the sum only contains one term, i.e., t equals one
then f is a monomial function. In order to formulate a convex optimization prob-
lem the cost function and the inequality constrains must be formulated as posyn-
omials. Equality constraints must be formulated as monomials.
Even though formulating the design equations as posynomials simplifies the
optimization task the method suffers from accuracy problems. Since all design
equations must be formulated as posynomials, the use of high-accuracy device
models is not possible because they can not be reformulate as posynomials. Fur-
ther, GPCAD do not include an automated approach for generating these equa-
tions, limiting the usage of the tool to handle a few, predefined, circuit structures.
In [25] the design of a two-stage operational amplifier is discussed, the amplifier
is to be synthesized in a 1.2 µm standard CMOS process. The resulting perfor-
mance from the tool is compared to SPICE simulations. Even though the unity-
gain band width is only 8 MHz the phase margin diverges by 6 degrees from that
reported by the simulator. Clearly this problem is increased at higher frequen-
cies.
To conclude, the GPCAD approach offers short execution time at the expense of
accuracy [51].
SD-OPT
SD-OPT [42] have been developed at the University of Sevilla, Spain. The tool is
specifically targeted at designing switched-capacitor delta-sigma modulators.
Two steps of optimization is used, the first at the modulator level and the second
at the cell level. In the first, a behavioral simulator, ASIDES, operating on a
library of design equations is used to explore the design space and perform the
initial sizing at the modulator level. The design equations are pre-defined expres-
sions characterizing the different blocks, including nonidealities, in the modula-
48
Optimization-Based Device Sizing
Performance evaluation
Neural network model
Generally there exist a trade-off between the amount of training data to use and
the accuracy of the performance predictions made by the neural network. How-
ever, increasing the training data will require more time in the performance eval-
uator. Usually a high accuracy performance evaluator, like a circuit simulator, is
used to evaluate the performance of the training data.
49
Computer Aided Design of Analog Circuits
Alpaydin
Alpaydin [2, 7] preforms the device sizing using neural performance models in
combination with user defined equations. It uses a fast circuit simulator in order
to compute the DC operating point.
A neural-fuzzy model is used for some of the performance metrics. The model is
derived by evaluating the performance for a set of training data using a SPICE
simulator. The neural-fuzzy model can approximate the behavior of any linear or
nonlinear circuit behavior.
The training is performed without human intervention. However, accuracy
depends on the number of training points which must cover the parameter space
where the model are to be used. Thus, in order to arrive at accurate predictions of
the performance the network must be trained using a large set of training data.
Other AC performance metric are computed using manually derived perfor-
mance equations. This is a drawback since these equations must be supplied by
the user for each new topology.
In order to maximize the yield during the device sizing the effect of process vari-
ations are modelled and incorporated into the cost function. The tool is, however,
not capable of handling mismatch between devices.
The optimization method used is a combination of evolutionary strategies and
simulated annealing. It is reported that the method is able to find good solutions
starting from a randomly selected design point.
50
Commercial Device Sizing Tools
NEOLINEAR
Neolinear [45] was founded by the group behind the sizing tools ANACONDA
[51] and MAELSTROM [33]. The company offers a design suit, covering both
device sizing (NeoCircuit and NeoCircuit-RF), and layout generation (Neo-
Cell) for analog circuits. The sizing tools are simulation-based and interface
with several industrial simulators similar to ANACONDA and MAELSTROM.
The tools have been successfully used to produce high-performance analog inte-
grated circuits in industry [24, 58]. In this case the design time have been
reduced from weeks to days.
BARCELONA DESIGN
Despite the name Barcelona Design [5] it is situated in Newark, CA, USA, and
was founded by the people behind GPCAD [25]. The company offer synthesize-
ble IP (intellectual property) blocks, i.e., an optimization engine for a specific
circuit is licensed to the customer. These blocks contains the required design
equations written as posynomials. The optimization task is formulated as a geo-
metrical programming problem for which a global optima can be found in a few
seconds.
In contrast to standard IP blocks, which meet a given specifications, these blocks
may be synthesized to meet a range of different specifications. Currently the
company supplies such synthesizeble IP blocks in three different areas, PLLs,
data converters, and amplifiers.
The company do not offer a general solution for sizing the components of inte-
grated circuits. The blocks only supports a fixed topology, with a few minor
modifications. For operational amplifiers, three single-ended topologies are
offered. These blocks are technology dependent, as for today the IP blocks are
available in two processes, TSMC 0.18 and TSMC 0.13. Further, the circuit may
only be optimized with respect to area, power dissipation, and unity-gain band-
width.
This limits the usage of these blocks. However, compared to a traditional IP
block, the approach offer the user an increased level of reuse and flexibility. The
advantage of the method is that it is fast, in the matter of minutes the sizing, and
layout of the component is completed.
51
Computer Aided Design of Analog Circuits
ANASIFT
The tool offered by Anasift [4] has not yet been officially launched but the com-
panies claims that their tool is capable of sizing circuits with about 100 transis-
tors in the matter of hours. The tool use the equation-based approach to size the
circuit components. Initially the software will target operational amplifiers.
52
Table 3.1
IDAC OASYS BLADES ISAID DELIGHT.SPICE FRIDGE
Performance Simplified Simplified Lookup Simplified equa- Circuit Simulator Circuit
evaluation. equations equations tables + rules tions + Qualita- Simulator
Comparison of tools for analog device sizing.
tive reasoning
Estimation 15% 25% Not reported 14% 0% 0%
error*
Search method Design plan Design plan + AI Qualitative rea- Feasible direc- SA + local
+ post opti- backtracking soning + post tions method
mization optimization
Synthesis time “A few sec- 5 sec. “A few sec- Not reported 18h (Masscomp 45 min.
onds” (VAX 8800) onds” MC 500)
Effort to add 4-45 6 months, Incorporate Not reported 10-30 lines of 1h
new circuit designer including cir- designer code
months cuit analysis knowledge
Derivation of Symbolic Manually Manually Manually - -
equations analyzer +
GP1 ulations
When considering the design time it is also important to take into account the
overhead associated with the sizing process. Some methods, like for example
knowledge-based methods, have short optimization times. However the time
required to derive the circuit equations are substantially larger then for e.g. simu-
lation-based sizing.
Other factors such as the development in computer efficiency, the device models,
the number of performance metric taken into account, and the process technol-
ogy effects the result.
There are however some general properties of the tools discussed in this chapter.
Some of these aspects will be addressed below.
56
Summary of Existing Approaches
design decisions. This increases the generality of the tool and reduces the setup
time.
The use of optimization methods instead of a design plan also increases the qual-
ity of the solution. While the knowledge-based approach use a set of predefined
rules to arrive at a solution, the optimization-based tool will strive to find an
optimal (local or global) solution. In the case of knowledge-based device sizing
the quality of the solution depends on the skills of the designer that creates the
design plan.
To conclude, the knowledge-based approach offers a time efficient way of
designing analog circuits. However, the overhead in creating a design plan and
the low accuracy makes the method inefficient when modern technologies are
considered. On the other hand, the optimization-based device sizing approach
features a higher level of generality and strives to find optimal solutions to the
device sizing problem.
Preparatory Effort
In the simulation-based approach a circuit simulator is used inside the optimiza-
tion loop. Thus, as long as the circuit performance can be measured using the
output of the simulator, the setup may be accomplished in a short time. In princi-
ple the use of the simulator is similar to that used in manual device sizing meth-
ods, i.e., a test bench in the simulator environment must be created. The test
bench describes how to measure each performance metric that are to be used in
the cost function.
For the equation-based approach the situation is different. Here the performance
is evaluated using a set of equations. For the early tools these equations where
57
Computer Aided Design of Analog Circuits
supplied manually. This limited the accuracy of the equations. Using simple
design equations clearly effect the accuracy of the resulting performance predic-
tions.
There are however methods of generating the equations automatically via sym-
bolic analyzers. These tools are able to generate the equations required to evalu-
ate several types of performance metric. However the designer must instruct the
tool how to derive the appropriate expressions. This process is similar to setting
up a test bench inside a circuit simulator. Introducing new types of performance
metric into the symbolic analyzer can be time-consuming, however, once the
metric is included it may be used on a large range of circuits.
Using a symbolic analyzer to derive the equations render the possibility to use
accurate device models. Also, the risk of introducing errors when deriving the
equations are eliminated.
The level of automation in the preparatory phase is also high for the neural net-
work approach since it requires little interaction from the user. Basically the pro-
cedure, from a user point of view, is similar to that of the simulation-based
approach.
In order to train the neural-network an accurate evaluation engine for the training
data is required. In most cases a circuit simulator is used to carry out this task.
The user must create an appropriate test bench for the circuit simulator in order
to estimate the corresponding performance of the training data. However, in
order to train the network to achieve high accuracy the number of training points
must be made large. Hence, there is an initial cost to be paid in doing this.
Execution Time
The execution time have traditionally been considered to be one of the most
important parameters when determining the quality of a device sizing tool. The
time spent on sizing the circuit depends on several things.
First, the optimization engine is of importance. Methods that uses classical, gra-
dient-based, optimization algorithms may arrive at a circuit solution in a short
time. However, due to the nonlinear problem these optimization methods are
easily stuck in a local minima. In order to assure good solutions the optimization
process must be initiated in several starting points.
If a global search algorithm is used the convergence time may be much larger but
the risk of getting stuck in a poor local minima is reduced. However, to assure
good solutions global search algorithms should be restarted in different starting
points [57].
58
Summary of Existing Approaches
Secondly, the type of performance evaluation used will affect the execution time.
In the simulation-based approach a circuit simulator is called in each optimiza-
tion run. However, standard circuit simulators are designed to interact with the
the designer and not with an optimization algorithm. A human designer often
invokes the simulator to perform a single, or a small batch of simulation tasks. In
this case an overhead of a few seconds to start the simulator is no problem. An
optimization-based design tool, on the other hand, requires the evaluation of tens
of thousands of circuits.
In order to arrive at a DC solution the circuit simulator must perform internal
iterations. Performing these iteration in each optimization loop is costly when
computational time is concerned, but this can be alleviated by proper control of
the simulator. For example the state of the circuit simulator from the previous
iteration may be used as an initial state in the next.
In the equation based-approach the performance evaluation is performed by
evaluating the symbolic equations. Using a relaxed DC formulation alleviates
the problem of finding a DC solution in each iteration. Thus, the equation-based
approach offers significantly shorter execution times than the simulation-based.
The neural network approach offers fast evaluation of all performance metric
due to the simplified model. However, it may require a circuit simulator to, e.g.,
determine the DC operation point which increase the run time.
Comparing the execution time, the simulation-based approach requires days
while the equation-based and the neural network approach are able to complete
the sizing task in minutes.
59
Computer Aided Design of Analog Circuits
such as slew-rate, there are no systematic methods for deriving accurate sym-
bolic equations. Thus, in all equation-based tools these equations must be
derived manually.
Changing the device model is in practice more difficult in the equation-based
approach. For simulation-based tools the process of changing the device model
involves updating the model library of the circuit simulator. If an industrial sim-
ulator, like HSPICE [28] or Spectre [9], is used this will be completed by the
vendors of the respective simulator. For the device models used in equation-
based tools new equations must in general be entered by the vendor of the tool.
This is only a practical problem since the released device models might as well
be exchangeable modules in an equation-based design system.
Many equation-based design systems relay upon a library in which a set of
design equations are stored. These equations are created, either manually or
using symbolic analyzers, by an experienced designer. Thus, the user is only sup-
posed to pick predefined topologies from this library. This might be considered a
restriction since many analog functions require application specific circuit solu-
tions. Also the number of circuit solutions that can be used to implement one
type of functionality is large.
Many of the early simulation-based design tools where only able to fine-tune the
performance of a circuit. That is, the tool requires a good starting point to ensure
convergence. In more recent design tools the requirements on good starting
points are alleviated since global optimization techniques are used. However,
performing an extensive search in the parameter space will result in examining
nonfeasible parameter values. This can cause convergence problems or simply
crash the circuit simulator. Thus such problems must be taken care of when using
a simulator inside the optimization loop.
There are no differences in the size of the design problems that can be handled
by the tools. However, in the neural-network approach the training data increases
rapidly with the number of design parameters. Thus, a large circuit may require
an impractical large number of training points.
As for the equation-based approach the size of the performance equations grow
with the number of design parameters. Due to limited memory resources the size
of the equations may become to large. An alternative way of representing the
equations and symbolic approximation may be used to reduce these problems.
The simulation-based approach suffers from the increased number of calls to the
optimization engine resulting from a large number of design parameters. Since
each call is costly in terms of CPU time this puts a practical limit on the number
of devices that can be handled.
60
Summary of Existing Approaches
The optimization engine itself must also be capable of handling a large number
of design parameters and ensure convergence within reasonable time. This prob-
lem is, however, common to all of the approaches.
Accuracy
The accuracy may be defined as the difference between the performance pre-
dicted by the device sizing tool and the performance of the completed circuit. In
the case of pure device sizing (i.e., the layout induced effects are not considered),
the differences are measured between the performance reported by the sizing
tool and the corresponding performance measured using a circuit simulator and
accurate device models.
In the simulation-based approach accurate device models are usually used. Thus,
the performance prediction in this case is excellent.
For the equation-based approach the situation is more complicated. The accuracy
is dependent on the device models used. Generally, when equations are derived
manually the device models are bounded to be simple. Thus, the accuracy will be
low. For the design tools in Table 3.1 through Table 3.3 the accuracy of the tools
using symbolic analyzers to derive the performance equations is higher. In order
to make accurate prediction of the performance in modern process technology
simple device models can not be used.
Equation-based tools that use accurate device often apply approximation tech-
niques to reduce the size of the expressions for the performance metric. The
result is that the computational efficiency is increased at the expense of accuracy.
It is however possible to obtain the same high accuracy in an equation-based tool
as in simulation-based tool since the same device models may be used in both
cases.
In the neural-network approach there is a trade-off between the number of train-
ing points and the accuracy achieved. Using a large set of training data will result
in an increased accuracy, however, covering a large parameter range in a circuit
with many design parameters require extensive simulations.
Conclusion
It is difficult to give general guidelines on what approach that is the best to use.
All methods have their specific strengths and capabilities.
The equation-based approach offers short setup-times (with the use of a sym-
bolic analyzer), and short execution time. However, the method traditionally suf-
fers from reduced accuracy due to approximations or low-order design
equations. Also, some of the design equations can not be derived in a systematic
way.
61
Computer Aided Design of Analog Circuits
The simulation-based approach have high accuracy due to the use of circuit sim-
ulators. The generality is also high and a large range of design problems may be
addressed. However, the approach have longer execution times due to the use of
a circuit simulator in the optimization loop.
The neural-network approach have short execution times and large generality.
The drawback is, however, the large time spent in the preparatory phase as well
as accuracy problems.
62
CHAPTER IV
THE DESIGN PLATFORM
63
The Design Platform
Traditionally, the setup time for new circuits using the equation-based approach
is long. Here we combine the use of a symbolic analyzer with a netlist parser in
order to automatically derive the design equations. Using this approach the equa-
tions for a new circuit topology can be derived in a few minutes.
The device models are implemented as exchangeable modules. Thus, it is easy to
change the models used to evaluate the circuit performance. Also, the process
parameters may easily be changed in order to ease the migration from one pro-
cess technology to the next.
Furthermore, the platform is a collection of several tools. One tool may be
replaced if there are more efficient alternatives available. It is also possible to
use each part of the design platform separately.
Currently, the platform is not optimized for speed; our focus is on evaluating the
approach. Thus, the performance can be increased further by fine-tuning parts of
the platform. Also, the platform is targeted at time-continuous amplifiers. It is,
however, possible to expand the approach to other types of circuits as well as
adding additional performance metrics.
In this chapter, an overview of the design platform is presented, a more detailed
description of the device sizing part is also given. In the following chapters, the
layout generation, the parasitic feedback, and the design space exploration tools
are discussed.
64
The Design Platform
Derivation of
performance metrics
Symbolic analyzer & netlist parser
Process parameters
& Formulation of the Parasitic extraction
transistor model optimization problem
Outputs
Sized circuit Circuit layout
exported back to VirtuosoTM
exported back to VirtuosoTM
(for post verification)
input to the symbolic analyzer program, which is used to derive small-signal and
time-domain performance metrics.
A cost function, is generated by combining the circuit specification and the per-
formance metrics. Additional performance metrics, to be included in the cost
function, may also be added by the user.
In the next step, the design parameters are determined by the circuit optimizer in
order to meet the performance specification. The circuit optimizer exports the
device sizes to the layout generator which generates a template-based layout.
When all physical dimensions are determined, a parasitic extraction tool
retrieves all interconnect parasitics in the layout. Using the extracted parasitics
the optimization problem is reformulated and the circuit optimizer is again used
to determine the device sizes required to meet the performance specification.
This procedure is repeated until the deviation in the cost function from one itera-
tion to the next is smaller than a user-defined threshold value. Due to the feed-
back of parasitics, the device sizes are adjusted in order to meet the performance
specification after completing the layout. At the end the device sizes are
exported back to the Virtuoso schematic editor.
65
The Design Platform
66
Figure 4.2
Overview of the device size optimization.
Constraints
z KCL requirements
z Device operating regions
Large-Signal Metrics
z Common-mode range
z Output range
Small-Signal Metrics
z DC gain
z Phase margin
z Unity-gain frequency
z Positive and negative power supply rejection ratio (pPSRR, nPSRR)
z Common-mode rejection ratio (CMRR)
z Output noise spectral density
z Poles and zeros
Nonlinear Metrics
z Output and input intercept points
68
Derivation of Performance Metrics and Constraints
Time-Domain Metrics
z Linear settling time
z Linear overshot
4.3.1 Constraints
Two types of constraints are derived automatically. First, the branch currents are
constrained so that KCL is met in all electrical nodes. This is a fundamental
requirement that must be met in order for the circuit to be realizable. Secondly,
the operating regions of the transistors are constrained in order to ensure proper
operation of the circuit. Since our currently used optimization method support
the use of both constraints and cost functions, we have chosen to formulate these
properties as constraints.
In analog circuits, such as operational amplifiers, transistors are typically operat-
ing in the saturated region. Thus, this is the default constraint used. There are,
however, other applications where the transistor may be used as, e.g., a voltage
controlled resistor instead. Then, other operating regions might be specified by
the designer. It is, also, possible to not constrain the operation region of the tran-
sistors.
In our approach, we use a relaxed DC formulation, i.e., we do not require a feasi-
ble DC solution in each iteration. Instead we include the KCL requirements as
additional constraints during the optimization. This implies that most points vis-
ited by the optimizer will not correspond to realizable circuits. In this way the
costly process of solving the DC equations for the circuit in each iteration is
avoided.
In order to find a DC operation point, each transistor is modelled as a black box.
Given the node voltages V G , V S , V D , and V B along with the width and length of
the transistor, the drain current, I D , the threshold voltage, V TH , and the saturation
voltage, V DSAT is computed. The actual formulas used depend on the device
model, see Sec. 4.7.
The circuit topology itself introduces constraints on the node voltages and
branch currents. For example, in Fig. 4.3 the voltages at the drain of transistor
M1 and M2 must be equal. Furthermore, in every node, KCL must be met. In the
circuit shown in Fig. 4.3, the current going out of M1 must be the same as the
current going into M2. The constrains may therefore be formulated according to
69
The Design Platform
VS1
I D1
W1 / L1 M1
V G1 VB1
V D1 = V D2
I D2
W2 / L2 M2
V G2 V B2
VS2
I D1 – I D2 – δ < 0 (4.1)
where δ ≥ 0 is used to set the accuracy.
Ideally δ is zero, however, to facilitate convergence, a small deviation in the
order of a few nA is acceptable for most applications considered here. The
parameter may be compared to setting the accuracy of a circuit simulator.
All of these constraints are automatically derived by the netlist parser by identi-
fying all interconnection networks in the circuit. A voltage parameter is assigned
to each of the nodes and a nodal analysis is performed to generated constraints
on the branch currents.
70
Derivation of Performance Metrics and Constraints
Potential decrease/increase
Direction of traversing Lower limitations Upper limitations
NMOS PMOS NMOS PMOS
Drain to source - VDSAT -VDSAT -
Gate to source -VT VT -VT VT
Source to drain VDSAT - - -VDSAT
Source to gate VT -VT VT -VT
Table 4.1 Rules for traversing the netlist.
To determine, for example, the minimum voltage at the output node of the cir-
cuit, the search starts at the lower supply voltage node and identifies all paths to
the output node. Also, the paths from each bias voltage source must be identi-
fied. Using the change of potential for each transitions in the path, expressions
for the minimum voltage is obtained.
There may be several paths connecting two nodes in the circuit. Therefore an
expression is generated for each path. During the circuit optimization all of these
expressions are evaluated in order to find the one that limits the swing. In order
to illustrate the method the simple circuit in Fig. 4.4 is used.
To determine the maximum voltage swing at the positive input node (Vin+) we
will compute all possible paths to the upper power supply voltage node (VDD)
according to Table 4.1.
Starting at VDD we go from source to drain of transistor M4. In order to reach the
input node we will have to go from drain to source of M1 and then from source to
gate of M1. Using this path the following upper limit on the input voltage swing
is obtained:
V DD – VDSAT4 – V DSAT1 + V T1 (4.2)
Continuing with the additional paths the following three expressions are derived
71
The Design Platform
VDD
M4 M3
V ou t
V in + M1 M2 V in -
V bia s M5
V SS
Figure 4.4 Single-ended differential amplifier.
V DD – V T4 – V DSAT1 + V T1
V DD – V T3 – V DSAT1 + V T1 (4.3)
V DD – V DSAT3 – V DSAT2 + V T1
Since the voltages depend on the design parameters, and the operating point, all
of the expressions must be evaluated in each design point. In order to determine
the voltage swing, the path causing the largest voltage drop must be considered.
All of the voltages given in Table 4.1 are computed at the DC operation point of
the circuit. In order to accurately measure the swing, the saturation and threshold
voltages for the transistors must be computed at the outer limits of their opera-
tion region. However, the circuits designed using the tool shows reasonable
agreement with simulation results.
72
Derivation of Performance Metrics and Constraints
73
The Design Platform
GX = Y (4.4)
where G is an n × n matrix determining the relation between the branch currents
and node voltages in the circuit, X, and the voltage and current sources, Y. Basi-
cally, Analog Insydes derive G, X and Y, from the circuit netlist. However, in
order to compute the node voltages and the branch currents in the circuit G, must
be inverted according to:
X = G –1 Y (4.5)
This matrix inversion, which is equivalent to solving a set of linear equations,
can not be performed symbolically for large circuits due to the limited memory
and computational resources. Instead the inversion is performed numerically in
each iteration.
In our case the number of rows and columns of G is determined by the number of
electrical nodes and voltage sources in the circuit according to
n = n voltagesources + n nodes (4.6)
The transfer functions between all nodes in the circuit may be derived from the
outcome of the MNA. This can be exploited in order to derive the small-signal
equations. In order to, e.g., derive the power supply rejection ratio the frequency
response from the positive (or negative) power supply voltage to the circuits out-
put may first be derived. In the next step the frequency response from the circuit
input to the output is computed. The resulting power supply rejection ratio is
obtained using (2.15) or (2.16). The procedure is similar for the common-mode
range.
The poles and zeros of the transfer function control the frequency behavior of the
amplifier. In many cases, we want an amplifier that has only one dominant pole.
The influence of unwanted poles and zeros is reduced if they are well separated
from the dominant pole. Using the poles and zeros, such requirements can be
included in the overall cost function.
74
Derivation of Performance Metrics and Constraints
75
The Design Platform
Chip Area
The circuit area is difficult to estimate accurately since it is dependent on the lay-
out style as well as matching properties and additional components such as guard
rings and interconnect. However, in order to include the area in the overall cost
function we estimated the required area by
2 Rc C 4C p
Area = L T ∑ W i + W R ---------- + -----c- + --------- ( 2C p – C c C a + 4C p2 ) (4.9)
R Ca C2
a
where Wi is the width of transistor i, R and C are the total value of all resistors
and capacitors in the circuit. Further, LT is the distance between the center of the
drain and source contacts of the transistor (this is not equal to the transistor chan-
nel length). WR and R are the width of the resistors and the resistivity per
square, respectively. Ca and Cp are the capacitance per unit area and the perime-
ter capacitance for the capacitor, respectively.
LT may be used to adjust the size of the transistor in an appropriate way to accu-
rately measure the area required for implementation. Additional contributions to
76
The Cost Function
the area associated with other devices, or the number of devices, may be added
by the designer.
X – 1 if X > 1
G(X) = e (4.11)
1 if X ≤ 1
Yspec and Yopt are the specified and the current value of the performance metrics,
respectively.
The first sum in (4.10) is used for partial cost functions where Yspec should be
smaller than Yopt, i.e., a penalty is generated if Yopt is smaller than Yspec. The sec-
ond sum is used for the opposite case, i.e., when the partial cost function should
be smaller than the specified value.
In order to minimize one or several performance metrics, Ymin, the third sum in
(4.10) is used. Ymin must be formulated in such a way that it is larger or equal to
zero. In a similar way the fourth sum is used to maximize a set of performance
metrics, Ymax.
kn are scaling constants used to weight the importance of each term in the cost
functions. The constant α n is used to normalize the corresponding function so
that each term is of the same order of magnitude. An important property of the
cost function is that the penalty generated is normalized by the specified value. It
is therefore possible to compare performance metrics that differs by several
orders of magnitude. Furthermore, the cost function has continuous derivatives
and can be used with gradient-based optimization methods.
77
The Design Platform
78
Distributing the Optimization Tasks
optimization problem this algorithm do not guarantee to find the optimal solu-
tion. However, by initiating the optimization with different starting points, the
algorithm can be used to obtain good solutions. At the end of the optimization
phase, the best solution, i.e., the solution with the smallest value of the cost func-
tion, is chosen.
Experimental results show that the SQP algorithm performs well. An acceptable
amount of the starting points result in good solutions while the optimization time
is kept reasonably short. Also, as discussed in the next section, it is easy to dis-
tribute the optimization tasks onto a cluster of workstations.
Since the SQP algorithm can not handle discrete parameters, the optimization is
carried out using continuous parameters. When the optimization engine arrives
at a solution, the device sizes must therefor be rounded to the nearest value that
comply with the grid spacing. If required, the device sizes can be fixed to these
values and a second optimization run performed.
The cost function used in our approach is suitable to be used together with, e.g.,
a simulated annealing optimization algorithm and our intention is to try other
optimization algorithms as well. In order to use the simulated annealing algo-
rithm the cost function must be modified to include the constraints as well.
Only preliminary runs using simulated annealing have been performed. The
algorithm used is the adaptive simulated annealing algorithm [30]. Since the
cooling scheme have not been optimized, long optimization times have been
obtained so far.
79
The Design Platform
Master
: :: :
Workstations
Figure 4.5 The master-slave configuration used for distributed optimization.
80
Device Models
C dg
Gate Drain
C db
C gs g m V gs g mbs V bs g ds
C sb
Source Bulk
81
82
Drain
the BSIM3v3 model.
An equivalent small-signal model for a MOS transistor modelled by
s ( C db V b + C dg V g + C dd V dx + C ds V sx ) s ( C bb Vb + C bd V dx + C bg V g + C bs V sx )
Rd
g db
dx Bulk
Gate sx
Rs
s ( C gb V b + C gd Vdx + C gg Vg + C gs Vsx ) s ( C sb V b + C sd V dx + C sg V g + C ss V sx )
Source
Device Models
Experimental results show that the overall loss in computational efficiency for
the high accuracy model is about 30% compared to the simplified model. Thus
the impact on the optimization speed is not a critical issue in these cases. Fur-
thermore, the size of the matrix is not a problem for circuits that have been
examined within this work, the largest tested circuit having about 60 transistors.
However, if for example a complete filter with several large operational amplifi-
ers are to be sized, this will of course become a problem.
Currently, all lumped devices, such as capacitors and resistors, are assumed to be
ideal. There are, however, no principle problems to changing these models in
order to incorporate a more detailed model for these devices.
The process parameters are stored as variables in MATLAB. A simple tool has
been implemented in order to automatically extract the process parameters from
a SPICE process parameter file. Updating the process parameters is thus done in
a few seconds.
83
The Design Platform
84
CHAPTER V
LAYOUT GENERATION AND
PARASITIC FEEDBACK
In this chapter the layout generation and the parasitic feedback tools are dis-
cussed. It should be noted that the work done on the layout generation is not
intended to be state-of-the-art. Instead the purpose of the layout generator is to
validate the principle of parasitic feedback. However, parts of the generator may
be reused, in future versions.
85
Layout Generation and Parasitic Feedback
Layout
used to determine the appropriate number of units to achieve either the minimal
area or some desirable form factor. From a matching point of view a quadratic
layout should be used since the device variations are proportional to the squared
distance between two objects in a first-order approximation [50].
86
Layout Generation
(a)
(b)
Figure 5.2 The layout of two different differential pair transistors are shown.
In (a) the a guard ring is applied while it is disabled in (b).
87
Layout Generation and Parasitic Feedback
Figure 5.3 The layout shows two matched capacitors. The covering shield is removed
for the sake of visibility.
transistor and/or as a covering metal layer on top. Several other properties, such
as the width of the internal wiring are also adjustable.
Another example of a parametrized block is shown in Fig. 5.3. This Pcell gener-
ates an array of matched capacitors. The size and the number of unit-size capaci-
tors in the array may be chosen arbitrary in order to cover a large range of
capacitive values. The interconnect network might be chosen to obtain a com-
mon centroid solution. Further an arbitrary number of capacitors may be
matched although the internal busses might become a problem if the number of
capacitors are large.
Dummy capacitors may be placed around the array along with an optional guard
ring. A covering shield on top of the array can be applied. All wires widths are
adjustable in order to handle different requirements on the current density.
The technology dependent parameters, such as minimum spacing rules, are
fetched directly from the process technology file by the module generators.
However, porting a Pcell to a completely new technology may require some
88
Layout Generation
tweaking and adjustments. The time required is dependent on the extent of these
adjustments.
Generally, the low-level building blocks in analog circuits, i.e., transistors, resis-
tors and capacitors, do not change dramatically from one process to the next. The
basic geometries and the layers are similar although the size have shrunk. If only
minor scaling adjustments are required a block may be ported to a new technol-
ogy in a few hours.
The time required to create a Pcell may, however, occupy a skilled programmer
for a few days up to weeks depending on the complexity and the generality of the
block. Thus, there is a large initial cost involved in building a library of parame-
terized blocks. However, if only basic building blocks, like those discussed
above, are considered, the level of reuse is high since they are likely to be found
in most analog circuits. When the module generator is completed the building
block may be generated in seconds.
5.1.2 Templates
Templates are implemented similarly to building blocks, using SKILL. The tem-
plate determines the relative placement of each building block as well as how to
perform the interconnect.
When a the template is evaluated for a specific set of device sizes, fingers and so
on, it first calls all of the module generators to generate the low-level building
blocks. In the next step the blocks are placed and interconnected according to the
template. In this way the template may be reused to generate layouts for several
different sets of device sizes.
The layout for a folded cascode OTA generated from a template is shown in
Fig. 5.4. In Fig. 5.7 the OTA is shown, evaluated with a different set of device
sizes. In this template eight building blocks are used, seven transistor blocks and
one capacitor block.
In order to minimize the circuit area or force it to have a specific form factor a
simple optimization step is applied before the layout is generated. During the
optimization step the shape of each building block is determined by changing the
the number of fingers for each transistor.
Formulas for the width and length of each block as a function of the unit-size
transistor and the number of fingers have been manually derived in order to com-
pute the size of each block during the optimization. Further, the layout is divided
into vertical and horizontal slices. The vertical slices are shown in Fig. 5.4. The
width of each slice is determined by the largest block inside.
89
Layout Generation and Parasitic Feedback
The slices are placed adjacent to each other. Hence, the sum of the slice widths
determines the total width of the circuit. The height of the block is determined in
a similar manner using horizontal slices.
The benefits of the template-based method is that it provides a fast and reliable
(as long as the device sizes are within a reasonable range) way of generating a
layout. There are, however, several disadvantages with this approach. Firstly,
creating a new template is a time consuming task. Secondly, the range of device
sizes that may be used with a single template is limited. To achieve a dense lay-
90
Parasitics Feedback
Parasitics
Iterated until
the impact of
parasitics is
small
Device sizes Circuit layout
Layout generation
out over a large range of device sizes several templates must be used. Thirdly,
even though a template may be adjusted to work with a new process technology
it requires additional work, especially when several templates are to be con-
verted. In this work the template-based layout generator is used in order to illus-
trate the concept of parasitic feedback.
91
Layout Generation and Parasitic Feedback
order to meet the performance specification. When resizing the circuit the opti-
mization parameters are initiated close to the previous solution.
Now the loop is restarted by generating the layout for the new device sizes. Since
the sizes have changed from the previous iteration a new set of layout parasitics
are extracted. As in the previous iteration the impact of these parasitics on the
circuit performance might cause the circuit to violate the performance specifica-
tion.
The process is therefore repeated with the updated values of the parasitic. No
regeneration of the symbolic performance equations are required in the later iter-
ations since the symbolic expressions for the parasitics have already been
included. If no significant changes are made to the layout the difference in para-
sitic load will be smaller than in the first iteration. In the following iteration, the
changes in the parasitics are smaller then in the previous and the required adjust-
ment of the device sizes are also smaller. Hence, repeating this process for a few
iterations will result in a reduced deviation from the performance specification.
When the difference in performance, from one iteration to the next, is smaller
than a user-specified threshold value the feedback loop is terminated.
The current version of the program only take into account the interconnect para-
sitics. There are, however, other parasitic effects associated with the drain and
source area of the transistor. Even though they are taken into account in the tran-
sistor model itself the exact values of these parasitics are not determined until the
layout phase is completed. The reason is that the layout style used will affect the
size of these areas. For example, if two transistors have a common drain the tran-
sistor may share the same drain area in the layout. This yields that the total para-
sitic load caused by the drain areas will be half of that implied by the schematic
description of the circuit.
Taking these effects into account may be important in order to fully handle the
effect of layout dependent parasitics.
92
Design Example
In order to further decrease the effect of layout induced changes the number of
fingers for each transistor may have to be fixed. It is possible to have a case
where the number of fingers for one block changes from one iteration to the next
and then back again, preventing the feedback loop from converging.
If a template-based solution, like that presented here, is used to generate the lay-
out, the regularity of the structure ensures that the change of parasitic load in
each node is kept at a low level for small changes in the device sizes. However, if
a more advanced place and route strategy is used where, e.g., global optimization
methods are used to generate the layout, large changes in the layout can occur.
Hence, the changes to the interconnect wire lengths might be large and thereby
the change to the parasitic loads. In order to prevent this the layout from the pre-
vious iteration must be used as a starting point. Also, the deviation from that lay-
out must be made small for small changes of the device sizes.
It should be noted that the parasitic feedback loop have not been carefully inves-
tigated yet. So far the results presented here are based on a limited number of
generations using only one template. No criterion to ensure convergence have
been derived. However, its is clear that the impact of the layout parasitics is an
important source of error to take into account when designing the circuits. Thus,
this will be an important part to cover more in depth in the future.
93
Layout Generation and Parasitic Feedback
V b ia s1
M3 M4
V b ia s5
V b ia s2 V b ia s2 M 13
M6 M1 M2 M7 Vo u t
V in p V in n CL
M 12
V b ia s3
M8 M9
C co m p
M5 V b ia s4
M 10 M 11
94
Design Example
second iteration (row four) shows an improved performance. This is due to the
fact that only moderate changes are required for the device sizes, and, thus, the
wire lengths, in order to restore the performance. Hence, the difference in the
size of the parasitics is small.
As this process continues, in iteration three and four, the circuit performance
converges to the specification. At iteration four, the change in the cost function,
compared to the previous iteration, is less than the user-specified threshold
value. In this case the threshold value is related to the cost function used in the
device sizing. It is, however, possible to use a different cost function in the para-
sitic feedback loop.
When verifying the result by simulating the final circuit in the Spectre [9] simu-
lator (row seven) the result deviates from that reported by the device sizing tool
(row six). This is due to the simplified transistor model (see Sec. 4.7) used in this
example.
As can be seen in Table 5.1 the impact of the interconnect parasitics are rela-
tively moderate for most performance metrics. However, these effects will have
a larger influence on the circuit performance at higher frequencies and for cir-
cuits with smaller load capacitor. In this case the power consumption must be
95
Layout Generation and Parasitic Feedback
96
Concluding Remarks
Iteration
The device sizes for each iteration is shown in Table 5.2. It is clear that the first
iteration results in the largest change of the device sizes. As the process contin-
ues the device sizes converges to the their final value at iteration 4. The width of
transistor M5 is changed from about 150 µm down to 103 µm in this process.
The performance of the circuit is, however, fairly insensitive to the width of M5
since the current through the transistor may be maintained by instead increasing
its bias voltage. All other transistor sizes must be increased in order to maintain
the performance when the parasitics are added. The layout of the circuit meeting
the performance specification is shown in Fig. 5.7.
97
Layout Generation and Parasitic Feedback
Furthermore, deriving such models for several templates will be a time consum-
ing task. However, by including the layout generation and extraction of the para-
sitics within the optimization loop better results might be achieved.
It is clear from the design example that the parasitics have a degrading effect on
the performance of the circuit. Thus taking into account and compensating for
the parasitics is an important part of the analog design flow.
One fundamental property of our design tool enabling the possibility to perform
the parasitic feedback is the ability to directly, from a schematic description of
the circuit, generate the design equations in short time. Since the equations must
be regenerated at least once (possible several times if more drastic changes in the
layout occurs) this must be performed swiftly.
Also, the first-order approximation of the influence of parasitics used in the
direct performance driven layout generation is not enough for two reasons. First,
there is no guarantee that the layout will meet the performance goals even
though the impact of parasitics on the circuit performance is considered during
the generation. Since the device sizes are fixed during the layout generation large
parasitics can not be compensated for, only reduced. Secondly, the performance
metrics may not be accurately determined by a first-order approximation, thus
the models used during the performance driven layout generation may not be
valid if large changes in the layout parasitics occurs.
In the purposed approach the feedback loop enables us to adjust the device sizes
in order to compensate for the performance degradation during the layout gener-
ation. This, in combination with a (direct) performance driven approach, have
the potential of generating high quality circuit layouts.
98
CHAPTER VI
EXPLORATION AND TRADE-OFFS IN ANALOG
AMPLIFIER DESIGN
As discussed earlier the nonlinear relations between design parameters and cir-
cuit performance in analog circuits are a major obstacle for the designer. In the
previous chapters the design platform of automated analog design have been pre-
sented. The tool render the possibility to design an analog circuits in short time.
When designing a circuit we explore a set of local minima for a particular speci-
fication. In this sense we obtain a range in which we may chose the design
parameters in order to meet the performance specification.
However, no information about the range in which we may select our perfor-
mance metrics is obtained. What are the physical limits of a topology? What is
the cost of increasing one performance metric? How does one topology perform
in comparison to other topologies?
Questions like these are complicated to answer. Simple hand calculations might
give some guidelines. However, the exact effect of increasing/decreasing a spe-
cific performance metric is difficult to anticipate. We might, e.g., assume that the
power consumption will increase when the unity-gain frequency increases. It is,
however, difficult to know the exact increase in terms of Watts. Also, the power
consumption might not be dependent on the unity-gain frequency for a specific
frequency range. In that case the unity-gain frequency may be increased for free,
with respect to the power consumption.
In this chapter we address these questions. We will show how the design tool can
be used to find limitations and possible trade-offs in analog amplifier design.
99
Exploration and Trade-Offs in Analog Amplifier Design
Previous work focused on decreasing the time required to compute the possible
trade-offs at the expense of the accuracy [20, 54]. Another approach, [60], uti-
lizes the multi-objective formulation of the optimization problem in conjunction
with a SPICE like simulator inside the optimization loop. The accuracy of the
results is high, but the use of a SPICE like simulator decreases the computational
efficiency. Hence, a thorough design space exploration is too time consuming.
Further, in simulation-based and equation-based device sizing tools that uses a
DC-solver in its optimization loop a physical circuit solution is obtained in each
iteration. Only the final solution is an optimum for the target specification, all
intermediate solutions are, however, part of the design space, even though they
are no good solutions.
In our case the intermediate solutions are most certainly not physically feasible
since we us a relaxed DC formulation. We may therefore only use the final solu-
tion when exploring the design space. However, this solution is a local minimum
to that specific optimization problem.
Here our emphasis is not to identifying the complete design space, instead we
focus on finding parts of the design space with good solutions. That is, for each
specification we are only interested in the best solution. By the best solution we
mean the local minima, yielding the smallest cost, that the tool is able to find for
a limited set of starting points.
By looking at the best solution, for a set of circuit specifications, the trade-off
between different performance metrics may be obtained. In this chapter the
design tool is used to find trade-offs for a selected set of performance metrics.
100
The Design Space Exploration Tool
120MHz
Cost function
110MHz
Design parameters
6
Power consumption [mW]
3
Trade-off curve
2
1
100 110 120 130 140
Unity−gain frequency [MHz]
Figure 6.2 Comparison of local minima and the trade-off curve.
cost function indicated in Fig. 6.1. For a unity-gain frequency of 120 MHz we
will get a different cost function. In this case the cost function have been repre-
sented by a two dimensional graph, however, in reality this is an n-dimensional
space.
The device sizing tool is used to find local minima for the different cost func-
tions, one in a turn. These may be used to visualize the design space according to
Fig. 6.2. Also, the best solutions at each point in the design space can be used to
plot the trade-off between the performance metrics.
The number of performance metrics that can be swept are only limited by the
time required to get a sufficient number of sized circuits for each specification.
101
Exploration and Trade-Offs in Analog Amplifier Design
Visualization
12
Performance range 8
0
3.4
3.2 200
3 180
2.8 160
2.6 140
Supply voltage [V] 2.4 100
120
2.2 80
2 60 Unity−gain frequency [MHz]
Design space
exploration kernel
102
Design Case
M4
Cc Rc
Vout
Vin- M1b M1a Vin+
CL
Vbias1 M3 Vbias2 M5
I d3 I d5 I d2 2I d7a
SR TS = min -------, -------------------- , SR FC = -------------------
- , and SR CM = -------------------
- (6.1)
CC C L + CC C L + CC CL + C C
103
Exploration and Trade-Offs in Analog Amplifier Design
VDD
Vbias4
M2b M2a
Vbias3 Vbias3
M3b Vin- M1b M1a Vin+ M3a
Vout
Vbias2
M4b M4a
Cc CL
Vbias1
Rc
M5b M5a
VDD
M2b M2a
M5b M5a
Vbias3
Vout
Vin- M1b M1a Vin+
Vbias2 Vbias2
M6b M6a Cc CL
Vbias1 M8
Rc
M7b M7a
104
Design Case
105
Exploration and Trade-Offs in Analog Amplifier Design
106
Design Case
3.6
3.4
Power consumption [mW]
3.2
2.8
2.6
2.4
2.2
Current−mirror
Two−stage
2 Folded−cascode
Figure 6.7 The power consumption vs. the power supply voltage for the three amplifiers.
The graph shows the trade-offs between the power consumption and the power
supply voltage for the circuit topologies. At 3.3 V, the current mirror OTA has
the lowest power consumption, however, when lowering the power supply volt-
age below 2.8 V the two-stage amplifier is instead the best amplifier to use as far
as power is concerned.
For the two-stage amplifier the minimum power consumption, about 2 mW, is
found at the power supply voltage of 2.2 V. Thus, it is possible to decrease the
power supply voltage, and power consumption, without violating the specifica-
tion.
The graph also shows for what power supply voltages the specification can be
met. The two-stage amplifier fails to meet the specification at power supply volt-
ages below 2.15 V. The minimum power supply voltage to meet the input swing
is, using a first-order approximation to guarantee saturated transistors (assuming
that the threshold voltages of M1 and M3 are equal),
107
Exploration and Trade-Offs in Analog Amplifier Design
Current−mirror
Two−stage (deviation of 0.1mW)
8 Two−stage (no limitations)
Folded−cascode
7
Area [1000 µm2]
Figure 6.8 The circuit area as a function of the power supply voltage for the three different
amplifiers. An extra curve for the two-stage OTA where the maximum power
consumption is constrained to be within 1 mW of that shown in Fig. 6.7 is
added.
108
Design Case
are not affected by limiting the power consumption as will be discussed in Sec.
6.2.6. However, there exists a trade-off between these two metrics for the two-
stage OTA.
For the two-stage OTA the area is not affected by scaling the power supply volt-
age from 3.3 V to 2.4 V. However, below 2.4 V the area increases rapidly. This is
due to that the slew rate requirement puts a lower limit on the power supply cur-
rent. Since the positive output swing is approximately
I supply
--------------------- ≤ V DD – V out, DC, max (6.4)
µ 0 c ox W 6
---------------------
2L 6
and Isupply cannot be decreased due to the slew rate requirement the width of M6
must be increased.
It is clear that the area rapidly increases when the point where the circuit fails to
meet the specification is approached. When the upper bounds of the transistor
widths are reached the specification can no longer be met.
The number of circuits examined for, e.g., the folded-cascode OTA is in this case
about 2900 out of these 55% met the specification. The other 45% of the circuits
failed to meet one or several performance goals. There may be several reasons
for this. First, it is clear from Fig. 6.7 that there are no possible solutions below
2.5 V for the topology. Hence all circuits that did use a low power supply voltage
will not meet the specification. However, there are circuits failing where the
power supply voltage is higher than 2.5 V. This is because there exists several
bad starting points for which we get poor solutions.
In Fig. 6.9 the solutions for each value specification is shown. It is clear that
there are several solutions that yield much higher power consumption than the
best solution that is found. In order to accurately investigate the trade-off we
have to use several starting points. Thus, the exact number of starting points
depend on the topology, performance specification, and accuracy requirements.
However, the approximative form of this curve may be plotted using a small
number of designs since about 90% of the circuits are within a 10% deviation
from the best solution found.
Also, for some of the curves, the spacing between design points have been
adjusted. In Fig. 6.7 the spacing between design points for the two-stage ampli-
fier is 0.05 V for power supply voltages above 2.4 V while it is 0.01 V for volt-
ages below in order to capture the curve form accurately when large changes
occur. Currently the grid must be changed manually.
109
Exploration and Trade-Offs in Analog Amplifier Design
3.6
3.4
Power consumption [mW]
3.2
2.8
2.6
2.4
2.2
2.5 2.6 2.7 2.8 2.9 3 3.1 3.2 3.3 3.4
Power supply voltage [V]
Figure 6.9 The solutions for each specification tested with the folded-cascode OTA.
110
Design Case
50 Current−mirror
Two−stage
45 Folded−cascode
40
Power consumption [mW]
35 5
30 4
25 3
20 2
50 100 150
15
10
Figure 6.10 The power consumption as a function of the unity-gain frequency for the
amplifiers.
is the topology with the lowest power consumption. For all topologies, the power
consumption is increased at high unity-gain frequencies.
The circuit areas for the amplifiers as a function of the unity-gain frequency are
shown in Fig. 6.11. The power consumption is not constrained. The circuit area
must be increased for larger unity-gain frequencies.
111
Exploration and Trade-Offs in Analog Amplifier Design
14
12
Area [1000 µm2]
10
4
Current−mirror
Two−stage
2 Folded−cascode
3.6
Current−mirror
3.4 A E Two−stage
Folded−cascode
3.2
B
3
Area [1000 µm2]
2.8
2.6
C
2.4
2.2
1.8
D
1.6
Figure 6.12 The circuit area as a function of the power consumption for the amplifiers.
112
Design Case
The points (A-D) in Fig. 6.12 indicate the best choices of circuit realizations for
our application. In this case the current-mirror OTA is the best topology with
respect taken to both area and power consumption. Selecting circuit D instead of
A, B, or C will result in a power reduction of 17%, 31%, and 33%, respectively.
For the circuit area the savings are 55%, 47%, and 35% for D compared to A, B,
and C. Selecting the best topology thus yield large savings i terms of both area
and power consumption in this case.
Notice that the selected circuits are most likely not found using manual design
techniques. Hence, the savings can be even larger in that case. Furthermore,
since a large number of poor circuit realizations exist, there is a large risk of end-
ing up with an even worse implementation, e.g., the point E, than indicated by
the curves.
113
Exploration and Trade-Offs in Analog Amplifier Design
6.5
Area [1000 µm2]
5.5
4.5
3.5
Figure 6.13 The area requirements of the two-stage amplifier with different constraints on
the total power consumption.
We have also shown how important performance metrics such as power supply
voltage, power consumption, and area may be traded in three OTAs topologies.
By selecting the best circuit topology out of these, large savings in terms of
power consumption and circuit area are obtained. We have illustrated the pro-
posed approach on three small examples, but the principle and the optimization
tool can be applied on larger circuits. The number of design points and the time
required to evaluate the cost function for each topology will, however, put an
upper limit on the parameter space that can be explored.
The comparison with simple approximations also show that the tool is capable of
finding good circuit solutions. Also, it is hard to achieve the same performance
using a manual design approach. Furthermore, since a large number of circuits
have been examined there should be at least some design points that contradict
what seams to be a continuos relation between the performance metrics. How-
ever, no such solutions where found even though the total number of circuit
examined is in the order of 50 000.
Further, one could argue that the results presented here are what we could expect
from a multi objective optimization. The best circuits in Fig. 6.12 could be found
by optimizing both the area and the power consumption simultaneously. How-
ever, such approaches will not contain any information about the cost involved
114
Design Case
115
Exploration and Trade-Offs in Analog Amplifier Design
116
CHAPTER VII
CONCLUSIONS
In this chapter we summarize the work done so far and discuss some future
directions of the project.
7.1 Summary
The work done addresses the problem of increasing the level of automation in
the analog design flow. A design platform that automatically sets up the design
equations and uses the equation-based approach to find the device sizes in analog
amplifiers is presented.
In contrast to previous usage of the equation-based approach we do not compro-
mise with the performance accuracy to reduce the run time. Instead, the same
high-accuracy device models as in a standard circuit simulator are used. The
penalty for this is that the run time is increased.
This first version of the design platform is modularized in order to support and
simplify changes of the various sub-tools and algorithms.
Further, the quality of the solutions reported by the design tool is high. Experi-
mental results shows that the tool can produce circuits with at least as good per-
formance as obtained using manual design methods.
The execution time for relatively large circuits is reasonable, although the design
tool is implemented in MATLAB and only minor efforts to improve the speed
117
Conclusions
has been done. Short execution time enables the possibility to explore the design
space and find possible trade-offs in analog circuit design.
Layout induced performance degradation is becoming more important as the
technology scales. In our approach we use a parasitic feedback loop in order to
meet the design goals. The method introduces a coupling between device sizing
and layout generation that is necessary in analog design.
118
REFERENCES
[7] S. Balkir, G. Dündar, and A. Selcuk Ögrenci, Analog VLSI Design Auto-
mation, CRC Press, Boca Raton, FL, USA, 2003.
119
[9] Cadence Design Systems Inc., homepage: www.cadence.com, Nov.
2003.
[10] Y. Cheng and C. Hu, MOSFET modeling & BSIM3 user’s guide, Kluwer,
Norwell, MA, USA, 1999.
[11] J.M., Cohn, D.J. Garrod, R.A. Rutenbar, and, L.R. Carley, “KOAN/
ANAGRAM II: New Tools for Device-Level Analog Placement and
Routing,” IEEE J. Solid-State Circuits, vol. 26, no 3, pp. 330-342, Mar
1991.
[12] M.G.R Degrauwe, et al., “IDAC: An Interactive Design Tool for Analog
CMOS Circuits,” IEEE J. Solid-State Circuits, vol. 22, no. 6, pp. 1106-
1116, Dec. 1987.
[17] G.G.E. Gielen and W. Sansen, Symbolic Analysis for Automated Design
of Analog Integrated Circuits, Kluwer, Norwell, MA, USA, 1991.
[20] R. Harjani, R.A. Rutenbar, and L.R. Carley, “Analog Circuit Synthesis
and Exploration in OASYS,” Proc. IEEE Int. Conf. Computer Design,
pp. 44-47, Ray Brook, NY, USA, Oct. 3-5, 1988.
120
[21] R. Harjani, R.A. Rutenbar, and L.R. Carley, “OASYS: A Framework for
Analog Circuit Synthesis,” IEEE Trans. Computer-Aided Design, vol. 8,
no. 12, pp. 1247-1266, Dec. 1989.
[22] J.P. Harvey, M.I. Elmasry, and B. Leung, “STAIC: An Interactive Frame-
work for Synthesizing CMOS and BiCMOS Analog Circuits,” IEEE
Trans. Computer-Aided Design, vol. 11, no. 11, pp. 1402-1417, Nov.
1992.
[23] A. Hastings, The Art of Analog Layout, Prentice Hall, Upper Saddle
River, NJ, USA, 2001.
[25] M. del Mar Hershenson, S.P. Boyd, and T.H. Lee, “GPCAD: A Tool for
CMOS Op-Amp Synthesis,” I EEE/ACM Int. Conf. on Computer-Aided
Design, pp. 296-303, San Jose, CA, USA, Nov. 8-12, 1998.
[26] M. del 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, no. 1, pp. 1-21, Jan. 2001.
[27] D.H. Horrocks and M.C. Spittle, “Genetic Algorithms,” IEE Colloquium
Circuit Theory and DSP, pp. 4/1-4/5, London, UK, Feb. 18, 1992.
[31] D.A. Johns and K. Martin, Analog Integrated Circuit Design, John Wiley
and Sons, New York, NY, USA, 1997.
[32] H.Y. Koh, C.H. Sequin, and P.R. Gray, “OPASYN: A Compiler for
CMOS Operational Amplifiers,” IEEE Trans. Computer-Aided Design,
vol. 9, no. 2, pp. 113-125, Feb. 1990.
[34] P.J.M. van Laarhoven and E.H.L. Aarts, Simulated Annealing: Theory
and Applications, D. Reidel, Dordrecht, Holland, 1987.
121
[35] K. Lampaert, G. Gielen, and W. Sansen, Analog Layout Generation for
Performance and Manufacturability, Kluwer, Dordrecht, The Nether-
lands, 1999.
[37] C.A. Makris and C. Toumazou, “Analog IC design automation. II. Auto-
mated circuit correction by qualitative reasoning,” IEEE Trans. Com-
puter-Aided Design, pp. 239-254, vol. 14, no. 2, Feb. 1995
[39] P.C. Maulik and L.R. Carley, “Automating Analog Circuit Design Using
Constrained Optimization Techniques,” IEEE Int. Conf. Computer-Aided
Design, pp. 390-393, Santa Clara, CA, USA, Nov. 11-14, 1991.
[40] P.C. Maulik, L.R. Carley, and R.A. Rutenbar, “A Mixed-Integer Nonlin-
ear Programming Approach to Analog Circuit Synthesis,” Proc. Design
Automation Conf., pp. 698-703, Anaheim, CA, USA, June 8-12, 1992.
[44] C.B. Moler and G.W. Stewart, “An Algorithm for Generalized Matrix
Eigenvalue Problems,” SIAM J. Num. Anal., pp. 241–256, 1973.
122
[49] E.S. Ochotta, R.A. Rutenbar, and L.R. Carley, “Synthesis of High-Per-
formance Analog Circuits in ASTRX/OBLX,” IEEE Trans. Computer-
Aided Design, vol. 15, no. 3, pp. 273-294, Mar. 1996.
[51] R. Phelps, M. Krasnicki, R.A. Rutenbar, L.R. Carley, and J.R. Hellums,
“Anaconda: Simulation-Based Synthesis of Analog Circuits Via Sto-
chastic Pattern Search,” IEEE Trans. Computer-Aided Design, vol. 19,
no. 6, pp. 703-717, June 2000.
[52] G. Van der Plas, et al., “AMGIE-A Synthesis Environment for CMOS
Analog Integrated Circuits,” IEEE Trans. Computer-Aided Design, vol.
20, no. 9, pp. 1037-1058, Sept. 2001.
[57] R.A. Rutenbar, “Analog Design Automation: Where are We? Where are
We Going?,” Proc. IEEE Custom Integrated Circuits Conf., pp. 13.1.1-
13.1.7, San Diego, CA, USA, May 9-12, 1993.
[59] SKILL Lanuage and Development, Cadence Design Systems Inc., 1997.
123
[61] D.K. Su, M.J. Loinaz, S. Masui, and B.A. Wooley, “Experimental
Results and Modeling Techniques for Substrate Noise in Mixed-Signal
Integrated Circuits,” IEEE J. Solid-State Circuits, vol. 28, no. 4, pp. 420-
430, April 1993.
[66] J. Vlach and K. Singhal, Computer Methods for Circuit Analysis and
Design, Van Nostrand Reinhold, New York, NY, USA, 1983.
124