• 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
  • bobbygang
    bobbygang over 14 years ago

    Hello Andrew,

    Thank you. Now I know how to define color. But there is still some problems.
    When I input "yn" in code, it gives me the color "yn-1" which defined in drf. For example,I input "y3" it displays "y2" color. Moreover I define "y8" blue in drf. But when I input "y9" it dislay gray.  Why?
    Another problem is how to change default plot curve color and order. I mean if I plot five curves without defining color list.
    It also give me five different color curve, but I don't like it. Can I change the default set?

    I'm afraid you got my purpose. Why I want to do this is because some variables set is more complicate in ADE than in ocean.

    Regards,
    Bobby.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • bobbygang
    bobbygang over 14 years ago

    Hello Andrew,

    Thank you. Now I know how to define color. But there is still some problems.
    When I input "yn" in code, it gives me the color "yn-1" which defined in drf. For example,I input "y3" it displays "y2" color. Moreover I define "y8" blue in drf. But when I input "y9" it dislay gray.  Why?
    Another problem is how to change default plot curve color and order. I mean if I plot five curves without defining color list.
    It also give me five different color curve, but I don't like it. Can I change the default set?

    I'm afraid you got my purpose. Why I want to do this is because some variables set is more complicate in ADE than in ocean.

    Regards,
    Bobby.

     

    • 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