• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Open loop gain and open loop phase for an oscillator

Stats

  • Locked Locked
  • Replies 18
  • Subscribers 125
  • Views 24505
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Open loop gain and open loop phase for an oscillator

Pictou
Pictou over 12 years ago

 Hello,

I'm designing an oscillator with a quartz (Pierce model). The circuit is basically an amplifier and the quartz. I would like to measure the open loop gain and phase however I'm not sure about the method.

 First method I tried is the following :

I disconnected the loop at the gate of the MOS amplifier inverter. Put a vac source and set the AC amplitude to 1V.I copied the schematic of  the amplifier and pasted it at the output of the crystal, this way the crystal will see the same load as if it was in closed-loop. Then I measure the gain at the output of the crystal using a HB analysis.

 

Second method is :

I used the middlebrook analysis, which is stb in cadence. However I'm skeptical about this method as stb is to check the stability of the system. And, as I'm using an oscillator, I'm not supposed to be stable. However I'm still measuring an open loop gain and phase with stb analysis.

 

My question is which method is correct? I really have no idea on how to answer that question, so I'm here.

 

Thank you.

  • Cancel
  • ShawnLogan
    ShawnLogan over 12 years ago

     I would recommend that you use a negative resistance analysis in lieu of the methods you are proposing. It is far more intutive and allows one to examine the impact of using different crystal units. The method can be used for both large and small signal simulations and substitues a current source for the quartz crystal unit to examine the impedance the quartz unit experiences in the Pierce oscillator.

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Pictou
    Pictou over 12 years ago

      Thank you for your help, I'm trying that now.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

     I would certainly not recommend using the first method that was proposed of opening the loop. The stb analysis however useful (it's not quite the same as Middlebrook, but shares some similarities). It is not measuring "open loop" gain and phase, but actually the loop gain and phase (the loop is not opened with this analysis, so it can't give you the open loop gain).

    For an oscillator which has significant large signal behaviour, stb may not be appropriate - pstb may be better. 

    You might want to take  a look at <MMSIMinstDir>/tools/spectre/examples/SpectreRF_workshop and the file PstbAN.pdf (there's also a database to try out, Pstb.tar.Z). This covers using Periodic Stability on an oscillator, and comparing it with stb (for an oscillator which is not that linear).

    The negative resistance idea is also a good approach in many cases.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Pictou
    Pictou over 12 years ago

     Thank you very much for your help.

     

    I'm trying the negative resistance right now.

    However one of my colleague asked me if I could tell him why the first method doesn't work, and I must admit that I really don't know. It looks good on paper.

     

    So if it's not too much (as it's not really related to my topic), why is the first method not good for measuring open loop gain?

     

    Thank you again.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Breaking the loop in a feedback system (particularly if there is high gain) means that you have to work quite hard to ensure that the operating point is correct - small offsets in the system could mean that your amplifier hits the rails and so the operating point is not correct, and hence the AC response is wrong (well, it's the small signal AC response about the wrong bias point). People traditionally have either used large inductors/capacitors to keep the loop closed during the DC analysis/low frequency to get the operating point correct, and then open during the small-signal AC analysis. The problem with that is that the L anc C can then interfere with your circuit.

    The other approach is to use spectre's switch component (spt1switch in analog) to ideally close the loop during DC analysis and ideally open it during AC. The downside here is that you still have to get the loading of the loop correct when open, so you end up replicating the circuit - and sometimes this is really tough, particularly when the loading is dependent upon the precise condition of the loop.

    So the stb analysis should give you a more accurate answer, and is massively easier to use, than either of the above two approaches used to open the loop.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Pictou
    Pictou over 12 years ago

     Thank you very much for your help!

    I'm trying both technics now to compare the results.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Pictou
    Pictou over 12 years ago

     Hello again,

    I'm experiencing some troubles with the PSTB analysis. In the example it says that I need to run a PSS first, however my PSS does not converge (even with a 10mS extra time to stabilize). I was wondering if there was another way.

     

    Thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    You have to use PSS before PSTB - you'll need to give more information (such as the spectre output log) to be able to determine why your PSS is not converging. Maybe going via customer support would be a good idea so that we can take a proper look?

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Pictou
    Pictou over 12 years ago

    I must admit that it must be hard to help me while I give you vague answers.

    I don't know how to use the customer support, as an intern I'm not even sure I can use it, I will ask my manager as soon as possible.

    Meanwhile I'm focusing more on the negative resistance approach, do you know if I can find a tutorial for this approach using CADENCE?

     From what I understood, I need to replace the quartz model by a current source. The voltage drop across the current source will give me an impedance, then I should be able to extract the negative resistance from the impedance I'm reading. Am I correct? (I still need to study this method to fully understand but I think it's the broad idea).

     

    Thank you for your help.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 12 years ago

     This technique is independent of Cadence and can be used with any circuit simulator or circuit analysis.

    Your concept is correct. I would recommend placing the C0 of the quartz model and the parasitics on each pad in your oscillator amplifier. In other words, place the current source across the two the input terminals of the oscillating amplifier where the two terminals of the quartz crystal unit are normally placed. Remove the quartz crystal unit mode, but include the C0 of the resonator and any parasitics on either side of the quartz crystal unit (due to board, pads, etc). Assuming the DC operating point forces the oscillating amplifier into its high gain region, the real part of the resulting voltage response using an AC value of 1 A in the current source will illustrate the "negative resistance" charactersitic of the oscillating amplifier as a function of frequency. The imaginary part provides an estimate of the reactance of the oscillating amplifier. From the real part, and knowing the range of quartz crystal unit series resistance, by inspection you can tell if sufficient gain exists to support oscillation. The gain is the absolute value of the negative resistance over the quartz crystal unit's series resistance. If there were no non-linear effects, which is not the case as the oscillator relies on those to limit the amplitude of oscillation, the exact frequency of oscillation could be determined by solving the equation Xamp + Xresonator = 0 where Xamp is the reactance of the oscillating amplifier and Xresonator is the sum of the Ls and Cs reactances of the quartz crystal unit.

     

    I hope this helps.

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
>

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information