• 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. pulldown menu in Assembler & Explorer

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 1618
  • 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

pulldown menu in Assembler & Explorer

FAwqati
FAwqati over 7 years ago

Hi All,

I would like to add my own custom pulldown menu in Assembler and Explorer. I have written the procedures and tested they work fine, i just need them to automatically load.

- Background - 

Ive managed to get the following working, but if i put my procedure call on the third argument it doesn't work. I thought the third argument was the menu trigger.

deRegUserTriggers("explorer" nil nil 'MyExplorerPDmenu)

Is this correct ? Should i be using deRegUserTriggers method or is there an equivalent to the below ?

envSetVal("asimenv.startup" "sessInitTrigFunc" 'string "init_session")
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 7 years ago

    Hi Faisal,

    You should use the deRegUserTriggers call to do this, and the right thing to do is to use the user menu trigger (you definitely should not use the user post install trigger, as that can have problematic side effects with code fighting other code if you have more than one set of triggers defined). Note that the user menu trigger does not need to add the menus itself - it merely returns a list of pulldown menus, and "de" (the Design Editor) takes care of adding them for you.

    I would not advise using the sessInitTrigFunc - this is really only designed with ADE L in mind, and is awkward to make it work with ADE XL, Explorer and Assembler such that things don't break. One of the advantages of Explorer and Assembler is that they are "de" applications (ADE L wasn't) which makes this kind of customisation much easier.

    See the code below - I just tested this, and it works fine:

    procedure(CCFexplorerAssemblerMenuTrigger(args)
      list(
        hiCreatePulldownMenu(
          'CCFexplorerAssemblerMenu
          "Custom"
          list(
            hiCreateMenuItem(
              ?name 'menu1
              ?itemText "First item"
              ?callback "println(123)"
            )
            hiCreateMenuItem(
              ?name 'menu2
              ?itemText "Second item"
              ?callback "println(456)"
            )
          )
        )
      )
    )
    
    deRegUserTriggers("explorer" nil 'CCFexplorerAssemblerMenuTrigger)
    deRegUserTriggers("maestro" nil 'CCFexplorerAssemblerMenuTrigger)
    

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • FAwqati
    FAwqati over 7 years ago in reply to Andrew Beckett

    Morning Andrew,

    That worked great ! 

    Many thanks

    Faisal

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • FAwqati
    FAwqati over 7 years ago in reply to Andrew Beckett

    Morning Andrew,

    That worked great ! 

    Many thanks

    Faisal

    • 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