Vlsi Lab5
Vlsi Lab5
Objective
Introduction
Inverting amplifiers are fundamental building blocks of electronic circuits. These amplifiers are used in a
variety of circuit applications such as the gain stage of operational amplifiers and the NOT gate in digital
logic. Due to the utility of inverting amplifiers, learning the process of analyzing and designing these basic
building blocks is important to successful circuit design.
Studying inverting amplifiers also gives us insight into basic circuit concepts such as small-signal frequency
response and feedback. In this lab, the small-signal model of a generic inverting amplifier is analyzed while
a generic design procedure is developed. Next, the lab manual presents advantages and disadvantages of
several circuit structures. Finally, the students will design various inverting amplifiers by choosing a circuit
structure and developing a design procedure.
The basic inverting amplifier is shown in Figure 7-1. The input signal Vin will contain an AC signal
component as well as a DC component used to set the operating point:
Transistor M1 is called the driver since the input signal controls the amplifier from this point. An ideal load
will have infinite impedance. In the basic inverting amplifier circuit of Figure 7-1, the load is represented
by an ideal current source.
The DC operating point of the circuit is determined by IBIAS and VBIAS. These currents and voltages
determine the transistor's small-signal parameters and establish the quiescent output voltage.
vdd
Ibias
Vin Vout Vout
Vin M1
vss
Figure 7-1: Basic Inverting Amplifier
The small-signal model for an inverting amplifier is given in Figure 7-2. The circuit consists of two
connected nodes which will result in two poles and one zero. The resistance RA represents the voltage
source's resistance RS and any resistance used to establish the DC biasing. The resistance RB includes the
load resistance and the small-signal output resistance of the driving transistor. The capacitance CA includes
source capacitance and the small-signal input capacitance of the transistor. Similarly, CB represents the load
capacitance and the small-signal input capacitance of the transistor. Finally, CC consists of any external
stray capacitance and internal capacitance between the drain and gate of the driving transistor.
RA CC
Vin Vout
+
VA CA G m VA RB CB
-
Figure 7-2: Generic Inverting Amplifier Small-Signal Model
Using node voltage equations or mesh currents, the input-output transfer function for the inverting amplifier
can be obtained. The transfer function for the generic amplifier from Figure 7-2 is given by:
1
1
This formula is too complicated to gain any useful insight as to how various resistors and capacitors affect
the frequency response of the inverting amplifier. Various assumptions can be made to simplify (1). If we
make the assumptions CB >> CA and CC >> CA, then the transfer function can be simplified to:
1
2
1 1 1
This simplification is useful because CC is generally a large capacitor used to set the gain-bandwidth
product, and the total load capacitance CB is generally larger than any parasitic input capacitances.
Next, we can simplify (2) in two different meaningful ways. The first way assumes that RA is small while
the second assumes RA is large. Using the first assumption that RA is small, we have RA << RB and RA <<
1/Gm. With this simplifying assumption, the transfer function in (2) becomes:
1
3
1 1
Also, if we assume the poles are far apart (p1 << p2), then we can use the following simplification when
factoring:
The above simplification assumes a dominant pole exists. The dominant pole is the pole which is
significantly closer to the origin than all the other poles. The non-dominant poles occur at a much greater
frequency than the dominant pole. Using this simplification, the denominator in (3) can be factored as
follows:
1
4
1 1
Now that the transfer function is in factored form, we can find the DC gain, poles, and zero for the case
when CA is small and RA is small:
Assuming RA is large (RA ≈ RB and RA >> 1/Gm), the transfer function given by (2) can be factored as:
1
5
1
With this transfer function in factored form, we can find the DC gain, poles and zero for the case when CA
is small and RA is large:
1 1
| |
Notice that the dominant pole had been shifted towards the origin. This is an example of the Miller Effect.
Next the frequency response of the two transfer functions derived above will be examined. For the case
when RA is small, the poles are greatly separated. Usually this system can be represented adequately by a
first-order transfer function. The pole-zero diagram is shown in Figure 7-3. Since this system is
approximately first-order, any stability problems will be less likely, however, the right-half plane zero will
reduce the phase margin. If stability becomes a problem, increase CB relative to CC.
Figure 7-3: Pole-Zero Diagram for Small RA
For the case when RA is large, the system consists of a dominant pole, a non-dominant pole, and a right-
half plane zero. Due to these factors reducing phase margin, careful circuit design is required to guarantee
stability. The zero reduces the phase margin and should be placed as far to the right as possible, while the
non-dominant pole should be placed as far to the left as possible. Figure 7-4 illustrates the pole-zero diagram
for this system.
Two other simplifications are shown below. The first simplification assumes CA >> CC, and RA ≥ RB. This
situation may occur when the inverter is used to amplify a signal from a capacitive transducer:
The second set of equations assumes CB >> CC, CB >> CS and RB ≥ RA. These equations are useful if a
wideband inverter is driving a capacitive load:
1
Design Description
This section of the lab will discuss in detail four inverting amplifier configurations. The first inverter uses
a current mirror as an active load. The second is a basic inverter commonly used in CMOS digital logic.
The last two amplifiers employ diode-connected transistors as loads. Each of these amplifiers have
characteristics which makes their use advantageous in certain applications.
The inverter of Figure 7-5 employs an NMOS driver and a PMOS current mirror as the load. The current
mirror provides a large small-signal output resistance and constant biasing current. The biasing current
establishes the operating point for the transistor M1, which in turn determines its small-signal
transconductance. This circuit can provide a high output resistance and a large small-signal gain.
A disadvantage of this circuit is the need for a biasing current which requires additional circuitry. However,
since this circuit is biased by another circuit, this amplifier can be programmed or tuned to operate at a
specific operating point even during the presence of process variations.
Design Procedure:
This design procedure is only an example. To achieve the desired inverter performance another procedure
may need to be used.
1. Determine the Miller compensation capacitor Cm from the gain-bandwidth product (GBW)
specification. Remember GBW = Av0p1, Av0 = -GmRout and p1 = -1/(RoutCm).
2. To guarantee stability be sure the phase margin is greater than 60º, make sure the non-dominant
pole p2 is at least three times greater than the GBW. Use this information along with the load
capacitance to determine gm1.
4. Using gm1 and IBIAS, determine the size for transistor M1.
5. Use a 1:1 current mirror sized such that the transconductance is equal to that of the driver transistor.
Digital CMOS Inverter:
Figure 7-6 illustrates the digital CMOS inverter. This circuit is commonly used in digital logic circuits.
Since both transistors are driven by the input source, the voltage gain will be higher with this circuit than
the amplifier with a current mirror load.
An advantage of this circuit is that it does not need external biasing circuitry. The operating point of this
circuit is determined by the ratio of the transistor sizes. Using large transistors will cause Gm to be high.
This allows higher frequency operation when driving large capacitive loads.
Figure 7-7 illustrates the effect of changing the ratio of the transistors. Typically, the transition region will
be half the supply voltage. In this case, the products of the transconductance and transistor sizes for the
NMOS and PMOS must be equal. If process variations cause KPP or KPN to change, then the transition
region will shift.
Figure 7-7 also shows the gain and linearity of the amplifier. The slope of the curve at any point is the gain.
The vertical section of the graph is a region of high gain. Since the slope of the curve changes with signal
amplitude, the amplifier exhibits high distortion. To obtain low distortion operation, the input voltage must
remain small.
W
KPP
L P
1
W
KPN
W L N
KPP
L P
1
W
KPN W
L N KPP
L P 1
W
KPN
L N
This design procedure is only an example. To achieve the desired performance another procedure may need
to be used.
1. First, notice the DC gain is determined by the power supply voltage for symmetrical operation:
2 2
2. Determine the Miller compensation capacitor Cm from the gain-bandwidth product (GBW)
specification or dominant pole specification. Remember GBW = Av0p1.
3. To guarantee stability, be sure the phase margin is greater than 60º. This requires the non-dominant
pole p2 to be at least three times higher in frequency than the gain-bandwidth product (p2 > 3 GBW).
Use this information to determine gm1.
5. Using the value for gm1 and the above equation, determine the size for transistors M1 and M2.
Remember, the current through both transistors is the same.
,
,
,
Figure 7-8 shows a PMOS inverter that does not require a CMOS process. Due to the diode-connected load,
the inverter has a low output resistance which in turn gives it a low gain. This inverter however is very
linear.
The derivation of the large-signal transfer function is easy. Assume both transistors have the same size and
perfectly matched. Since the drain current is the same for both transistors:
1
| |
2
2 | |
| | | |
| | | |
Design Procedure:
This design procedure is only an example. To achieve the desired inverter performance another procedure
may need to be used.
1. First, notice the DC gain is determined by the sizes of the transistors. For a unity-gain buffer, the
gain is one.
2. Determine the Miller compensation capacitor Cm from the dominant pole location of the GBW
specification
3. To guarantee stability, be sure the phase margin is greater than 60º. This requires the non-dominant
pole p2 to be at least three times higher in frequency than the GBW. Use this information to
determine gm1 and gm2.
4. Using the value for the transistor transconductance, determine the size for the transistors M1 and
M2. Remember, the current through both transistors is the same.
The inverter of Figure 7-9 is similar to the previous inverter except it requires a CMOS process. Matching
of transistors is also difficult. Use a design procedure similar to the previous inverter.
Table 7-1 lists the capacitors and resistors from Figure 7-2 and gives the parameter value for each of the
four configurations. This table does not include all possible parasitic capacitance associated with the
transistors. The table also does not include stray capacitances associated with circuit layout, which might
be a significant component of the frequency response.
Table 7-1: Relationship between the Generic Amplifier Model and the Inverter Circuits
Prelab
The prelab exercises are due at the beginning of the lab period. No late work is accepted.
1. Create a table ranking the various amplifiers as good, medium or poor in the following categories:
gain, input impedance, output impedance and linearity. Include the expressions for each design
specification (except for linearity).
2. Derive the transfer function for the generic amplifier by applying Miller's theorem. Compare this
transfer function to the one derived in the lab manual. Comment on the utility of Miller's theorem.
(Hint: Simplify all input capacitances as Cin and output capacitances as Cout. Cin and Cout will contain
the terms CC(1+A0) and CC(1+1/A0), respectively).
1. Simulate the designs from the prelab. Simulate and perform design iterations until your circuit
operates within the given specifications. These simulation results will be included in the final lab
report.
a) Run a DC sweep of each of the inverter circuits from -0.9 V to 0.9 V and use markers to
mark the zero crossing voltage for the X-axis and Y-axis (points where X = 0 and Y = 0,
also remember the "m" hotkey is used for marker), and comment on the linear region.
Determine input offset and add a bias source to the circuit to insure Vout = Vin = 0.
b) Create frequency response plots and set markers for GBW, PM, p1 and Av0.
2. Layout your final designs and include the LVS reports (again NetID and time stamp required for
credit).
3. Repeat simulations from part 1 on the layout. Be sure parasitic capacitances from the layout are
included.