• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Spectremdl - Equation for Capacitance calcualtion

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 1564
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Spectremdl - Equation for Capacitance calcualtion

hvemulac
hvemulac over 10 years ago

Hi, 

Here is the netlist I wrote it for capacitance calculation. 

---------------------------------------------------------------------------------------------

simulator lang=spectre insensitive=yes

parameters
+ f0 = 1M f1 = 5M f2 = 10M // keep same delta
+ vvp1 = 0
+ vvp2 = 0

******************************************************************
include "./call_lib_spectre.scs" section=typical
******************************************************************

X1 ( 1 2 ) cap_mim w=30u l=30u m = 108

Vp1 1 0 vsource dc=vvp1 mag=0.1
Vp2 2 0 vsource dc=vvp2

VoltSweep_p25 ac freq=100k dev=Vp1 param=dc start=0 stop=1 step=1

simulator lang=spice
.print ac Cap1=par('IM(Vp2)*IM(Vp2)/(2*100k*3.1415926*II(Vp2))*1e12')
simulator lang=spectre

saveOptions options save=all pwr=all currents=all

---------------------------------------------------------------------------------------------

To print the output capacitance I used SPICE format. 

But I wanted to do the same in SPECTREMDL and I wrote the following.. 

---------------------------------------------------------------------------------------------

alias measurement acrun {
export cplx Cap1

run VoltSweep_p25

Cap1 = (mag(Vp2)*mag(Vp2)/(2*100k*3.1415926*im(Vp2))*1e12)@cross(sig=V(Vp1)-1)

}

---------------------------------------------------------------------------------------------

But here is the warning

WARNING (MDL-1565): validate object failure -- parameter or terminal 'Vp2' not found in specified scope.
WARNING (MDL-1101): 11: MDL expression for identifier 'Cap1' can not be evaluated due to previous errors.

I am novice in using spectremdl and currently learning it. Anyone can help me where I am wrong in putting expression for Cap1 in spectremdl...

Thanks, 

Hareesh 

  • Cancel
  • hvemulac
    hvemulac over 10 years ago

    Hi, 

    Anyone can help me on my query on SPECTREMDL. I really didn't find an answer .. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Urgent questions should go to customer support or to your normal support channel (e.g. Europractice if under that University program). this forum is a community resource - I aim to answer as much as I can, but at the moment my day job is taking up nearly all of my free time so am unable to answer everything I would like to.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Wading through my email backlog. The mistake you made here was to do mag(Vp2) whereas it should have been mag(V(Vp2)) - you need to use the V function to reference a voltage.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information