• 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. Custom SKILL functions in Design Variable Value

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 4531
  • 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

Custom SKILL functions in Design Variable Value

srftech
srftech over 1 year ago

Hello,

I have recently begun using SKILL statements to define values of design variables in ADE Explorer. I can use ternary expressions to nice effect like this: 

(bOMC0==0 && bOMC1 ==0 )?1G:1k

where bOMC0 and bOMC1 are design variables

I have another design variable that has a bit more complicated dependancies and I'd prefer to define its behavior in an external script instead of a long string of SKILL code in the ADE explorer window.  I have tried saving the function to a file, loading that file in the CIW and then calling that function in ADE explorer

choosePuPd(isOdPu, isOdPd)

Where the functinon choosePuPd is defined in the file I loaded and isOdPu, isOdPd are other design variables.

When I do this, I get an error that says the function is not defined "in the netlist" which obviously it's not. But I was hoping that the skill function would evaluate.

procedure(choosePuPd(isOdPd isOdPu)
  prog(()


   when((isOdPu==1)
     return(1)
    )

  when((isOdPd==1)
    return(0)
  )
)

)

  • Cancel
Parents
  • Seiba
    Seiba over 1 year ago

    Hi srftech,

    In order to get it to run successfully, load the SKILL file from the.cdsinit file with load ("mySKILL.il"). The netlisting stage and other preliminary stages are performed in the background. Therefore, it does not capture the right function output when loaded into the CIW since it does not have access to the function. Also, remember to save changes in the file and stop and re-run your simulations. This will enable the simulation to take the updated changes into account. I hope this helps. Thank you. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Seiba
    Seiba over 1 year ago

    Hi srftech,

    In order to get it to run successfully, load the SKILL file from the.cdsinit file with load ("mySKILL.il"). The netlisting stage and other preliminary stages are performed in the background. Therefore, it does not capture the right function output when loaded into the CIW since it does not have access to the function. Also, remember to save changes in the file and stop and re-run your simulations. This will enable the simulation to take the updated changes into account. I hope this helps. Thank you. 

    • 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