• 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 apply "ocnYvsYplot" API to a family of waveforms

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 1666
  • 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 apply "ocnYvsYplot" API to a family of waveforms

fatcat1206
fatcat1206 over 7 years ago

Hi All

Does someone know how to apply "ocnYvsYplot" API to a family of waveforms.

According to the API manual, "ocnYvsYplot" is not supported for a family of waveforms.

But I want to use it in the ADEXL, even with the single norminal run, the final simulation data will consider it's a family waveforms.

I have tried "famMap" function, but do not know how to deal with the "Key" type argument.

Best Regards

Yi

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago

    Yi,

    You should use the waveVsWave function instead.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • fatcat1206
    fatcat1206 over 7 years ago
    Hi Andrew

    Thank you so much.
    It works

    Best Regards

    Yi
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • drdanmc
    drdanmc over 7 years ago
    As Andrew said, use waveVsWave. If you find that you need to use famMap in the future with a function that has keyword arguments, you should be able to do something like:

    procedure( myFn( sig @key (key1 def1) (key2 def2) ... )
    if(famIsFamily(sig) then
    famMap( 'myFn sig ?key1 key1val ?key2 key2val ...)
    else
    ;; code for a single waveform
    )
    )

    note that this is assuming sig is a waveform or waveform family and the other args are not families.

    -Dan
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago
    Hi Dan,

    I think it should “unwrap” any of the remaining arguments if they are families too - not just the first. I didn’t test it with ?key arguments (it certainly does that with non-key arguments) but having a quick glance at the code, I think it should work for all arguments.

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • fatcat1206
    fatcat1206 over 7 years ago
    Hi Dan

    Thank you for your hint.

    I have tried the similar approach for the "ocnYvsYplot", it does not succeed.
    Now I realize that the why it fails.

    As shown in the description of "ocnYvsYplot" below, all the arguments are "key" type, thus there is no way to put the first argument with "family waveforms"

    ocnYvsYplot(
    [ ?wavex o_wavex ?wavey o_wavey ]
    [ ?exprx o_exprx ?expry o_expry ]
    [ ?titleList l_titleList ]
    [ ?colorList l_colorList ]
    )

    I have not try you method in a general condition, but I have the feeling that it will work, and also "unwrap" any of the remaining arguments, as mentioned by Andrew.

    Best Regards

    Yi
    • 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