• 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 can I get waveforms from item in OCEAN ?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 146
  • Views 12438
  • 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 can I get waveforms from item in OCEAN ?

ichiro
ichiro over 4 years ago

Hi

I'd like to get waveforms from item in OCEAN script.

The "nth" syntax is only able to get as strings not as waveforms.

Is there a another way to get them?

Thanks,

Ichiro

  • Cancel
Parents
  • ichiro
    ichiro over 4 years ago

    OUT_g=/VT("OUT")

    .

    .

    foreach(item '(
    (1 OUT_g CNT1_g)
    (2 IN_g CNT2_g)
    );item

    awvPlotWaveform(
            currentWindow()
            list(nth(1 item) nth(2 item)) 
    .

    .

    .
    )

    Above worked well when list is given waveform name directly.

    awvPlotWaveform(
            currentWindow()
            list(OUT_g CNT1_g) 

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

    There's nothing wrong with nth - the issue is that you've used ' (quote) to create your list, which means that none of the values within the list are evaluated - so it's a list of two sublists, each of which contain an integer and two symbols. So you're getting a symbol because of that.

    Instead, if you use:

    foreach(item list(
        list(1 OUT_g CNT1_g)
        list(2 IN_g CNT2_g)
      )

    then the rest of the code should work.

    Andrew.

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

    Hi , Andrew

    Thank you for your nice advice. I'll try it soon.

    Thanks,

    Ichiro

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ichiro
    ichiro over 4 years ago in reply to ichiro

    I confirmed working well above.

    Thanks 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ichiro
    ichiro over 4 years ago in reply to ichiro

    I confirmed working well above.

    Thanks 

    • 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