The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 24th, 2024, 8:51am
Pages: 1 2 3 
Send Topic Print
AC analysis (Read 612 times)
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 677
Munich, Germany
Re: AC analysis
Reply #15 - Aug 20th, 2006, 11:41pm
 
grosser wrote on Aug 18th, 2006, 10:23am:
Is this method suitable only for opamp or feedback generally? I implemented it in my LDO according to the Middlebrook's method on the left in your ltspice template, but it doesn't work fine.


It is suitable for feedback generally. It is essentially an improved version of Middlebrook's method. It uses exactly the same simulation setup as Middlebrook's method with just a different formula for calculating the loop gain. The result is independent of the orientation and the position of the probe in the loop (provided there is only one feedback loop in the circuit, see the article mentioned by Ken in reply #4 for details).
Back to top
 
 
View Profile WWW   IP Logged
loose-electron
Senior Fellow
******
Offline

Best Design Tool =
Capable Designers

Posts: 1638
San Diego California
Re: AC analysis
Reply #16 - Aug 21st, 2006, 1:48pm
 
All good commentary from everyone.

From Middlebrook's web site - here is a link to his writeup on GFT theory and how to test (simulate) for it:

http://ardem.com/downloads/GFTManual.pdf

Seems to be pretty comprehensive, and a useful read.

Jerry



Back to top
 
 

Jerry Twomey
www.effectiveelectrons.com
Read My Electronic Design Column Here
Contract IC-PCB-System Design - Analog, Mixed Signal, RF & Medical
View Profile WWW   IP Logged
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 677
Munich, Germany
Re: AC analysis
Reply #17 - Aug 21st, 2006, 11:44pm
 
I would like to add two remarks here:

What is generally known as Middlebrook's method for measuring loop gain is not the method described in his GFT manual but the method presented in his much earlier article "Measurement of Loop Gain in Feedback Systems", Intl. J. of Electronics, 38, 485—512, Apr. 1975. This method neglects backward transmission.

The definition for loop gain given by Middlebrook in his GFT manual is slightly different from the definition given in the article mentioned by Ken (http://www.thekunderts.net/ken/docs/c%26d2001-01.pdf) which is used for Spectre's stb analysis. In terms of equation (20) of this article, the expression for Middlebrook's definition of loop gain would be T=k1/(k3+Ye+Yf). The advantage of Middlebrook's definition is that it is more closely related to the closed-loop gain of the circuit. Its disadvantage is that it is not symmetrical, the orientation of the probe does matter in his case. In most practical cases, the difference between both definitions will be negligible (if the probe is oriented correctly for Middlebrook's definition). Both definitions of loop gain will always tell you correctly if a circuit is stable or not, and there will generally be only very minor differences in calculated phase margin and gain margin.
Back to top
 
 
View Profile WWW   IP Logged
grosser
Community Member
***
Offline



Posts: 57

Re: AC analysis
Reply #18 - Aug 22nd, 2006, 12:58am
 
to Frank

can you tell me if i set this analysis properly? It doesn't work, so maybe i broke the loop in the wrong place?

regards
Back to top
 

LDO_AC2.png
View Profile   IP Logged
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 677
Munich, Germany
Re: AC analysis
Reply #19 - Aug 22nd, 2006, 1:44am
 
To me, it looks like there are two feedback paths in your circuit: one via R1, where you put your probe, and another one via the opamp at the left of the schematic, which you are currently missing. You need to put the probe in a place where both loops are joined together. This would be either the + input of the opamp in the middle of the schematic, the output of this opamp (which is also the gate of the output PMOS), or the drain of the output PMOS. Ideally, you should get the same result in all three cases.
Back to top
 
 
View Profile WWW   IP Logged
grosser
Community Member
***
Offline



Posts: 57

Re: AC analysis
Reply #20 - Aug 22nd, 2006, 9:14am
 
the last thing i hope is phase.

How to plot phase in this method?
Back to top
 
 
View Profile   IP Logged
grosser
Community Member
***
Offline



Posts: 57

Re: AC analysis
Reply #21 - Aug 22nd, 2006, 10:44am
 
I did a test to check what results Middlebrook's method gives compared to large LC method.

I don't know what results are reliable. If i put probe circuits in the places marked by red arrows the results are completely bad.
The simulation results(linked) come from attached test bench.

http://img211.imageshack.us/my.php?image=acopenip3.png

yellow curve is a Middlebrook's method result and the red is from LC method.

I don't understand why yellow gain increases in high frequencies and i wonder if i can rely on these results

regards
Back to top
 

arch.png
View Profile   IP Logged
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 677
Munich, Germany
Re: AC analysis
Reply #22 - Aug 22nd, 2006, 11:53pm
 
I am a bit surprised that you are getting a bad result when you put the probe at the output of the opamp. This point or the drain of the output PMOS are in my opinion the best places to put the probe. Did you check if the orientation of the probe is correct? It does matter when you are using Middlebrook's formula. If you use the formula from the article mentioned above that is being used by the stb analysis of Spectre, you should not have this problem because it is symmetrical.
Back to top
 
 
View Profile WWW   IP Logged
grosser
Community Member
***
Offline



Posts: 57

Re: AC analysis
Reply #23 - Aug 28th, 2006, 1:38am
 
Do you know how to plot the phase of this formula ((I(V3)/I(V4))*(-V(x)/V(y))-1)/((I(V3)/I(V4))+(-V(x)/V(y))+2) in Hspice?
Back to top
 
 
View Profile   IP Logged
loose-electron
Senior Fellow
******
Offline

Best Design Tool =
Capable Designers

Posts: 1638
San Diego California
Re: AC analysis
Reply #24 - Aug 28th, 2006, 8:43am
 
Did Synopsys include a calculator type function (as Spectre-Cadence has) in the latest version of HSpice? It was not there 5 years back, and I have not been on HSPICE in a couple of years.
Back to top
 
 

Jerry Twomey
www.effectiveelectrons.com
Read My Electronic Design Column Here
Contract IC-PCB-System Design - Analog, Mixed Signal, RF & Medical
View Profile WWW   IP Logged
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 677
Munich, Germany
Re: AC analysis
Reply #25 - Aug 28th, 2006, 12:59pm
 
Sorry, I'm not familiar with HSPICE either. However, I have added the formula for the symmetrical loop gain of Spectre's stb analysis for your configuration, where the circuit is duplicated, to my example at http://groups.yahoo.com/group/LTspice/files/%20Examples/Educational/LoopGain_Pro.... If you use this formula instead of Middlebrook's, you will not have to pay attention to the orientation of the probe.
Back to top
 
 
View Profile WWW   IP Logged
grosser
Community Member
***
Offline



Posts: 57

Re: AC analysis
Reply #26 - Aug 28th, 2006, 3:12pm
 
Frank Wiedmann wrote on Aug 28th, 2006, 12:59pm:
Sorry, I'm not familiar with HSPICE either. However, I have added the formula for the symmetrical loop gain of Spectre's stb analysis for your configuration, where the circuit is duplicated, to my example at http://groups.yahoo.com/group/LTspice/files/%20Examples/Educational/LoopGain_Pro.... If you use this formula instead of Middlebrook's, you will not have to pay attention to the orientation of the probe.



right, but i'm using the method on the left side of file LoopGain_Probe cause i don't know how to implement this on the right side one in HSPICE. There is not .step directive.

I am very grateful to you for your help.

Regards
Back to top
 
 
View Profile   IP Logged
nobody
Community Member
***
Offline



Posts: 75

Re: AC analysis
Reply #27 - Sep 17th, 2006, 1:24am
 
grosser wrote on Aug 22nd, 2006, 10:44am:
I did a test to check what results Middlebrook's method gives compared to large LC method.

I don't know what results are reliable. If i put probe circuits in the places marked by red arrows the results are completely bad.
The simulation results(linked) come from attached test bench.

http://img211.imageshack.us/my.php?image=acopenip3.png

yellow curve is a Middlebrook's method result and the red is from LC method.

I don't understand why yellow gain increases in high frequencies and i wonder if i can rely on these results

regards


Hi, grosser

I was wondering how you do the simulation by applying Middlebrook's method.  Can you give me more information or details ? Thanks you in advance.

Actually, I applied a method like LC method. Two resistors are added like the way in LC
method. RR1 node1 node2 "value of DC resistance" "value of AC resistance".
            RR2 node3 node4 "value of DC resistance" "value of AC resistance
The value of DC resistacnce of RR1 is set to small and value of AC resistance of RR1 is set to very high. RR2 does the opposite of RR1.

Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: AC analysis
Reply #28 - Nov 2nd, 2006, 7:55pm
 
The paper on calculating the loop gain without breaking the loop has moved. It can now be found at http://www.kenkundert.com/docs/cd2001-01.pdf.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
alicia8283
New Member
*
Offline



Posts: 9

Re: AC analysis
Reply #29 - Jun 3rd, 2009, 7:37pm
 
Thanks for the information. I used stb analysis from spectre to run for the loopgain of my LDO. Attached is the block diagram of the circuit. I tried to break the loop at 3 locations, 1 is at the input of the 2nd stage op-amp, 2nd is at the input of the pass element (big PMOS), and 3rd point is at the input the of first stage op amp. I suppose wherever i break the loop as long as it is within the feedback loop, then i would get the same result. I get exactly the same loopgain and phase margin if i break at the 2nd and 3rd break point. But i would get different value of DC loop gain and phase margin if i break at the 1st point.  :o  :-/ Can anyone advise me why is the case?
Thanks in advance
Back to top
 

LDO.PNG
View Profile   IP Logged
Pages: 1 2 3 
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.