• 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. VCCAP Usage and Documentation

Stats

  • Locked Locked
  • Replies 18
  • Subscribers 125
  • Views 23260
  • 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

VCCAP Usage and Documentation

EEE student
EEE student over 4 years ago

Hi Guys, I have a question about vccap in the analogue lib.

I need to simulate a design with a varying capacitor and hence use a vccap is a good choice.

However, I don't quite know how to use it and the documentation about it is a bit unclear.

May I kindly ask if anyone has ever used it before? If you don't recommend using it, may I ask if there are other possible ways of varying caps in simulation?

Thank you very much!

Mingqiang

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to EEE student

    Hi Mingqiang,

    We already talked before about plotting the capacitor value via :lx0. So plot two signals - one is the period (versus time) that you asked about, and the other is the capacitor value (lx0). 

    Then over the x-axis, click right mouse->Y vs Y. Pick the trace that you want to be the x-axis (the capacitor value, lx0) and you'll then get a new graph of the period versus the capacitor value.

    Does that answer your question?

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • EEE student
    EEE student over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thank you so much! This is now clear.

    Because lx0 I plotted is only against time and I am wondering how to relate it to period.

    Now your explanation is in more detail!

    Sorry for my bad understanding!

    Thanks,

    Mingqiang

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • EEE student
    EEE student over 4 years ago in reply to Andrew Beckett

    Hi Mr. Andrew,

    I am really sorry to disturb you again, but the picture I get is not a discrete graph as shown below. This is confusing as I set all capacitor values at discrete values at certain time point in the dynamic variable vector. However, the results give me continuous graph in oppoint against time. I set infotimes to save these oppoint. May I ask if there is any way of plotting frequency against discrete lx0?

    Thank you very much!

    Best Wishes,

    Mingqiang

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 4 years ago in reply to EEE student

    Dear Mingqiang,

    EEE student said:
    May I ask if there is any way of plotting frequency against discrete lx0?

    Did you right click on your plot of capacitance versus time and choose "Type->Points" and, also from a right click, "Symbols on". This will only display the values without any line between data points.

    Shawn

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • EEE student
    EEE student over 4 years ago in reply to ShawnLogan

    Thank you very much! I will do it tomorrow! I will update if I succeed.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to EEE student

    I don't really understand what you're doing here - why are you using a vccap and then using a dynamic parameter to change the capacitor value? Why not just use a capacitor with a variable as the value and use the dynamic parameter to change it?

    It's unclear to me what you're really doing here - seeing the input.scs netlist would really help as it's hard to understand otherwise.

    Potentially you could take the trace that is supposed to be "discrete" and use right mouse->type->sample and hold, but that will only help if it is truly discrete, which I'm not convinced is the case here. Similarly Shawn's suggestion won't help either in that case.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • EEE student
    EEE student over 4 years ago in reply to Andrew Beckett

    Hi Mr. Andrew,

    Sorry to confuse you. Let me show you the graph below:

    As you can see, the hysteresis opamp's oscillation frequency is determined by this vccs cap. If I did directly parameter sweep, that would be in the dc analysis and every change would be against this vccs value. 

    However, hysteresis opamp will never run because it takes time to oscillate. Therefore, we must do the transient analysis to see its actual period and then treat the vccs as a dynamic variable to observe how this period changes as the vccs value increases. Hence I calculate period using 1/freq(). Then using opt() to plot vccs value against the time.

    For your reference, I have attached the netlist here:

    // Library name: Lab1
    // Cell name: schmitt_trigger
    // View name: schematic
    I13 (vdd! 0 capout vfeedback schmitt_out) opamp_sch
    R3 (vdd! vfeedback) polyhres_pcell_1 sl=156.76u w=1.2u
    R2 (capout schmitt_out) polyhres_pcell_1 sl=160.17u w=1.2u
    R1 (vfeedback 0) polyhres_pcell_1 sl=156.76u w=1.2u
    R0 (vfeedback schmitt_out) polyhres_pcell_1 sl=156.76u w=1.2u
    C1 (out 0) capacitor c=1p
    I10 (0 schmitt_out out vdd!) Inverter
    V0 (vdd! 0) vsource dc=1.8 type=pulse val0=0 val1=1.8 rise=100n
    V1 (net15 0) vsource dc=dc_cap type=dc
    G1 (capout 0 net15 0) vccs gm=1p type=vccap inputtype=single delta=0
    simulatorOptions options reltol=1e-3 vabstol=1e-6 iabstol=1e-12 temp=27 \
    tnom=27 scalem=1.0 scale=1.0 gmin=1e-12 rforce=1 maxnotes=5 maxwarns=5 \
    digits=5 cols=80 pivrel=1e-3 sensfile="../psf/sens.output" \
    checklimitdest=psf
    tran tran stop=200u param=dc_cap param_vec=[0 1 10u 1.5 20u 2 30u 2.5 40u \
    3 50u 3.5 60u 4 70u 4.5 80u 5 100u 4.5 110u 4 120u 3.5 130u 3 140u 2.5 \
    150u 2 160u 1.5 170u 1] write="spectre.ic" writefinal="spectre.fc" \
    annotate=status infotimes=[5u 15u 25u 35u 45u 55u 65u 75u 85u 95u 105u \
    115u 125u 135u 145u 155u 165u 175u] maxiters=5 infoname=tran_Info
    finalTimeOP info what=oppoint where=rawfile
    tran_Info info what=oppoint where=rawfile
    modelParameter info what=models where=rawfile
    element info what=inst where=rawfile
    outputParameter info what=output where=rawfile
    designParamVals info what=parameters where=rawfile
    primitives info what=primitives where=rawfile
    subckts info what=subckts where=rawfile
    saveOptions options save=allpub

    Thank you for your patience!

    Mingqiang

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • EEE student
    EEE student over 4 years ago in reply to ShawnLogan

    Hi there, 

    Here is a quick update. I successfully plotted the stuff using your method. I have attached it for your reference! Thank you very much!

    • 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