• 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 a Procedure be used in Ocean Output Expressions...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13763
  • 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 a Procedure be used in Ocean Output Expressions?

Aynaz
Aynaz over 6 years ago

Hi,

I am trying to clean up the output expressions in my OceanXL file by defining and using a procedures to replace the repetitive expressions. However, whatever I try, I keep getting Undefined function Error and the calculation gives eval err... as if it does not pick up the Procedure or does not recognize it as a Procedure. Here is what I am doing:

procedure( calc_dco_start_time(dco_node supply)
          cross(VT(dco_node) (0.5 * supply) 5 "rising" nil nil nil)
         ) ;proc

ocnxlOutputExpr( "calc_dco_start_time(\"DCO_PHASE<0>\" VAR(\"VCC\"))" ?name "start_time" ?plot t ?save t)

and here is all the things I have tried so far:

1) Since it didn't work having both the procedure and the outputexpr in the body of my ocean script, I tried putting the procedure in a separate .il file, meas_funcions.il, and doing load("meas_functions.il") at the body.

2) I tried using (defInitProc "calc_dco_start_time" 'calc_dco_start_time) 

3) I added load("meas_functions.il") to ~/.oceanrc file

4) I added load("meas_functions.il") to ~/.cdsinit

Can a procedure be called inside oceanxloutputexpr or not? If so, what is it that I am missing here?

I am using Cadence IC618 and running sims with Spectre APS version 18.1. Not sure if it makes a difference or not, but I am running ocean from unix command line.

Thanks a lot!

Aynaz

  • Cancel
Parents
  • Aynaz
    Aynaz over 6 years ago

    Turns out there was a syntax error and option 3, loading the function file (with full path, if it is not in the Home directory) into .oceanrc should have worked!

    I was missing a "/" in the net name: calc_dco_start_time(\"/DCO_PHASE<0>\" VAR(\"VCC\"))

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Aynaz
    Aynaz over 6 years ago

    Turns out there was a syntax error and option 3, loading the function file (with full path, if it is not in the Home directory) into .oceanrc should have worked!

    I was missing a "/" in the net name: calc_dco_start_time(\"/DCO_PHASE<0>\" VAR(\"VCC\"))

    • 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