• 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 SKILL
  3. How to extract a value from a self-defined plot, maybe using...

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 143
  • Views 19961
  • 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 extract a value from a self-defined plot, maybe using ocean script?

Alex Liao
Alex Liao over 9 years ago

Hey,

I have a plot which is gm/id (y-axis) Vs Id/(w/l) (x-axis) by doing a Parametric Analysis of sweeping Vgs.

I found in the result folder, it has lots of sub-folders named as Vg=0.111,..., Vg=0.555, Vg=0.666,..., Vg=0.999. Inside each of them, a /psf folder is there. This is reasonable as plenty of DC points are covered in the Parametric Analysis. Therefore all of those '/psf' result directories' are working together to compose a full plot by providing data and maybe do some interpolations.

I want to extract a value from this big plot and do not know how to do it.

Say, I can read when the X which is id/(w/l) = 5u, the Y which is gm/id = 10. But I want to get Y values by providing X values.

I am thinking since the X-Y in the big plot are one-to-one corresponded, if all the data are summarized in one place composing the complete plot or maybe in a big table, then giving a X and asking for a Y should be straightforward.

I am not quite sure if the waveVsWave will summarize all the data and provide a function to access it.

May refer to my previous post on how to do the plot on self-defined axis:

community.cadence.com/.../1343786

Any idea?

Regards,

Alex

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

    Alex,

    Unfortunately when you've done YvsY you can't (yet) send the expression on the resulting waveform to the calculator. So instead, you'd have to enter the expression yourself:

    waveVsWave(?y pv("M0" "gm" ?result "dcOpInfo") / pv("M0" "id" ?result "dcOpInfo") ?x pv("M0" "id" ?result "dcOpInfo") / (pv("M0" "w" ?result "instance") / pv("M0" "l" ?result "instance")) )

    You can then use value() on that expression to interpolate at whatever the x-axis values are on that transformed waveform.

    Because waveVsWave is not in the calculator (but is available as a SKILL/OCEAN function), you'll have to type it into the calculator rather than having a form to complete.

    I think that should do it...

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Alex,

    Unfortunately when you've done YvsY you can't (yet) send the expression on the resulting waveform to the calculator. So instead, you'd have to enter the expression yourself:

    waveVsWave(?y pv("M0" "gm" ?result "dcOpInfo") / pv("M0" "id" ?result "dcOpInfo") ?x pv("M0" "id" ?result "dcOpInfo") / (pv("M0" "w" ?result "instance") / pv("M0" "l" ?result "instance")) )

    You can then use value() on that expression to interpolate at whatever the x-axis values are on that transformed waveform.

    Because waveVsWave is not in the calculator (but is available as a SKILL/OCEAN function), you'll have to type it into the calculator rather than having a form to complete.

    I think that should do it...

    Regards,

    Andrew.

    • 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