The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 16th, 2024, 4:24pm
Pages: 1
Send Topic Print
Wierd oscillation/ringing problem in Cadence virtuso/spectre (Read 9204 times)
engrMunna
Junior Member
**
Offline



Posts: 11

Wierd oscillation/ringing problem in Cadence virtuso/spectre
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.
Back to top
 
 
View Profile   IP Logged
engrMunna
Junior Member
**
Offline



Posts: 11

Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #1 - 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... Sad
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #2 - 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
Back to top
 
 
View Profile   IP Logged
wave
Senior Member
****
Offline



Posts: 117
Silicon Valley
Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #3 - 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. Wink  As you say, ideal supplies should be fine.

~WAVE
Back to top
 
 
View Profile   IP Logged
engrMunna
Junior Member
**
Offline



Posts: 11

Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #4 - 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?
Back to top
 
 
View Profile   IP Logged
engrMunna
Junior Member
**
Offline



Posts: 11

Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #5 - 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 :|
Back to top
 

Screenshot-1_009.png
View Profile   IP Logged
engrMunna
Junior Member
**
Offline



Posts: 11

Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #6 - 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...
Back to top
 
 
View Profile   IP Logged
engrMunna
Junior Member
**
Offline



Posts: 11

Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #7 - Apr 26th, 2012, 8:16am
 
I am attaching the amplifier schematic
Back to top
 

Screenshot-3_002.png
View Profile   IP Logged
engrMunna
Junior Member
**
Offline



Posts: 11

Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #8 - Apr 26th, 2012, 8:17am
 
And this is the point where the last stage of the amplifier that is the inverter biased
Back to top
 

Screenshot-5_001.png
View Profile   IP Logged
Forum Administrator
YaBB Administrator
*****
Offline



Posts: 145

Re: Wierd oscillation/ringing problem in Cadence virtuso/spectre
Reply #9 - 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
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
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.