Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

VerilogA for Varactor

Status
Not open for further replies.

desperado0729

Newbie level 6
Joined
May 27, 2006
Messages
12
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,283
Activity points
1,348
varactor veriloga

Hi,

I tried to build a veriloga model for varactor and the code is listed below.
I used a math equation to fit the CV curve from the foundry (from -1.8V to 1.8V).
But when I did the ac simulation to double check the value in the equation, I got two different CV curve.

Could someone help me?

Thanks!

=====================
module CVAR_SMIC( S, G, T);
inout S,G,T;
electrical S,G,T;

real c, v, q;

parameter real A1 = 259.33f;
parameter real A2 = 730.28f;
parameter real x0 = -0.09478;
parameter real dx = 0.19275;

analog begin

v = V(G,S);
c = A2 + (A1-A2)/(1 + exp((v-x0)/dx));
q = c * v;
I(G,S) <+ ddt(q);
V(T) <+ c;

end

endmodule
=====================

V
 

u cann't use Q=CV as this is for linear capacitor
so Q=int(CdV) and u cann't get C out of integration if it is function of V
try calculating the Q from the equation then use the result
 
I think there is one statement that specifies the equations for ac analysis and Transient analysis separately. Specifying that you use the same equation for both analysis may help.
 

To safwatonline,

I just did what you said using Mathematica to integrate C(V) and then these 2 CV curve are a good match!

Thanks again.

V
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top