• 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 execute a skill script at command line

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 21772
  • 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 execute a skill script at command line

harishgurram
harishgurram over 11 years ago

Hi,

I written a skill script which creates a widget, I want to run this script at command line. How to do this. And Is there any way to execute skill script with out opening the tool.

Thanks,

Harish.

  • Cancel
Parents
  • theopaone
    theopaone over 11 years ago

    You have to have graphics if you use a GUI. -nograph will not work. You need the hi- functions.

    Consider your architecture. You should actually have 3 levels of code:

    1.  create and display the GUI

    2. the form callback: This interprets the form and fields and calls the database operation function.

    3. The database operation function. It is independent from the GUI and knows nothing about it. It is driven by the values of the arguments to the function. When executed as part of the form, the form callback reads the form fields, generates the database operation argument values and calls the function. When called from a script, the script figures out the argument values and then calls the function, no form involved.

    It is not hard to refactor your code in this way. You already create the form. From your database operation function, separate the form analysis into a callback and the execution into its own function. Probably about 10 lines of code. The database operation function should not reference the form at all, everything should be passed through the arguments. The callback calls the database operation function with the arguments gathered from the form.

    For the nonGUI script, the script figures out the arguments, and then calls the database operation function without the GUI or the callback.

    By structuring your form/callback/functionality in this way, you increase your testability, you can run unit tests on the database operation function independently from the form and insert them into regression tests. It also improves maintainability, you can make changes with minimal impact. 

    Ted

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • theopaone
    theopaone over 11 years ago

    You have to have graphics if you use a GUI. -nograph will not work. You need the hi- functions.

    Consider your architecture. You should actually have 3 levels of code:

    1.  create and display the GUI

    2. the form callback: This interprets the form and fields and calls the database operation function.

    3. The database operation function. It is independent from the GUI and knows nothing about it. It is driven by the values of the arguments to the function. When executed as part of the form, the form callback reads the form fields, generates the database operation argument values and calls the function. When called from a script, the script figures out the argument values and then calls the function, no form involved.

    It is not hard to refactor your code in this way. You already create the form. From your database operation function, separate the form analysis into a callback and the execution into its own function. Probably about 10 lines of code. The database operation function should not reference the form at all, everything should be passed through the arguments. The callback calls the database operation function with the arguments gathered from the form.

    For the nonGUI script, the script figures out the arguments, and then calls the database operation function without the GUI or the callback.

    By structuring your form/callback/functionality in this way, you increase your testability, you can run unit tests on the database operation function independently from the form and insert them into regression tests. It also improves maintainability, you can make changes with minimal impact. 

    Ted

    • 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