• 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 do a function call when launch leHiCreateInst() command...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 1129
  • 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 do a function call when launch leHiCreateInst() command , then press 'Hide' or 'Cancel' button ?

Charley Chen
Charley Chen over 10 years ago

Hi All ,

How to do a function call (e.g. myfun()) when launch leHiCreateInst() command , then press 'Hide' or 'Cancel' button ?

procedure( myfun()

.....

);pro

Thank you,

Charley

  • Cancel
  • dmay
    dmay over 10 years ago

    I'm not sure I fully understand your question. I have a wrapper for the create instance form that populates the library, cellname and viewname. This may help you do what you want. It uses hiRegTimer to make sure the form is defined and cancels the form. It then sets the form settings according to the procedure arguments and invokes leHiCreateInst.

    ;;Fill in form if optional arguments are passed.
    procedure(myCreateInst(@optional (lib nil) (cell nil) (view nil) (instName nil))
        ;In 6.1.6, leCreateInstForm is bound and nil at startup
        unless(boundp('leCreateInstForm) && leCreateInstForm
            hiRegTimer("cancelEnterFun(leCreateInstForm)" 1)
            leHiCreateInst()
        )
        leCreateInstForm->libName->value = lib
        leCreateInstForm->cellName->value = cell
        leCreateInstForm->viewName->value = view
        leCreateInstForm->instName->value = instName
        leHiCreateInst()
    )
    myCreateInst("mylibname" "inv" "layout" "myinst")

    This code could easily be elaborated to get the selected instance in a schematic and populate the form for placing it in the layout.

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 10 years ago

    Hi Derek , 

    Sorry for unclear question and  help.

    I want to do something  'when press  Hide/Cancel button when using  leHiCreateInst() ' , 

    I have tried to use " change form back " command , thought skill command is right , but it doesn't work .

    If it can't  do it , I will use another solution to try.

    Thank you for help

    Charley

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 10 years ago

    If you use a wrapper script like I provided, you can simply add a command after the leHiCreateInst() command. This will run after you cancel the form. I'm not sure how you would trap the "Hide" button press. There is a big difference between what the buttons do, so you might try to describe what you want and maybe there is an alternative solution.

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 10 years ago

    Hi Derek , 

    I follow your suggestion , it can work.

    Thank you,

    Charley

    • 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