• 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 open a new gui window from pull down option using...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 12102
  • 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 open a new gui window from pull down option using skill in virtuoso ciw

saurabh96
saurabh96 over 4 years ago

Hi i create a pull down option halo it consists of setup and guide..now i want that when i click setup a new gui opens..for that i have written skilll code but cannot merge..How to do that when i click setup a new gui opens ..Also for that new gui below is skill code am using.

(let (techNodes rules theForm)
 
   techNodes = (hiCreateCyclicField
                  ?name 'techNodes
                  ?prompt     "Tech Nodes"
                  ?choices    (list "40nm" "60nm")
                  ?callback   (lambda (fld form node)
                                 (println node)
                                 (case node
                                    ("40nm"
                                       theForm->rules->choices = (list "Rule1" "Rule2" "Rule3"))
                                    ("60nm"
                                       theForm->rules->choices = (list "Rule1" "Rule4")))))

   rules = (hiCreateCyclicField
                  ?name 'rules
                  ?prompt     "Rules"
                  ?choices    (list "Rule1" "Rule2" "Rule3"))

   theForm = (hiCreateAppForm
      ?name 'myForm
      ?formTitle "Just playing..."
      ?fields (list techNodes rules))
 
   (hiDisplayForm theForm)
)

  • Cancel
  • mbracht
    mbracht over 4 years ago

    Hi,

    You need to put the code in the let() block in a global function and then define this global function as the menu item's callback:

    (defun setupItemCB ()
       (let (techNodes rules)
     
          techNodes = (hiCreateCyclicField
                         ?name 'techNodes
                         ?prompt     "Tech Nodes"
                         ?choices    (list "40nm" "60nm")
                         ?callback   (lambda (fld form node)
                                        (println node)
                                        (case node
                                           ("40nm"
                                              theForm->rules->choices = (list "Rule1" "Rule2" "Rule3"))
                                           ("60nm"
                                              theForm->rules->choices = (list "Rule1" "Rule4")))))
     
          rules = (hiCreateCyclicField
                         ?name 'rules
                         ?prompt     "Rules"
                         ?choices    (list "Rule1" "Rule2" "Rule3"))
     
          theForm = (hiCreateAppForm
             ?name 'myForm
             ?formTitle "Just playing..."
             ?fields (list techNodes rules))
     
          (hiDisplayForm theForm)))

    setupItem = (hiCreateMenuItem
       ?name 'Setup
       ?itemText   "Setup"
       ?callback   "setupItemCB()")

    userGuideItem = (hiCreateMenuItem
       ?name 'UserGiude
       ?itemText   "User Guide"
       ?callback   "(println \"to be implemented...\")")

    haloMenu = (hiCreatePulldownMenu
       (gensym)
       "Halo"
       (list setupItem userGuideItem))

    (hiInsertBannerMenu window( 1 ) haloMenu (length (hiGetBannerMenus (window 1))) )

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • saurabh96
    saurabh96 over 4 years ago in reply to mbracht

    Thanks Max ..for quick guidance and reply.

    Max i was testing one of the skill code..i have few questions in that:-

    1) How can we call netlist direct from schematic using radio button in gui.?

    2)Suppose from browse button we had to only call .gds or .cdl file and if user select other than these two extension file will not be select. How we can do it using skill in browse button option?

    button_setup_data = hiCreateButton(
    ?name 'button_setup_data
    ?buttonText "Browse"
    ?callback "ddsFileBrowseCB(hiGetCurrentForm() 'setup_data_path \"\" '.cdlOnly)" )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mbracht
    mbracht over 4 years ago in reply to saurabh96

    I think you should open a new thread for this - the original question about how to pop up a GUI through a pull down menu is definitely answered.
    You also need to be clearer with your questions, I don't really understand what you mean by "call netlist direct from schematic using radio button in gui"

    Max

    • 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