The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 16th, 2024, 8:32pm
Pages: 1 2 
Send Topic Print
voltage leakage in VCO's switching capacitor (Read 11485 times)
YCY
Community Member
***
Offline



Posts: 32

voltage leakage in VCO's switching capacitor
Feb 2nd, 2012, 1:23am
 
Hi,

I am designing an RF VCO with switching capacitors, whose oscillation frequency is around 3GHz.
The switching cap cell in the off-state is simplified as:



The voltage VD is precharged to a value near 0.8 V to assure the NMOS is off when its gate is switched to ground.
However, when I do the transient analysis and set a very long stop time, say 10us,
the voltage VD starts to drop to near 0V.
I don't think the voltage drop comes from the leakage current of the NMOS, if so,
the voltage should be pulled up to 1.2V but not drop to 0V.

I also find that the speed of voltage drop is related to the accuracy of transient analysis.
The simulation results is shown below
(liberal, moderate, conservative are the errpreset, pointlocal is conservative with relref=pointlocal, reltol=1e-5 is conservative with reltol=1e-5
The dropping speed is liberal>moderate>conservative>pointlocal>reltol=1e-5)

I cannot figure out how the accuracy setting affects this simulation result.
Does anybody have any idea about this phenomenon?
Thanks in advance.

YCY
Back to top
 
« Last Edit: Feb 02nd, 2012, 3:50am by YCY »  
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: voltage leakage in VCO's switching capacitor
Reply #1 - Feb 2nd, 2012, 5:01am
 
YCY,
The simulator tries to solve the current equation at node VD to an accuracy given by the accuracy settings.
Any error in the difference current (transistor vs. cap) will change the average voltage across your cap. These errors get smaller when you tighten accuracy requirements, so your charge loss gets smaller.

- B O E
Back to top
 
 
View Profile   IP Logged
loose-electron
Senior Fellow
******
Offline

Best Design Tool =
Capable Designers

Posts: 1638
San Diego California
Re: voltage leakage in VCO's switching capacitor
Reply #2 - Feb 2nd, 2012, 2:21pm
 
boe wrote on Feb 2nd, 2012, 5:01am:
YCY,
The simulator tries to solve the current equation at node VD to an accuracy given by the accuracy settings.
Any error in the difference current (transistor vs. cap) will change the average voltage across your cap. These errors get smaller when you tighten accuracy requirements, so your charge loss gets smaller.

- B O E


Agreed with Boe.

Also, you need to recognize that a capacitor has leakage (outside the simulator accuracy, this is a different issue) so do not expect to precharge a capacitor, and have it maintain that voltage for long periods of time.
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
YCY
Community Member
***
Offline



Posts: 32

Re: voltage leakage in VCO's switching capacitor
Reply #3 - Feb 2nd, 2012, 5:47pm
 
boe wrote on Feb 2nd, 2012, 5:01am:
YCY,
The simulator tries to solve the current equation at node VD to an accuracy given by the accuracy settings.
Any error in the difference current (transistor vs. cap) will change the average voltage across your cap. These errors get smaller when you tighten accuracy requirements, so your charge loss gets smaller.

- B O E


Hi, B O E,

Thank you so much for your reply.
However, I am also curious if it is possible to  quantify the relation between the accuracy and discharge time?
For example, if iabstol=1pA, and the cap=100fF,
then tdis= 0.6V*100f/1pA=60ms is needed to disharge the cap from 0.6V to 0V,
but the result is obviously wrong.
So, I just wonder if there exists equations that can
specifically describe the relations among reltol, iabstol, C, dV, and tdis.

Thanks again,
YCY
Back to top
 
 
View Profile   IP Logged
YCY
Community Member
***
Offline



Posts: 32

Re: voltage leakage in VCO's switching capacitor
Reply #4 - Feb 2nd, 2012, 6:03pm
 
loose-electron wrote on Feb 2nd, 2012, 2:21pm:
boe wrote on Feb 2nd, 2012, 5:01am:
YCY,
The simulator tries to solve the current equation at node VD to an accuracy given by the accuracy settings.
Any error in the difference current (transistor vs. cap) will change the average voltage across your cap. These errors get smaller when you tighten accuracy requirements, so your charge loss gets smaller.

- B O E


Agreed with Boe.

Also, you need to recognize that a capacitor has leakage (outside the simulator accuracy, this is a different issue) so do not expect to precharge a capacitor, and have it maintain that voltage for long periods of time.


Hi, loose-electron

Thanks very much for your reply.
I also doubted the cap leakage in the begging,
so I replaced it with an ideal one.
Yet the leakage remains the same.

Besides, all the dc voltages in the circuit are much higher than 0V.
Thus I used to think that even leakage exists, VD will be charged to a higher voltage but not pulled down to 0V.
But the simulation result shows the opposite.

regards,
YCY
Back to top
 
 
View Profile   IP Logged
YCY
Community Member
***
Offline



Posts: 32

Re: voltage leakage in VCO's switching capacitor
Reply #5 - Feb 2nd, 2012, 6:35pm
 
BTW, I also found a very unreasonable result.
The current flowing out of the cap (which is an ideal one)
is not equal to that flowing into the NMOS and has a very large difference.
Here are the schematic and the simulation result.
(I probed the terminal Minus of the cap, and D of the NMOS. There is not any other component connected to this node)


It obviously violates KCL, does anyone know why?

Thanks,
YCY
Back to top
 
 
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: voltage leakage in VCO's switching capacitor
Reply #6 - Feb 3rd, 2012, 6:19am
 
YCY,
YCY wrote on Feb 2nd, 2012, 5:47pm:
...
For example, if iabstol=1pA, and the cap=100fF,
then tdis= 0.6V*100f/1pA=60ms is needed to disharge the cap from 0.6V to 0V,
but the result is obviously wrong.
So, I just wonder if there exists equations that can
specifically describe the relations among reltol, iabstol, C, dV, and tdis.
Note that typically reltol*i >> iabstol. Error limit is abs(i)*reltol + iabstol, where i is influenced by relref.

Quote:
BTW, I also found a very unreasonable result.
The current flowing out of the cap (which is an ideal one)
is not equal to that flowing into the NMOS and has a very large difference.
Here are the schematic and the simulation result.
(I probed the terminal Minus of the cap, and D of the NMOS. There is not any other component connected to this node)
Check the gate and bulk currents for capacitive coupling from node VD to gate/bulk. You will find that they are not part of the drain current.

- B O E


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



Posts: 615

Re: voltage leakage in VCO's switching capacitor
Reply #7 - Feb 3rd, 2012, 7:22am
 
YCY wrote on Feb 2nd, 2012, 6:03pm:
Hi, loose-electron

Thanks very much for your reply.
I also doubted the cap leakage in the begging,
so I replaced it with an ideal one.
Yet the leakage remains the same.
Cap leakage should not depend on simulation accuracy settings.
Still it is -- as loose-electron pointed out -- important for some circuits (such as this example). YMMV, but unfortunately it tends to be missing in cap models.
- B O E
Back to top
 
 
View Profile   IP Logged
YCY
Community Member
***
Offline



Posts: 32

Re: voltage leakage in VCO's switching capacitor
Reply #8 - Feb 3rd, 2012, 8:00am
 
boe wrote on Feb 3rd, 2012, 6:19am:
YCY,
YCY wrote on Feb 2nd, 2012, 5:47pm:
...
For example, if iabstol=1pA, and the cap=100fF,
then tdis= 0.6V*100f/1pA=60ms is needed to disharge the cap from 0.6V to 0V,
but the result is obviously wrong.
So, I just wonder if there exists equations that can
specifically describe the relations among reltol, iabstol, C, dV, and tdis.
Note that typically reltol*i >> iabstol. Error limit is abs(i)*reltol + iabstol, where i is influenced by relref.

Quote:
BTW, I also found a very unreasonable result.
The current flowing out of the cap (which is an ideal one)
is not equal to that flowing into the NMOS and has a very large difference.
Here are the schematic and the simulation result.
(I probed the terminal Minus of the cap, and D of the NMOS. There is not any other component connected to this node)
Check the gate and bulk currents for capacitive coupling from node VD to gate/bulk. You will find that they are not part of the drain current.

- B O E




Hi, B O E

Since I probe the drain terminal to get the current waveform,
I do not know how to check the current that flows from VD to gate/bulk.
Could you please state more specifically on this?
Thanks a lot.

YCY

Back to top
 
« Last Edit: Feb 3rd, 2012, 5:00pm by YCY »  
View Profile   IP Logged
boe
Community Fellow
*****
Offline



Posts: 615

Re: voltage leakage in VCO's switching capacitor
Reply #9 - Feb 3rd, 2012, 8:26am
 
YCY,
unless you have gate leakage in your transistor model, you can simply take the gate current.
The easiest way to get the bulk current is to use a 4-terminal transistor (if available).

- B O E
Back to top
 
 
View Profile   IP Logged
YCY
Community Member
***
Offline



Posts: 32

Re: voltage leakage in VCO's switching capacitor
Reply #10 - Feb 3rd, 2012, 4:45pm
 
boe wrote on Feb 3rd, 2012, 8:26am:
YCY,
unless you have gate leakage in your transistor model, you can simply take the gate current.
The easiest way to get the bulk current is to use a 4-terminal transistor (if available).

- B O E


Hi B O E

The MOS device I used is a 4-terminal transistor.
I probed the gate current and found it is exactly equal to the drain current but has opposite sign.
Does this mean the current flowing out of the Minus terminal of the Cap (I(/C2/Minus)) all goes to the gate terminal?
Besides, the source and bulk currents are all negligibly small.
So, it still confuses me why I(/C2/Minus~19uA) is not equal to I(M1/D~6uA), where goes the remaining 13uA (I(M1/S) & I(M1/B)<<1pA, )?

Thanks
YCY
Back to top
 
 
View Profile   IP Logged
nrk1
Community Member
***
Offline



Posts: 81

Re: voltage leakage in VCO's switching capacitor
Reply #11 - Feb 4th, 2012, 6:02am
 
YCY,

Is the nMOS bulk connected to source or 0V? If the latter, there will be a reverse biased diode between drain/source and bulk which can discharge VD towards the bulk voltage, 0V.

Back to top
 
 
View Profile   IP Logged
loose-electron
Senior Fellow
******
Offline

Best Design Tool =
Capable Designers

Posts: 1638
San Diego California
Re: voltage leakage in VCO's switching capacitor
Reply #12 - Feb 4th, 2012, 7:42am
 
YCY wrote on Feb 2nd, 2012, 6:35pm:
BTW, I also found a very unreasonable result.
The current flowing out of the cap (which is an ideal one)
is not equal to that flowing into the NMOS and has a very large difference.
Here are the schematic and the simulation result.
(I probed the terminal Minus of the cap, and D of the NMOS. There is not any other component connected to this node)
http://img208.imageshack.us/img208/6529/swcap2.jpg
http://img254.imageshack.us/img254/9710/swcapi.png
It obviously violates KCL, does anyone know why?

Thanks,
YCY



You need to take a close look at the
tolerance and error settings in your simulator setup.

My earlier comment about real world capacitors
having plate to plate leakage is still valid, but the
problem you showing here is probably simulator
error tolerance settings and their setup.

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
YCY
Community Member
***
Offline



Posts: 32

Re: voltage leakage in VCO's switching capacitor
Reply #13 - Feb 5th, 2012, 9:35pm
 
nrk1 wrote on Feb 4th, 2012, 6:02am:
YCY,

Is the nMOS bulk connected to source or 0V? If the latter, there will be a reverse biased diode between drain/source and bulk which can discharge VD towards the bulk voltage, 0V.



Hi, nrk1

Yes the bulk is connected to 0V.
But the bulk current is near 0A, thus I guess it not the main cause.
Back to top
 
 
View Profile   IP Logged
YCY
Community Member
***
Offline



Posts: 32

Re: voltage leakage in VCO's switching capacitor
Reply #14 - Feb 5th, 2012, 9:46pm
 
loose-electron wrote on Feb 4th, 2012, 7:42am:
You need to take a close look at the
tolerance and error settings in your simulator setup.

My earlier comment about real world capacitors
having plate to plate leakage is still valid, but the
problem you showing here is probably simulator
error tolerance settings and their setup.



Hi loose-electron

I agree with you. There must be something wrong in simulator setup.
However I cannot find where.

I tried several different settings, such as tightening  reltol from 1e-3~1e-7 and iabstol from 1e-12~1e-15,
yet the currents from cap and into NMOS are still not equal.
I have also tried tightening gmin, which affects the discharging time of VD.
Smaller gmin leads to longer time.
Nevertheless, the cap current and NMOS drain current are still not the same.

Do you have any suggestion about the accuracy settings that I can try to verify the circuit?

Thanks a lot
YCY
Back to top
 
 
View Profile   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.