The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Wierd oscillation/ringing problem in Cadence virtuso/spectre
https://designers-guide.org/forum/YaBB.pl?num=1335310133

Message started by engrMunna on Apr 24th, 2012, 4:28pm

Title: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by engrMunna on Apr 24th, 2012, 4:28pm

Hi,
I have two circuits, the first is a ring oscillator with a clock sampling the transitions of the oscillator. My second circuit is a current steering DAC which at the moment is not clocked or anything and I provide a fixed digital code to the DAC to test the output. These are two completely separate circuits and I run them in separate files and they work ok. Now at some point in my design I have to interface these two circuits. But even without interfacing or making any connection in between them, when I put these two circuits in the same schematic file, I get into trouble.
The output current of my DAC gets noisy and starts oscillating (remember the DAC has a fixed Digital code at the input which is not changing and there is no connection whatsoever between the DAC and the oscillator except that they are in the same schematic file). The output which should be around 20nA has fast varying spike which go till 1uA. And these oscillations start after on clock period of the oscillator clock. The clock is of 1MHz. When replying please remember the only link between the DAC and the clocked circuit is that they are in the same schematic file and nothing else. I think this might have to do something with the time step of the transient simulation?? PLEASE HELP.

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by engrMunna on Apr 25th, 2012, 4:50am

Just to add to my original post....the power supplies are shared though...Vdd and Vss....but since they are ideal I dont think switching noise from the oscillator will effect them thus effecting the DAC....one more thing I observed is that when I change the transient analysis setting between conservative moderate and liberal, the time at which I see the ringing start in the DAC output current also changes. from 6u sec to 2u sec... :(

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by boe on Apr 25th, 2012, 1:33pm

EngrMunna,

Which simulator version do you use? What are your accuracy settings? How much current flows in the DAC / the oscillator? ...

Note that 20 nA are hard to accurately simulate with a lot of activity in the circuit.

- B O E

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by wave on Apr 25th, 2012, 3:20pm


The previous comment may be correct in that much lower than nominal currents tend to numerically ring in a simulator, particularly when zoomed in on a graph.
Conservative mode usually solves this in spectre, but you may need to tweak the analog options too.

Or it could be once you combined things, you unwittingly share a net name, such as a bias. ;)  As you say, ideal supplies should be fine.

~WAVE

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by engrMunna on Apr 26th, 2012, 4:52am

HI,
@boe I think its the 2009 version of cadence... And the current flowing in DAC is around 20 nA and in the oscillaotr it varies from 160nA to 240nA. I have simulated some filters along with htis oscillator around the same current levels..they worked ok. For the accuracy setting i tried conservative moderate and liberal but no luck they give same response...

@wave Yeah I thought so too that i might have some net name common which I can't see....so i created  symbols for the dac and oscillaotr...with no input outputs the symbols are just rectangle boxes. And put the symbols in the same schematic...but still the same problem persists...and what analog options aer you refering too?

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by engrMunna on Apr 26th, 2012, 5:31am

I am attaching a figure to show the output waveforms..the top one is the oscillaotr...the bottom two are of the DAC currents as you see they remain stable and then start spiking....I am pretty sure this is some spectre porblem but I am not able to find it....coz there is no other explanation for it :|

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by engrMunna on Apr 26th, 2012, 8:08am

Let me rephraase my question and observations....forget the Oscillator and DAC. Now I have localised the problem. I have a an op-amp..which is a folded-cascode followed by a common source amplifier and then an inverter. These three stages make an op amp. Now for the inverter I am baising it in the mid of its transition point...that is the highest gain point. When I use this op-amp in a unity gain configuration it works fine. Now without making any other changes I limit the maximum step size to a small value like 10n sec. And all hell breaks loose. the invereter becomes unstable and starts oscillating. I mean why limiting the maximum step size in the simulation makes this circuit oscillate??

Also when I bias the inverter in the region where the gain is low, and then put the whole op-amp in unity gain feedback it works fine even with a small step size.. but ofcourse the voltage following is not that good then because of the lower gain then...

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by engrMunna on Apr 26th, 2012, 8:16am

I am attaching the amplifier schematic

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by engrMunna on Apr 26th, 2012, 8:17am

And this is the point where the last stage of the amplifier that is the inverter biased

Title: Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Post by Forum Administrator on Apr 26th, 2012, 5:36pm


Quote:
Why is that changing the step size causes this circuit to become unstable?


Perhaps the small time step is not causing the circuit to become unstable, but only revealing the instability inherent in the circuit.

If you have access to a copy of my SPICE and Spectre book, you might want to take a look at section 4.4.3 on unstable circuits (page 219).

-Ken

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.