• 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 to pass desVar using include file in ocean runs

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14979
  • 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 to pass desVar using include file in ocean runs

BillPDB
BillPDB over 7 years ago

Hi,

I have a testbench with tens of design variables. I have to create multiple ocean run files to test different functionality. To avoid confusion and keep run files simple I want to have only the variables necessary(couple of variables) in each run file and include a file containing all other design variables.

I tried to include this file a couple of ways and both didn't work. Is there another way?

  1. path( "<path_to_directory_containing_variables_file>" )
  2. definitionFile( "<path_to_directory_containing_variables_file>")

 

Thank you,

Prasad

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

    Hi Prasad,

    When you say "both didn't work", what exactly didn't work? What was the error? Just trying to understand what you'd tried and what didn't work. 

    The path() function specifies a list of directories to search in, and the definitionFile is the name of an actual file to include; relative paths are found using the directories specified in path().

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • BillPDB
    BillPDB over 7 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thank you for your response.

    Correcting the paths I used!

    1. path( "<absolute_path_to_directory_containing_variables_file>" )
    2. definitionFile( "<absolute_path_to_file_containing_variables>")

    Examples of entries in design_variables.scs file are below.

    simulator lang=spectre

    desVar(   "vdd"  1.2)

    desVar(   "vddio" 1.8)

    desVar(   "vVDD"  "vdd")

    In the first case, ocean gives out these errors..

    ERROR (SFE-1997): "input.scs" 5531: I78: parameter `Von': Cannot run the simulation because an unknown parameter `vVDD' has been specified in expression `vVDD'. Correct the expression and rerun the simulation.

    etc..

    In the second case, ocean run gives out these errors..

    ERROR (SFE-709): "absolute_path_to_file_containing_variables" 6: No master specified for instance `desVar'.

    ERROR (SFE-874): "absolute_path_to_file_containing_variables" 6: 10: Unexpected quoted string ""vdd". Expected end of file or end of line. Cannot run the simulation because of syntax error. Correct the error and rerun the simulation.

    etc...

    Please let me know if you need any other information.

    Thank you,

    Prasad

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • BillPDB
    BillPDB over 7 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thank you for your response.

    Correcting the paths I used!

    1. path( "<absolute_path_to_directory_containing_variables_file>" )
    2. definitionFile( "<absolute_path_to_file_containing_variables>")

    Examples of entries in design_variables.scs file are below.

    simulator lang=spectre

    desVar(   "vdd"  1.2)

    desVar(   "vddio" 1.8)

    desVar(   "vVDD"  "vdd")

    In the first case, ocean gives out these errors..

    ERROR (SFE-1997): "input.scs" 5531: I78: parameter `Von': Cannot run the simulation because an unknown parameter `vVDD' has been specified in expression `vVDD'. Correct the expression and rerun the simulation.

    etc..

    In the second case, ocean run gives out these errors..

    ERROR (SFE-709): "absolute_path_to_file_containing_variables" 6: No master specified for instance `desVar'.

    ERROR (SFE-874): "absolute_path_to_file_containing_variables" 6: 10: Unexpected quoted string ""vdd". Expected end of file or end of line. Cannot run the simulation because of syntax error. Correct the error and rerun the simulation.

    etc...

    Please let me know if you need any other information.

    Thank you,

    Prasad

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to BillPDB

    Hi Prasad,

    OK, in that case it's hardly surprising it doesn't work. You've put desVar function calls (which are OCEAN/SKILL functions) into a spectre syntax file. You either need to use the approach you've used and put instead:

    simulator lang=spectre
    parameters vdd=1.2 vddio=1.8 vVDD=vdd

    or simpler still, I'd create a file, commonVars.ocn which contains:

    desVar( "vdd" 1.2)
    desVar( "vddio" 1.8)
    desVar( "vVDD" "vdd")

    and then rather than using path/definitionFile, simply in your OCEAN script use:

    load("/path/to/commonVars.ocn")

    at the appropriate point in your OCEAN script (i.e. after the design() and before the run() somewhere).

    If you prefer the syntax, you can use:

    include("/path/to/commonVars.ocn")

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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