MOSFET differential amplifier gain

In summary, In order to eliminate Vin1 and Vin2 from the gains Av1 and Av2 of a differential amplifier, you first need to find expressions involving gm*rds. You can then use the extreme symmetry of the circuit to simplify the expressions. Finally, you use system of three equations to solve for the gains.
  • #1
etf
179
2
Hi!
Here is my task:
For differential amplifier on scheme calculate voltage gains Av1=vout1/(vin1-vin2) and Av2=vout2/(vin1-vin2). MOSFET's M1 and M2 have same characteristics. MOFSTE's M3 and M4 have same characteristics. All MOSFET's are in saturation. Assume that gm*rds>>1.

hgfjgfjhgj.jpg

How to use fact that gm*rds>>1?
I did AC Analysis of this amplifier and found vout1 in function of vin1 and vin2 and vout2 in function of vin1 and vin2. For the sake of simplicity, I used variables a,b,... . I got these results:

[itex]vout1=\frac{bgn-cfn+dfm-dgl}{afm-agl-bem+bgk+cel-cfk}\, \, \,\, vin1+\frac{chl-bhm+bgo-cfo}{afm-agl-bem+bgk+cel-cfk}\, \, \, \, vin2 [/itex]
[itex]vout2=\frac{cen-agn-dem+dgk}{afm-agl-bem+bgk+cel-cfk}\, \, \, \, vin1+\frac{ahm-chk-ago+ceo}{afm-agl-bem+bgk+cel-cfk}\, \, \, \, vin2[/itex]

My question is, how to get rid of vin1 and vin2 in Av1 and Av2? V1 and v2 shouldn't figure in gains Av1 and Av2.
 
Last edited:
Physics news on Phys.org
  • #2
I don't think there is enough info to determine the gains.

But if you feel you know those four fractions which I will call F1, F2, F3 and F4, then
Av1 = Vout1/(Vin1 - Vin2)
1/Av1 = Vin1/Vout1 - Vin2/Vout2
and Vin1/Vout1 = 1/F1 etc.

It should be apparent that F1, F2, F3 and F4 all have the same magnitude.
 
  • Like
Likes 1 person
  • #3
etf said:
Hi!
Here is my task:
For differential amplifier on scheme calculate voltage gains Av1=vout1/(vin1-vin2) and Av2=vout2/(vin1-vin2). MOSFET's M1 and M2 have same characteristics. MOFSTE's M3 and M4 have same characteristics. All MOSFET's are in saturation. Assume that gm*rds>>1.

View attachment 70647
How to use fact that gm*rds>>1?
I did AC Analysis of this amplifier and found vout1 in function of vin1 and vin2 and vout2 in function of vin1 and vin2. For the sake of simplicity, I used variables a,b,... . I got these results:

[itex]vout1=\frac{bgn-cfn+dfm-dgl}{afm-agl-bem+bgk+cel-cfk}\, \, \,\, vin1+\frac{chl-bhm+bgo-cfo}{afm-agl-bem+bgk+cel-cfk}\, \, \, \, vin2 [/itex]
[itex]vout2=\frac{cen-agn-dem+dgk}{afm-agl-bem+bgk+cel-cfk}\, \, \, \, vin1+\frac{ahm-chk-ago+ceo}{afm-agl-bem+bgk+cel-cfk}\, \, \, \, vin2[/itex]

My question is, how to get rid of vin1 and vin2 in Av1 and Av2? V1 and v2 shouldn't figure in gains Av1 and Av2.

You could replace those complicated expressions you have with single variables x and y, and make use of the extreme symmetry of the circuit. You get this:

[itex]vout1=x*vin1 - y*vin2 [/itex]
[itex]vout2=-y*vin1+x*vin2[/itex]

Also make use of the fact that for purely differential input, Vin1 = -Vin2

I think that then you can find a solution.
 
  • Like
Likes 1 person
  • #4
Why do you have about 14 single letter variables for this problem? Have you assigned a variable to each branch current? If that's what you've done, I would recommend using some other approach. Your circuit only has 6 nodes; wouldn't it be simpler to use nodal analysis rather than branch current analysis?
 
  • #5
I used nodal analysis. I will post complete work very soon.
 
  • #6
1.jpg


2.jpg


3.jpg


4.jpg
 
  • #7
So is your final answer what you have shown in the last page, expressions involving a11, a12, a21 and a22?

I would have thought you would need expressions in terms of the MOSFET parameters, such as gm1, gm2, gm3, rds1, rds2, rds3, etc.

Your problem stated that gm*rds>>1, and you asked how to use that fact. Wouldn't you expect that expressions involving gm*rds would appear in your algebra, and that's where you could make use of the strong inequality? But I don't see any expressions like in your work. I wonder why?

I find it hard to follow your work. For example, on page 2 you have a subexpression you've labeled q. It looks like the subexpression is:

(||rds1 + ||(2 R) + gm3/2 + ||rds3) "phi"d1

What are those 2 vertical bars in front of rds1 (why are they there?), and what is the character I've labeled "phi"? Are the vertical bars || really 1/ (1 divided by)?

Also on page 2 is what looks like a signal flow graph. Is it supposed to be a signal flow graph, or is it just a representation of the circuit topology to be used as an aid in setting up the nodal equations?

Between nodes d1 and s1 I see a branch with an arrow in series with rds1; beside the arrow I see what looks like qds1. What is qds1?
 
  • #8
I have bad handwriting :) I used "phi" to represent node potentials...There are no vertical bars, "(||rds1 + ||(2 R) + gm3/2 + ||rds3) "phi"d1" is (1/rds1 + 1/(2 R) + gm3/2 + 1/rds3) "phi"d1 :) I will rewrite solution and upload it again :)
 
  • #9
What about my question regarding the form of your final solution? Shouldn't your answer involve things like gm1, rds1 and not just a11, a12, etc.
 
  • #10
Firstly, we draw original circuit with shorted Voltage sources (VB, VSS, VDD):

1.jpg


Then we draw 5 small-signal MOSFET models and connect them according to first circuit:

2.jpg


Here is result of "simplification" of second circuit:

3.jpg


Now we form system of 3 equations with 3 uknowns:

4.jpg


Here is solution (I didn't write potential for node S1 since it isn't required):

5.jpg


Now we can find gains:

6.jpg
 
  • #11
7.jpg


Now I should replace variables a11, a12, a21 and a22 with firstly introduced a,b,c,... and then replace them with gm1, rds1,... and use fact that gmrds>>1 ? :)
 
Last edited:
  • #12
I'm off to lunch with some of my former EE professors at the local University.

I'll have a look at your work when I get back.

In the meantime, answer me this. Do you have access to Matlab, Mathcad, or some similar modern program to do the tedious algebra involved in this problem?

If you don't have any of those, consider downloading the free package Maxima and learning how to use it:

http://maxima.sourceforge.net/
 
  • #13
Ok :)
I use Matlab. It would be very exhausting to do all these calculations by hand :)
 
  • #14
Ok :)
I use Matlab. It would be very exhausting to do all these calculations by hand :)
 
  • #15
etf said:
View attachment 70686

Now I should replace variables a11, a12, a21 and a22 with firstly introduced a,b,c,... and then replace them with gm1, rds1,... and use fact that gmrds>>1 ? :)

Don't bother replacing your subexpressions with a, b, c, ...

Just plug the complicated expressions into the Matlab solver and let it do the work. Look at your results and see if you see any thing like this: (1+gm*rds). If you do, then you can replace that with (gm*rds). That may help simplify your results.

Post your results here.
 
  • #16
By the way, do you have the correct answer for this problem, from the text or from your instructor?
 
  • #17
I don't have solution for this problem in my book...
Below is code and final result from Matlab. I did DC analysis and got gm1=gm2, gm3=gm4, rds1=rds2, rds3=rds4.
>> syms gm1 gm2 gm3 gm4 gm5 rds1 rds2 rds3 rds4 rds5 R
>> rds1=rds2;
>> rds3=rds4;
>> gm1=gm2;
>> gm3=gm4;
>> a=1/rds1+1/(2*R)+gm3/2+1/rds3;
>> b=-(1/(2*R)-gm3/2);
>> c=-(gm1+1/rds1);
>> d=-gm1;
>> e=-(1/(2*R)-gm4/2);
>> f=1/rds2+1/(2*R)+gm4/2+1/rds4;
>> g=-(1/rds2+gm2);
>> h=-gm2;
>> k=-1/rds1;
>> l=-1/rds2;
>> m=gm1+1/rds1+gm2+1/rds2+1/rds5;
>> n=gm1;
>> o=gm2;
>> a11=(b*g*n-c*f*n+d*f*m-d*g*l)/(a*f*m-a*g*l-b*e*m+b*g*k+c*e*l-c*f*k);
>> a12=(c*h*l-b*h*m+b*g*o-c*f*o)/(a*f*m-a*g*l-b*e*m+b*g*k+c*e*l-c*f*k);
>> a21=(c*e*n-a*g*n-d*e*m+d*g*k)/(a*f*m-a*g*l-b*e*m+b*g*k+c*e*l-c*f*k);
>> a22=(a*h*m-c*h*k-a*g*o+c*e*o)/(a*f*m-a*g*l-b*e*m+b*g*k+c*e*l-c*f*k);
>> Av1=simplify((1/2)*(a11-a12))

Av1 =

-(R*gm2*rds2*rds4)/(2*(R*rds2 + R*rds4 + rds2*rds4))

>> Av2=simplify((1/2)*(a21-a22))

Av2 =

(R*gm2*rds2*rds4)/(2*(R*rds2 + R*rds4 + rds2*rds4))
 
Last edited:
  • #18
That's the result I get:

attachment.php?attachmentid=70716&stc=1&d=1403190209.png


You have made your solution more cumbersome than it needs to be by introducing all those single variables a, b, c, ... m, n, o.

As you can see, the most compact way to do it is with the matrix form of your equations. I have more equations than you do because I set up the general problem. I provided equations for the g1, g2, and g3g4 nodes, and I allowed for the possibility of a gate resistor Rg, which turns out not matter in the end. Also we see that rds5 doesn't matter because of the symmetry.

You can see 2 matrices; that's because I kept the matrix for M1 and M2 separate from the matrix for M3 and M4. They could be combined into one matrix; in fact as you can see, I added them, but didn't bother displaying the single matrix which is the sum of the two.

You can use your same technique to solve the CMRR problem thread. You will need to label the MOSFETs corresponding to M1, M2 and M3, M4 of this problem. You will need more equations (at least one more), but the equations you used in this problem will apply in the CMRR problem, possibly with different designators.

The reason I asked you in the CMRR problem if you need to keep the various parameters for each MOSFET separate, is because if you do, the solutions become very complicated. For example, in this problem, if you keep gm1 and gm2 separate, and rds1 and rds2 separate, the answers become (now we see that rds5 appears, because the symmetry is lost):

attachment.php?attachmentid=70717&stc=1&d=1403190626.png


If you let all of the MOSFETs have only a single gm and rds, the result becomes very simple.
 

Attachments

  • DiffAmp.png
    DiffAmp.png
    8.1 KB · Views: 648
  • DiffAmpX.png
    DiffAmpX.png
    60.4 KB · Views: 691
  • #19
etf said:
I don't have solution for this problem in my book...
Below is code and final result from Matlab. I did DC analysis and got gm1=gm2, gm3=gm4, rds1=rds2, rds3=rds4.
>> syms gm1 gm2 gm3 gm4 gm5 rds1 rds2 rds3 rds4 rds5 R
>> rds1=rds2;
>> rds3=rds4;
>> gm1=gm2;
>> gm3=gm4;
>> a=1/rds1+1/(2*R)+gm3/2+1/rds3;
>> b=-(1/(2*R)-gm3/2);
>> c=-(gm1+1/rds1);
>> d=-gm1;
>> e=-(1/(2*R)-gm4/2);
>> f=1/rds2+1/(2*R)+gm4/2+1/rds4;
>> g=-(1/rds2+gm2);
>> h=-gm2;
>> k=-1/rds1;
>> l=-1/rds2;
>> m=gm1+1/rds1+gm2+1/rds2+1/rds5;
>> n=gm1;
>> o=gm2;
>> a11=(b*g*n-c*f*n+d*f*m-d*g*l)/(a*f*m-a*g*l-b*e*m+b*g*k+c*e*l-c*f*k);
>> a12=(c*h*l-b*h*m+b*g*o-c*f*o)/(a*f*m-a*g*l-b*e*m+b*g*k+c*e*l-c*f*k);
>> a21=(c*e*n-a*g*n-d*e*m+d*g*k)/(a*f*m-a*g*l-b*e*m+b*g*k+c*e*l-c*f*k);
>> a22=(a*h*m-c*h*k-a*g*o+c*e*o)/(a*f*m-a*g*l-b*e*m+b*g*k+c*e*l-c*f*k);

>> Av1=simplify((1/2)*(a11-a12))

Av1 =

-(R*gm2*rds2*rds4)/(2*(R*rds2 + R*rds4 + rds2*rds4))

>> Av2=simplify((1/2)*(a21-a22))

Av2 =

(R*gm2*rds2*rds4)/(2*(R*rds2 + R*rds4 + rds2*rds4))

The results shown in red above were obtained in another Matlab session. If you would just let Matlab do the work of solving with your original equations, you should get the same answer.

What I mean is this. You set up some equations for Matlab to solve, using variables a, b, c...m, n, o. Just leave the original subexpressions in place. Everywhere you have the variable a, just put 1/rds1+1/(2*R)+gm3/2+1/rds3 instead. Do the same for all the other single variables. Put the subexpressions for each in the equations Matlab is solving.

If you were doing this by hand, it would be very tedious, but Matlab can do it without mistakes.
 
  • #20
Thanks a lot! One more question for thread about CMRR: Can I analyse diff. amp. with Iss source from b), calculate CMRR for that circuit and use that CMRR to calculate CMRR for diff. amp. with Iss source from a) (i.e. seting for M2 gm2=0, rds2=∞) ? More precisely, for CMRR of diff. amp. with ISS from b) I will got CMRR in function of gm1, rds1, gm2, rds2 and gm's and rds's of other MOSFETS so I will just put there gm2=0 and rds2=∞ and that would be my CMRR for diff. amp. with source Iss from a)?
 
Last edited:
  • #21
What you must do is set rds2=0, not rds2=∞. If you do that, then your proposed method should work.

What I did is use a symbol to represent the impedance of the (not so good) current source; I called it "zs". Then you can see the effect of that source on CMRR and differential gain, if you wanted to examine the effect.

I then calculated the impedance looking down into the a) and b) circuits, and substituted those values for zs in the calculations for CMRR and AV.

I should warn you that the circuit in your CMRR problem doesn't have the extreme symmetry that this one does and if you use different values for the parameters of the 4 MOSFETs making up the diff amp, plus the two MOSFETs of the current source, you will get very complicated answers! You could use just gm and rds for the 4 diff amp MOSFETs.

I did a solution with just gm and rds for all the MOSFETs, including M1 and M2, and even then the solutions begin to expand.

Your description of the CMRR problem seems to indicate that you should keep gm1, rds1 and gm2, rds2 as separate parameters, but I see no mention of what to do about the parameters of the 4 diff amp parameters. Maybe you should just go with gm and rds.

You should move over to the CMRR thread for further discussion. Give your calculations a try and post your results.
 

What is a MOSFET differential amplifier?

A MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) differential amplifier is an electronic circuit that uses MOSFETs to amplify the difference between two input signals. It is commonly used in operational amplifiers and audio amplifiers due to its high gain and low distortion.

How does a MOSFET differential amplifier work?

A MOSFET differential amplifier consists of two MOSFETs connected in a "differential pair" configuration. The gate of one MOSFET receives one of the input signals, while the gate of the other MOSFET receives the other input signal. The output voltage is taken from the drain of the two MOSFETs, which amplifies the difference between the two input signals.

What is the role of the MOSFET in a differential amplifier?

The MOSFET acts as the amplifying element in a differential amplifier. Its nonlinear characteristics allow for a large gain to be achieved with relatively low input signals. Additionally, the MOSFET has a high input impedance, making it ideal for use in high-impedance circuits such as differential amplifiers.

What factors affect the gain of a MOSFET differential amplifier?

The gain of a MOSFET differential amplifier is affected by several factors, including the biasing of the MOSFETs, the load resistor values, the supply voltage, and the temperature. Additionally, the choice of MOSFET type and its characteristics, such as transconductance and channel length, can also impact the gain of the amplifier.

What are the advantages of using a MOSFET differential amplifier?

MOSFET differential amplifiers have several advantages, including high gain, low distortion, and low noise. They also have a high input impedance, making them suitable for use in high-impedance circuits. Additionally, MOSFETs have a low input capacitance, which allows for a wider bandwidth and better frequency response in the amplifier.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
Back
Top