ECE 126
Introduction to Analog CMOS IC
Design
Submitted by:
Robert Tac-an Nericua
Submitted to:
Prof. Allenn dela Cerna Lowaton
Introduction
In this modern age, electronic systems are very common to our everyday lives. One of the most
important electronic systems is an electronic amplifier which is very dominant especially in wireless
communications, broadcasting, instrumentation and all kinds of audio equipment. An electronic
amplifier is an electronic device that increases the voltage, current, or power of a signal.
It does this by taking energy from a power supply and controlling the output to match the input
signal shape but with a larger amplitude. In this sense, an amplifier modulates the output of the power
supply to make the output signal stronger than the input signal. An amplifier is effectively the opposite
of an attenuator: while an amplifier provides gain, an attenuator provides loss.
In the previous laboratory activities we only deal with single stage amplifiers. In this laboratory
activity we will explore and deal with two stage amplifier. This amplifier obviously has two stages in
amplifying signals. For this activity we will focus on the behavior of a two stage amplifier on the
following parameters: gain, bandwidth, Phase Margin, ICMR (Input Common Mode Range), output
voltage swing, CMRR (Common Mode Rejection Ratio), Slew Rate and Setting Time.
Gain- the ratio between the magnitude of output and input signal
Bandwidth- the width of the useful frequency range
Phase Margin- is the difference between the phase, measured in degrees, and 180, for
an amplifier's output signal (relative to its input), as a function of frequency
ICMR (Input Common Mode Range)- the range of the input common mode voltage
Output Voltage Swing- the range of output voltage which can operate normally
CMRR (Common Mode rejection Ratio)-the ability of rejecting common mode signal
Slew Rate-the maximum rate of change of the output
Setting Time-the time during output signal is stable.
We will simulate the circuit for this laboratory activity using HSPICE A-2008.03 by Synopsys. The
model that we are going to use in this laboratory activity is a TSMC (Taiwan Semiconductor
Manufacturing Company, Limited) RF Spice Model of 0.18m Mixed Signal SALICIDE (1P6M+, 1.8V/3.3v)
Process.
Below are the circuits that we will be using in this laboratory activity.
Objectives
The following are the objectives of this laboratory activity:
a. To be able to simulate the differential amplifier and two stage amplifier respectively and
compare the gain, -3dB frequency and Gain Bandwidth;
b. To be able to simulate the two stage amplifier configured as unit gain buffer and observe the
stability and output waveform;
c. To be able to simulate the effect of phase margin when adding compensation capacitor to the
two stage amplifier;
d. To be able to simulate and observe the effect of phase margin with varying compensation
capacitor in the two stage amplifier and also the effect of the compensation capacitor to slew
rate;
e. To be able to simulate and observe the effect after adding a compensation resistor in the
capacitor compensated-two stage amplifier; and ,
f. To answer the end questions attached to this laboratory activity at the end of the Spice
simulations.
Laboratory Procedures
In doing the simulation for this laboratory activity the following procedures are to be
performed:
1. Following the circuit below, simulate differential amplifier and two stage amplifier respectively
and compare the gain, -3dB and Gain Bandwidth.
2. Connect the two stage amplifier as a unit gain buffer, simulate it and observe the stability and
output waveform.
3. Following the circuit below, simulate the effect of phase margin when adding compensation
capacitor.
4. Vary the value of the compensation capacitor to observe the effect to phase margin and also to
observe the effect to slew rate.
5. Following the circuit below, observe the effect after adding a compensated resistor.
For Step 1.
Following the circuit given in step 1 we have generated the following code.
ece 126 lab 4 two_stage_amplifier_Nericua_step1.sp In this simulation we introduce a new .meas command.
.option post probe
.meas allows us to measure the numerical value that we need
.lib 'C:\synopsys\Hspice_A-2008.03\library\rf018.l' tt such voltage, current, power, frequency etc. Take .meas ac
m1 vx vin+ v2 gnd nch l=1u w=5u
GB_vx when Vdb(Vx)=0 as an example. This line of code will
allow us to determine the value of the frequency in which
m2 v1 vin- v2 gnd nch l=1u w=5u
VdB is equal to zero.
m3 vdd v1 v1 vdd pch l=1u w=11u
iref vdd v3 8u
.op
.end
Differential Amp
The blue trace is the VdB(vout) while the other one is VdB(Vx) which is in green trace.
From the simulation result, the performance of a Two Stage Operational Amplifier is better than
Differential Amplifier.
For Step 2.
Following the circuit given in step 2 we have generated the following code.
If we connect the circuit as a unit gain buffer, we can see from the simulation result that phase
margin < 0, so it will become an unstable system, In fact, the typical value of phase margin must be
larger than 45 to form a stable system.
For Step 3.
Following the circuit given in step 2 we have generated the following code.
ece 126 lab 4 two_stage_amplifier_Nericua_step3.sp
.lib 'C:\synopsys\Hspice_A-2008.03\library\rf018.l' tt
iref vdd v3 8u
.op
.alter
cc vx vout 2p
.end
Without CC
CC=2pF (gain)
Without CC
CC=2pF (Phase)
For Step 4.
Following the circuit given in step 3 having different CC we have generated the following code.
CC=6pF (Gain)
CC=4pF (Gain)
CC=2pF (Gain)
CC=6pF (phase)
CC=4pF (phase)
CC=2pF (phase)
iref vdd v3 8u
We can see that while the CC increases the phase margin also increases and decrease the slew
rate, because the larger CC needs more time to charge or discharge.
For Step 5.
Following the circuit given in step 3 having different CC we have generated the following code
ece 126 lab 4 two_stage_amplifier_Nericua_step5.sp vdd vdd gnd 1.8 rc vx vcr 1.234k
m6 vdd vx vout vdd pch l=1u w=66u .probe ac vdb(vout) vdb(vx) vp(vout)
m7 vout v3 gnd gnd nch l=1u w=30u .meas ac GB_vout when Vdb(Vout)=0
Let RC=6k.
For simulation of the Input Common Mode Range, the following code is implemented.
.lib 'C:\synopsys\Hspice_A-2008.03\library\rf018.l' tt
iref vdd v3 8u
.op
Questions
1. Why do we use Common Source structure as the output stage of Two-Stage Operational
Amplifier? What if we use the other structures?
Common Source configuration is being used because it will produce a very large voltage gain as
compared to other configurations. Common Drain has a dc gain of less than unity while the Common
Gate provides a positive dc gain but a function of its body-effect
Conclusion
I hereby conclude that I have performed the following:
a. Simulated the differential amplifier and two stage amplifier respectively and compared the gain,
-3dB frequency and Gain Bandwidth;
b. Simulated the two stage amplifier configured as unit gain buffer and observed the stability and
output waveform;
c. Simulated the effect of phase margin when adding compensation capacitor to the two stage
amplifier;
d. Simulated and observed the effect of phase margin with varying compensation capacitor in the
two stage amplifier and also the effect of the compensation capacitor to slew rate;
e. Simulated and observed the effect after adding a compensation resistor in the capacitor
compensated-two stage amplifier; and,
f. Answered the end question attached in this laboratory activity at the end of the Spice
simulations.