• 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. How to plot frequency characteristic of capacitance?

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 126
  • Views 19201
  • 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

How to plot frequency characteristic of capacitance?

kwsgk
kwsgk over 7 years ago

Hi. all.

I'd like to plot frequency characteristic of capacitance in spectre.

In AC simulation, I get current of capacitor (Ic) and its imaginary part ( Im(Ic) ).

Now tring to calculate Cap = Im(Ic) / omega  (omega=2*pi*freq)

I can't find how to devide Im(Ic) by freq or omega.

I find 'xval' can plot simulation frequency, but dividing doesn't work. 

Could you help, please?

Best Regards

Kawai

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 7 years ago

    Hi Kawai,

    I don't see why:

    imag(i("/C1/PLUS"))/(2*3.1415926535*xval(v("/something")))

    (or similar) doesn't work. If you can plot xval then you should be able to divide by it (unless you have 0 in the frequency range?)

    Perhaps you can give the actual expression and the error message.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kwsgk
    kwsgk over 7 years ago in reply to Andrew Beckett

    Hi Andrew.

    Thanks a lot for your reply.

    The expression is as folows.

    (imag(IF("/C1/PLUS")) / (2 * 3.14 * xval(IF("/C1/PLUS"))))

    The error message is as follows

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

    WARNING (OCN-6038): Results ac are not available for /"~~Simulation Path~~"/distributed/job105/psf. Use results() for a list of available results.
    *Error* imag: can't handle imag(nil)


    WARNING (OCN-6038): Results ac are not available for /"~~Simulation Path~~"/distributed/job105/psf. Use results() for a list of available results.
    *Error* xval: can't handle xval(nil)


    *Error* ("times" 0 t nil ("*Error* times: can't handle (6.28 * nil)"))


    ERROR (ADE-1057): Could not evaluate expression
            '(imag(IF("/C1/PLUS")) / (2 * 3.14 * xval(IF("/C1/PLUS"))))'
         because of the following error(s)
            ("times" 0 t nil ("*Error* times: can't handle (6.28 * nil)"))
         Ensure that the definition of the expression is correct.

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

    I found that in case of using calculator (post simulation) above expression seems to work. It returns 1e-12 independent to frequency.

    I test xval only "xval(VF("/net01"))" but it doesn't work today.

    Best regards.

    Kawai.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to kwsgk

    Hi Kawai,

    It sounds as if you're just not looking at the results properly - did you do what it suggests in the error and see what results() returns?

    This is something that would be best handled with a webex with customer support, to be honest. Trying to debug it through the forums is going to be really hard - I can't see any logical explanation as to why it doesn't work...

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kwsgk
    kwsgk over 7 years ago in reply to Andrew Beckett

    Hi Andrew.

    I understand above expression works  appropriatly.

    With calculator, frequency charactoristic is plotted.

     

    As you say, Something is wrong in my operation or recognition.

    I'd like to recheck manuals. Then ask custormer support.  

    Thank you very much for your advice and kindness.

    Best regards,

    Kawai.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • kwsgk
    kwsgk over 7 years ago in reply to Andrew Beckett

    Hi Andrew.

    I understand above expression works  appropriatly.

    With calculator, frequency charactoristic is plotted.

     

    As you say, Something is wrong in my operation or recognition.

    I'd like to recheck manuals. Then ask custormer support.  

    Thank you very much for your advice and kindness.

    Best regards,

    Kawai.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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