• 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. Can I convert ocean to statement?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 13421
  • 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

Can I convert ocean to statement?

bobbygang
bobbygang over 14 years ago

Hello,

In recently work I have found some new questions.

The first question perhaps is simple but I can't achieve it. In some case I may assign some variables. Then I want to know the command which can converts the variable to string.

For example I define  an array its first element is variable A

then I want to use string "A" in the code later.

but if I change the first element to B, I also want to get string "B" How can I do this?

Conversely  how to convert string to variable?

The second question, how can I change the plot curve color?

Now default curve color order of my plot is "red" "blue" "magenta " "black" "orange".......

How can I set the color order?

The third question, after an ocean run, is there anyway to store last analysis statement ?

 

 

 

 

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

    I'm afraid I don't understand what you're trying to do here. I suspect you're going about your problem in the wrong way, which may explain why I can't understand your question. Are you trying to conver the variable's value to a string, or the variable's name? Why?

    You can plot with colour using:

    win=newWindow()
    awvPlotWaveform(win list(wave1 wave2) ?color list("y3" "y5"))

    where y3, y5 etc correspond to your "y3" and "y5" layers in the tech file, and hence colours defined by the display.drf.

    The analysis() function with no arguments will return the analyses currently defined. Note that if you run() a second time, it will re-use the last analysis() - unless you've done a simulator() call to reset the "session".

    Regards,

    Andrew.

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

    I'm afraid I don't understand what you're trying to do here. I suspect you're going about your problem in the wrong way, which may explain why I can't understand your question. Are you trying to conver the variable's value to a string, or the variable's name? Why?

    You can plot with colour using:

    win=newWindow()
    awvPlotWaveform(win list(wave1 wave2) ?color list("y3" "y5"))

    where y3, y5 etc correspond to your "y3" and "y5" layers in the tech file, and hence colours defined by the display.drf.

    The analysis() function with no arguments will return the analyses currently defined. Note that if you run() a second time, it will re-use the last analysis() - unless you've done a simulator() call to reset the "session".

    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