The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 24th, 2024, 7:25am
Pages: 1
Send Topic Print
To Model a RC circuit in verilogA and feed the settling time. (Read 2210 times)
siloo_newbie
New Member
*
Offline



Posts: 1

To Model a RC circuit in verilogA and feed the settling time.
Feb 05th, 2015, 1:23am
 
Hi, I am beginner who is trying to model a RC series circuit using verilogA in cadence environment. I have coded as below, where the resistance is modeled as switch through ON and OFF resistance.  

input in, clk, vss;
output out;
electrical in, clk, vss, out;

parameter real clkThreshold = 0;
parameter real Cload = 7e-12;
parameter real Ron = 1;
parameter real Roff = 100M;

analog begin
     if(V(clk) > clkThreshold ) begin
         V(in,out) <+ Ron * I(in,out);
     end
     else begin
           V(in,out) <+ Roff * I(in,out);                        
     end
     I(out, vss) <+ ddt(Cload * V(out,vss));
end
 
Using RC charging formula, Vout = Vsupply (1-e pow(-ts/RC) )
Where Vout = output voltage
          Vsupply = supply voltage (I think, in our case it is input voltage ?)
          ts = settling time
          R = Ron = on resistance
          C = Cload = load capacitance.

The question is how to incorporate this formula to above verilogA code and then find the Cload value by giving ts as an inputs ?
Hope the question is some what clear (for now i not worried about the discharging ) !!
Kindly help me out here  :'(

Back to top
 
 
View Profile   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.