• 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. Example Ocean measurement file in ADEXL

Stats

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

Example Ocean measurement file in ADEXL

BradW
BradW over 11 years ago

I'm trying to create an ADEXL measurement using an Ocean script and I'm not having a lot of luck.  I've been trying to find a simple example but I've yet to see one in the manual or online.  

Right now I'm just trying to get something very simple to work.  For example, I have a regular measure expression 

if(((VAR("trace0") == 0) && (VAR("trace1") == 0)) 4 0)

which works just fine.  If I take this code and plug it into a file and then tell it to use this file as an Ocean script I get an "eval err".  Is there some special format I need to use within the ocean script to get it to work with ADEXL?

 I'm presently using IC6.1.5-64b.500.132

 

Thanks



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

    The normal method would be for the first line of your OCEAN script to "advertize" the names of the outputs that it is going to produce using:

    axlAddOutputs('("myOut1" "myOut2"))

    Then you add the code to do all your computation, and when each output is ready, you can then do:

    axlOutputResult(if(((VAR("trace0") == 0) && (VAR("trace1") == 0)) 4 0) "myOut1")

    It is also possible to call axlOutputResult without a name and then that's the result of the script - useful if your script is only going to return one thing.

    Hopefully that helps!

    Regards,

    Andrew.

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

    The normal method would be for the first line of your OCEAN script to "advertize" the names of the outputs that it is going to produce using:

    axlAddOutputs('("myOut1" "myOut2"))

    Then you add the code to do all your computation, and when each output is ready, you can then do:

    axlOutputResult(if(((VAR("trace0") == 0) && (VAR("trace1") == 0)) 4 0) "myOut1")

    It is also possible to call axlOutputResult without a name and then that's the result of the script - useful if your script is only going to return one thing.

    Hopefully that helps!

    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