The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 16th, 2024, 3:24pm
Pages: 1 2 
Send Topic Print
Few questions (Read 3338 times)
kidman
Community Member
***
Offline



Posts: 42

Few questions
May 20th, 2009, 3:31am
 
1- I noticed something odd happening. When i use AC analysis and plot the gain the gain given was 70 but when I used DC analysis and plot dvout/dvin the curve shown showed that the max gain you could get out of the circuit is 40. I want to know what is the reason for that.

2- When making AC analysis I usually make the AC magnitude be 1 volt. Does that value actually matter? NB i'm using Vdd=1.2

3- Is there a way to let the simulator calculate or plot the Dynamic Range of the circuit?

Thanks!
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Few questions
Reply #1 - May 20th, 2009, 4:19am
 
1. Are you sure you took enough points to compute an accurate numerical derivative?

2. The value doesn't matter; the circuit is linearized for ac analysis -- using 1 means you don't have to divide out the value at the end.  (For differential circuits, I suppose you might use half a volt on each input.)
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
kidman
Community Member
***
Offline



Posts: 42

Re: Few questions
Reply #2 - May 20th, 2009, 4:29am
 
1- I just used the calculator. When i plot Vout vs Vin I open the calculator, click on the button "wave" then click of the vout curve. Then there's a function in the calculator called "deriv" that computes the derivative of Vout w.r.t vin. The result is dvout/dvin vs vin

Back to top
 
 
View Profile   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Few questions
Reply #3 - May 20th, 2009, 5:36am
 
kidman wrote on May 20th, 2009, 3:31am:
1- I noticed something odd happening. When i use AC analysis and plot the gain the gain given was 70 but when I used DC analysis and plot dvout/dvin the curve shown showed that the max gain you could get out of the circuit is 40. I want to know what is the reason for that.
!


Of course, there are many circuits which exhibit a DC gain which differs from the ac gain. During computation of the dc gain (dVout/dVin) all capacitive effects are neglected (perhaps ac feedback ?) Check your circuit .
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
kidman
Community Member
***
Offline



Posts: 42

Re: Few questions
Reply #4 - May 20th, 2009, 6:11am
 
The circuit is a simple basic common source amplifier
Back to top
 
 
View Profile   IP Logged
subgold
Community Member
***
Offline



Posts: 97

Re: Few questions
Reply #5 - May 20th, 2009, 6:15am
 
kidman wrote on May 20th, 2009, 4:29am:
1- I just used the calculator. When i plot Vout vs Vin I open the calculator, click on the button "wave" then click of the vout curve. Then there's a function in the calculator called "deriv" that computes the derivative of Vout w.r.t vin. The result is dvout/dvin vs vin



it has nothing to do with the calculator. you need to set the step size of your dc simulation small enough to obtain sufficient resolution.
Back to top
 
 
View Profile   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Few questions
Reply #6 - May 20th, 2009, 6:33am
 
kidman wrote on May 20th, 2009, 6:11am:
The circuit is a simple basic common source amplifier


Well, another source of error could be that the axis in the dc plot are not spaced linearly. When there are no caps in the circuit the dc gain must be identical to the ac gain. Try to measure the slope of the dc response curve by hand rather than let it compute by taking the derivative.
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Few questions
Reply #7 - May 20th, 2009, 8:53am
 
The "dc gain" is vout/vin, and that certainly can be different from the ac gain, which is the derivative of vout with respect to vin.

In order to compute dvout/dvin, you would numerically compute
 v(out2) - v(out1) / ( vin1 - vin2 )
where in1 = in2 + epsilon, and v(out1) is the output voltage when the input is vin1.  The trick is to pick epsilon small enough that you really get the tangent to the curve, yet large enough that you're not dominated by numerical noise.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Few questions
Reply #8 - May 20th, 2009, 12:48pm
 
Geoffrey_Coram wrote on May 20th, 2009, 8:53am:
The "dc gain" is vout/vin, and that certainly can be different from the ac gain, which is the derivative of vout with respect to vin.


Yes, you are right.  It was my fault to call the derivative "dc gain".
Nevertheless, it is not uncommon that the slope of the dc transfer curve  differs from the ac gain. That was my point.  Thanks.
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
kidman
Community Member
***
Offline



Posts: 42

Re: Few questions
Reply #9 - May 20th, 2009, 1:04pm
 
Which one should I beleive?
Back to top
 
 
View Profile   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Few questions
Reply #10 - May 21st, 2009, 1:46am
 
kidman wrote on May 20th, 2009, 1:04pm:
Which one should I beleive?


Nothing ! You should not believe one of us but try to become convinced.
Therefore, my recommendation again:
- Perform a dc-analysis and evaluate the slope of the curve around the correct bias point. All axis, of course, scaled linearly.
- Then, perform an ac analysis. Check if the same bias point is used from the program !
- If there is no considerable capacitice effect in the circuit, in both cases the gain must be identical.
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Few questions
Reply #11 - May 21st, 2009, 6:07am
 
buddypoor wrote on May 21st, 2009, 1:46am:
- If there is no considerable capacitice effect in the circuit, in both cases the gain must be identical.  


Oy! there's a good point I hadn't been thinking about.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
raja.cedt
Senior Fellow
******
Offline



Posts: 1516
Germany
Re: Few questions
Reply #12 - May 21st, 2009, 8:51am
 
hi buddypoor,
                   thanks for very interesting discussion, my doubt is in both cases gain has to be same if he use enough resolution in dc sweep.why capacitive feedback will effect this because even ac simulation also while consider at low frequency how they will impcat?

         I have another question,i found opamp output impedance by injecting ac  current source and finding voltage bump but this is not equal to my small signal output impedance? Now which one is correct?  
Back to top
 
 
View Profile WWW raja.sekhar86   IP Logged
buddypoor
Community Fellow
*****
Offline



Posts: 529
Bremen, Germany
Re: Few questions
Reply #13 - May 21st, 2009, 11:26am
 
raja.cedt wrote on May 21st, 2009, 8:51am:
hi buddypoor,
                   thanks for very interesting discussion, my doubt is in both cases gain has to be same if he use enough resolution in dc sweep.why capacitive feedback will effect this because even ac simulation also while consider at low frequency how they will impcat?

         I have another question,i found opamp output impedance by injecting ac  current source and finding voltage bump but this is not equal to my small signal output impedance? Now which one is correct?  


Sorry, but I didnīt get the meaning of the first part referenced above.

As for the 2nd part, how did you arrive at the value for "my small signal output impedance" ? By calculation or by what procedures ?
The method using an ac current source is 100% correct.
Do you have in both cases the same operating point ?
Back to top
 
 

LvW (buddypoor: In memory of the great late Buddy Rich)
View Profile   IP Logged
raja.cedt
Senior Fellow
******
Offline



Posts: 1516
Germany
Re: Few questions
Reply #14 - May 21st, 2009, 12:19pm
 
hi buddy poor,
                   in the first what i mean to say for finding dc gain both methods has to give same answer, how capacitive coupling will effect? or could you please explain how to find dc gain?
                  for second question i derived expression for output impedance and substituted all small signal parameters (gm,gds) from .op result and i have same operation point in both cases?

Thanks,
Rajasekhar.
Back to top
 
 
View Profile WWW raja.sekhar86   IP Logged
Pages: 1 2 
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.