• 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. ADE-L: how to add include file without using hard-coded...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 15098
  • 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

ADE-L: how to add include file without using hard-coded paths

dontpanic
dontpanic over 5 years ago


Hi! Is it possible to tell ADE-L to include a file without needing to hard-code its path? This procedure works in Assembler, but fails in ADE-L:

    1. I put the file to include (say "input.scs") under the cell directory
    2. In the ADE-L state I define a variable with the path, to be resolved at netlisting time:
    spectre_include=strcat(dbFullLibPath(asiGetDesignLibName(asiGetSession(hiGetCurrentWindow()))) "/" asiGetDesignCellName(asiGetSession(hiGetCurrentWindow())) "/input.scs")
    3. In the model files window, I add an entry VAR("spectre_include") (Note: I need a variable because when adding the skill code directly here, it tries to interpret it as a model and section definition!)

The problem is that ADE-L doesn't resolve the Skill code and netlists this as follows:

[...]
Vdd=8.500000e-01 \
spectre_include=strcat(dbFullLibPath(asiGetDesignLibName(asiGetSession(hiGetCurrentWindow()))) \
"/" asiGetDesignCellName(asiGetSession(hiGetCurrentWindow())) "/input.scs") \
Vss=0 \
[...]
include "correct_path_to_my_cell/input.scs"
[...]

And even tough the model definition is resolved correctly, Spectre complains about the unresolved variable value:

Error found by spectre during circuit read-in.
ERROR (SFE-874): "input.scs" 41: Cannot run the simulation because syntax error `Unexpected quoted string ""/". Expected close parenthesis or comma' was encountered at line 41, column 4. Correct the syntax error and rerun the simulation.
ERROR (SFE-683): "input.scs" 41: Badly formed parameters statement.

Is there anyway to force ADE-L to resolve such variable? Or any other way to include a file without hard-coding its path?

Thanks and regards,

Jorge.

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

    Hi Jorge,

    Design variables in ADE L are not SKILL expressions, and Spectre itself doesn't understand SKILL so this is not going to work. If you use ADE Explorer, ADE XL or ADE Assembler I think it would work (you might have to tweak the expression a bit - I didn't try).

    However, how about this for a different approach which would also have the benefit of working with design management tools too. Instead of doing it this way, create a new cellView, mylib/includeBlock/spectreText (of view type "spectre"), with contents as follows:

    // "spectre" description for "mylib", "includeBlock", "spectreText"


    simulator lang=spectre

    // an empty subckt - we don't particular want anything in the design
    subckt includeBlock ()
    ends includeBlock

    // the stuff you wanted to include - here I added a second transient analysis, say
    tran2 tran stop=2u

    When you hit the "extract" icon (or File->Extract) it will prompt you to create a symbol with no pins. You can then instantiate this in your testbench, and it will then get included in the netlist with no need to do anything else...

    Regards,

    Andrew.

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

    Hi Jorge,

    Design variables in ADE L are not SKILL expressions, and Spectre itself doesn't understand SKILL so this is not going to work. If you use ADE Explorer, ADE XL or ADE Assembler I think it would work (you might have to tweak the expression a bit - I didn't try).

    However, how about this for a different approach which would also have the benefit of working with design management tools too. Instead of doing it this way, create a new cellView, mylib/includeBlock/spectreText (of view type "spectre"), with contents as follows:

    // "spectre" description for "mylib", "includeBlock", "spectreText"


    simulator lang=spectre

    // an empty subckt - we don't particular want anything in the design
    subckt includeBlock ()
    ends includeBlock

    // the stuff you wanted to include - here I added a second transient analysis, say
    tran2 tran stop=2u

    When you hit the "extract" icon (or File->Extract) it will prompt you to create a symbol with no pins. You can then instantiate this in your testbench, and it will then get included in the netlist with no need to do anything else...

    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