A Shunt-Feedback Amplifier

Feedback is widely used in amplifiers and other circuits to typically trade-off gain for (1) increased robustness in the face of parameter variations and uncertainty, (2) increased bandwidth, and (3) improved input and output impedances. The cost of feedback, however, includes the possibility of our circuits becoming unstable. Hence we need to make sure that we verify the stability of our feedback circuits.

Analysis of Feedback Amplifiers

Being able to determine the loop gain, $T\left(s\right)=A\left(s\right)\cdot F$, is key to analyzing the behavior of feedback amplifiers, since $T\left(s\right)$ determines (1) the closed-loop amplifier small-signal response, and more importantly, (2) the stability of the amplifier.

In the ideal case, we can get the loop gain by simply breaking the loop, as seen in Figure 1, where

$T\left(s\right)=A\left(s\right)\cdot F=\frac{v_o}{v_{\epsilon}}\cdot \frac{v_{fb}}{v_o}$

Figure 1: Breaking the feedback loop to get $T\left(s\right)$.

Then we can easily run a simulation and plot the magnitude and phase of $T\left(s\right)=\tfrac{v_{fb}}{v_{\epsilon}}$. However, in most real circuits, breaking the loop to determine the loop gain is not so straightforward. Consider the feedback amplifier in Figure 2.

Figure 2: Breaking the loop in a feedback circuit.

Notice that by breaking the loop, we change (1) the DC bias, both voltage and current, of the negative input terminal of the amplifier, and (2) the AC or small-signal load seen by the feedback circuit. Thus, the resulting circuit can be very different from the one we want to analyze, leading to incorrect loop gain results.

The Loop Gain of a Shunt-Feedback (Shunt-Shunt) Amplifier

Consider a simple shunt-feedback amplifier in Figure 3, using a common-emitter amplifier as the forward gain, and a feedback network composed of the resistor $R_f$. Note that this is the same common-emitter amplifier in Figure 1 of tutorial 10, where the two current mirrors are replaced with $I_{bias}$ and $V_{bias}$ to simplify the schematic.

Figure 3. A shunt-feedback amplifier using a common-emitter amplifier as the forward gain, and a resistor $R_f$ as the feedback network.

Recall that for a shunt-shunt feedback amplifier, the small-signal input is a current, and the output is a voltage. Thus, the forward gain is

$R_m\left(s\right) = \frac{v_o}{i_{\epsilon}}=-\left(Z_{\pi 1}\|R_f\right)\cdot g_{m1} \cdot \left(Z_o\|R_f\right)$

where $Z_{\pi 1}=r_{\pi 1} \| \tfrac{1}{s\cdot C_{in}}$ and $Z_o=r_{o1}\|R_{I_{bias}}\|\tfrac{1}{s\cdot C_{load}}$. The $R_f$ terms account for the feedback network loading both the input and output of the common-emitter amplifier. Let us ignore $C_{\mu}$ for now since the zero is at a relatively high frequency compared to the poles.

The feedback factor is then obtained as

$F=\frac{i_{fb}}{v_o}=-\frac{1}{R_f}$

Thus, we get the (open) loop gain

$T\left(s\right)=R_m\left(s\right)\cdot F=\frac{v_o}{i_{\epsilon}}\cdot \frac{i_{fb}}{v_o}=\frac{i_{fb}}{i_{\epsilon}}$

From here, we can get the closed-loop gain:

$R_{m,CL}\left(s\right)=\frac{1}{F}\cdot \frac{T\left(s\right)}{1+T\left(s\right)}$

In order to determine the loop gain via simulation, we need to make sure that (1) the DC bias and (2) the small-signal loading conditions are preserved. One way to accomplish this is to use capacitors and inductors with very large values to selectively pass or block DC signals, and a replica amplifier to ensure correct loading conditions, as shown in Figure 4.

Figure 4: Breaking the feedback loop while maintaining the DC bias and small-signal loading conditions.

At DC, the two inductors ($L_{\infty}$) act like short circuits, preserving the bias conditions, and are equivalent to open circuits at any other frequency.

Similarly, the capacitor, $C_{\infty}$, is equivalent to an open circuit at DC, isolating the amplifier from the replica. At any other frequency, it acts like a short circuit, presenting the correct load to the feedback network.

It is important to note that any DC current flowing through the feedback resistor, $R_f$, must be supplied by the bias current source, $I_{bias}$, and must be taken into consideration when designing the bias current source. In this example, however, we can make the resistors relatively large, such that the current through $R_f$ is small compared to $I_{C1}$.

Loop Gain Simulation

Our SPICE netlist contains a description of the common-emitter amplifier subcircuit, instantiated three times: (1) the test amplifier used to obtain the loop gain, (2) the replica amplifier as a load when we break the loop using our large-valued inductor and capacitor, and (3) a closed loop shunt-feedback amplifier used to get the closed-loop response. In this example, $R_f=250\mathrm{k\Omega}$, $R_S=125\mathrm{k\Omega}$, $L_{\infty}=1000\mathrm{H}$, and $C_{\infty}=1000\mathrm{F}$.

We can use this Python script to run an AC analysis to get the magnitude of (1) the forward gain, $R_m$, (2) the inverse of the feedback factor, $\tfrac{1}{F}$, (3) the loop gain, $T$, and (4) the closed-loop gain, $R_{m,CL}$, as shown below:

Figure 5: The simulated loop gain of the shunt-feedback amplifier.

As expected, when $\left|T\left(s\right)\right|>1$ (i.e. 0 dB), or equivalently, when $\left|R_m\right|>\left|\tfrac{1}{F}\right|$, the closed-loop gain becomes

$\left|R_{m,CL}\right|=\left|\frac{1}{F}\cdot \frac{T}{1+T}\right|\approx \left|\frac{1}{F}\right|$

and when $\left|T\left(s\right)\right|<1$ (i.e. 0 dB), or $\left|R_m\right|<\left|\tfrac{1}{F}\right|$, we get

$\left|R_{m,CL}\right|=\left|\frac{1}{F}\cdot \frac{T}{1+T}\right|=\left|\frac{1}{F}\cdot \frac{R_m\cdot F}{1+T}\right|\approx \left|R_m\right|$

The unity-gain frequency of the loop gain, $f_u$ is when $\left|T\left(s\right)\right|=1$ (i.e. 0dB), and marks the boundary between $\left|T\left(s\right)\right|>1$ and $\left|T\left(s\right)\right|<1$.

By plotting the phase of the loop gain, we can derive the phase margin of the shunt-feedback amplifier, as shown below:

Figure 6: The phase response of $T\left(s\right)$.

We can see that $\angle T\left(s\right) = -74.7^{\circ}$ at the unity gain frequency, $f_u$. Thus, the phase margin (PM) of the shunt-feedback amplifier is

$PM=\angle T\left(s\right) - \left(-180^{\circ}\right)=105.3^{\circ}$

Thus, we can say that this particular amplifier is stable. It would be a good exercise to see if you can vary the phase margin by varying the locations of the poles and the zero.

Closed-Loop Transient Response

Note that we can easily relate the current input, $i_i$, of the shunt-feedback amplifier to the input voltage, $v_i$. Since

$R_{m,CL}\left(s\right)=\frac{v_o}{i_i}$

Then

$\frac{R_{m,CL}\left(s\right)}{R_S}=\frac{v_o}{i_i\cdot R_S}=\frac{v_o}{v_i}$

Or equivalently

$A_{v,CL}}\left(s\right)=\frac{v_o}{v_i}=\frac{R_{m,CL}\left(s\right)}{R_S}=\frac{1}{F\cdot R_S}\cdot \frac{T\left(s\right)}{1+T\left(s\right)}=-\frac{R_f}{R_S}\cdot \frac{T\left(s\right)}{1+T\left(s\right)}$

Thus, for a low-frequency input sinusoid, we can estimate the voltage gain using the value of $T_0$ from our AC analysis:

$A_{v0,CL}=-\frac{R_f}{R_s}\cdot \frac{T_0}{1+T_0}=-2\cdot \frac{3.3}{1+3.3}=-1.53$

Note that as the magnitude of the loop gain is increased, the closed-loop gain approaches $-\tfrac{R_f}{R_S}$. This is desirable since the gain can be determined solely by resistor values, and therefore easier to control. What can you do to increase the loop gain?

The plot below shows the simulated closed-loop transient response of the shunt-feedback amplifier, with a 1-Hz input sinusoid.

Figure 7: The closed-loop transient response of the shunt-feedback amplifier.

From Figure 7, we can see that the results of our transient simulation are in very good agreement with the results of our AC analysis.

End of Tutorial 11

Congratulations! You have just obtained the loop gain, as well as the closed-loop response of a shunt-feedback amplifier via SPICE, and verified this response using a transient analysis.