The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Oct 19th, 2020, 3:45pm
Pages: 1
Send Topic Print
Questions after reading "modeling varactors". (Read 5872 times)
cylin
New Member
*
Offline



Posts: 2

Questions after reading "modeling varactors".
Mar 04th, 2009, 4:07am
 
I have read the document of "modeling varactors" (http://www.designers-guide.org/Modeling/varactors.pdf.) and tried my best to reproduce the curve of Exhibited Capacitance(figure 2, p5).
However, I still could not get the same simulation result as figure 2.
All I could get is the expected capacitance.
Does anyone give me a netlist of this for my reference?
Thanks.

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



Posts: 2294
Silicon Valley
Re: Questions after reading "modeling varactors".
Reply #1 - Mar 4th, 2009, 8:01am
 
If your model is correct, you will only get the expected capacitance. You get the exhibited capacitance when your model is wrong.

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



Posts: 2

Re: Questions after reading "modeling varactors".
Reply #2 - Mar 5th, 2009, 5:10am
 
Thanks for your reply.

My test examples as attached. One is charge-based varactor model and the other one is the capacitance-based varactor model.
I expected to see the same result as the one shown in the document. Are there anything wrong? Could someone give an example?

By the way, the document mentioned that "A tell-tale symptom of this problem is that an anomalous DC current appears
to flow through the varactor. This problem does not occur if (2) is used.".
However, it shows the discrepency in the CV plot. This is also one of my questions.


test_varactor_c.scs
// varactor test circuit
simulator lang=spectre
include "varactor_c.scs" section=moscap
Vt (n 0) vsource mag=1
Xv (n 0) varactor
capacitanceInF ac freq=1/(2*M_PI) start=-2 stop=2 dev=Vt param=dc
save Xv:1

varactor_c.scs
//
simulator lang=spectre insensitive=yes
library test_varactor
section moscap
//
subckt varactor ( p n )
parameters c0=1p c1=0.5p v0=0 v1=1
cg ( p n ) bsource c=c0+c1*tanh((v(p,n)-v0)/v1)
ends varactor
endsection moscap
endlibrary

test_varactor_q.scs
// varactor test circuit
simulator lang=spectre
include "varactor_q.scs" section=moscap
Vt (n 0) vsource mag=1
Xv (n 0) varactor
capacitanceInF ac freq=1/(2*M_PI) start=-2 stop=2 dev=Vt param=dc
save Xv:1

varactor_q.scs
//
simulator lang=spectre insensitive=yes
library test_varactor
section moscap
//
subckt varactor ( p n )
parameters c0=1p c1=0.5p v0=0 v1=1
cg ( p n ) bsource q=c0*v(p,n)+c1*v1*ln(cosh((v(p,n)-v0)/v1))
ends varactor
endsection moscap
endlibrary test_varactor

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



Posts: 2294
Silicon Valley
Re: Questions after reading "modeling varactors".
Reply #3 - Mar 5th, 2009, 11:22am
 
Oh, I remember now. You won't see this effect with an AC analysis because AC just uses the capacitance you give it. Rather, the exhibited capacitance is the effective capacitance seen in a large signal analysis such as transient. To see it you would have to do careful capacitance measurements in a transient analysis as a large signal was impressed on the capacitor.

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



Posts: 2294
Silicon Valley
Re: Questions after reading "modeling varactors".
Reply #4 - Mar 5th, 2009, 11:25am
 
Oh, you would be much better served by using Verilog-A rather than bsources. Bsources are very limited and have huge user traps like this one. With Verilog-A you can still fall into the user traps, but they are not so inviting. Furthermore, Verilog-A is a much richer capability. Knowing it is a very useful skill that can take you far.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2020 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.