• 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. ADEXL counterpart of simui.menus file

Stats

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

ADEXL counterpart of simui.menus file

tyanata
tyanata over 13 years ago

 Hello,

In the past I created custom button in the drop-down buttons bar in ADE-L, I used the approach from solution 11286092.

Now I want to create similar button on ADEXL.

The principle of routine is based on fact that you have to know the names of the default buttons on the bar ( they can be found in simui.menus file).

So I want to know what is the counterpat of simui.menus file for ADEXL.

 

Best regards,

 

tyanata

 

 

 

 

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    I've updated the solution (which was written by me anyway) to show a variant approach which will work with both ADE L and the ADE XL test editor (and also appear in the RMB menus in the data view assistant, for example).

    If you want to alter the pulldown menus in ADE XL, you can do that with a user menu trigger using deRegUserTriggers() (the application is "adexl").

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tyanata
    tyanata over 13 years ago

     Hello Andrew,

     

    Actually I wanted not add new submenu item to certain pull-down menu, but to add new pull-down menu button.

    I used the decision of solution 11286092 in order to  do that in ADE-L in  IC5141 :

     

    Createion of custom menu item "Example" with 3 submenus: Item1, Item2 and Item3:

     



    load(prependInstallPath("/etc/tools/menus/spectre.menus"))


    (sevSetMainWindowPulldownMenus

      `(

        "Session"

        "Setup"

        "Analyses"

        "Variables"

        "Outputs"

        "Simulation"

        "Results"

        "Tools"
       
        "Example"  

        "Help"

        )
    )



    (sevAddMenuItemLists

      (lambda (session name)

        (case name

          ("Example"
         
            list(

                        hiCreateMenuItem(
                              ?name 'MenuItem_1
                              ?itemText "Item1"
                              ?callback "println('Item1)" ;;; prints Item1 in the CIW
                  ;this is only trial function callback
                                )
               
                        hiCreateMenuItem(
                              ?name 'MenuItem_2
                              ?itemText "Item2"
                              ?callback "println('Item2)" ;;; prints Item2 in the CIW
                  ;this is only trial function callback
                                )
       
                        hiCreateMenuItem(
                              ?name 'MenuItem_3
                              ?itemText "Item3"
                              ?callback "println('Item3)" ;;; prints Item3 in the CIW
                  ;this is only trial function callback
                                )
       
                )
       
           ) ;Example

          ) ; case

        ) ; lambda

      ) ; sevAddMenuItemLists
     

     

    After that I easily converted that for ADE-L in IC6.15 format just taking the new names of the buttons from the simui.menus file:

                    "S&ession"
                    "Set&up"
                    "&Analyses"
                    "&Variables"
                    "&Outputs"
                    "&Simulation"
                    "&Results"
                    "&Tools"
                    "&Help"

    Now I want to create my custom  pull-down menu button in ADE-XL. That is why I am asking if there is a counterpart of simui.menus file concerning ADE-XL.

     

    Best regards,

     

    tyanata

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TerryL
    TerryL over 6 years ago in reply to tyanata

    tyanata, Did you ever figure out how to do this?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TerryL
    TerryL over 6 years ago in reply to TerryL

    Example code:

    menuItem1 = hiCreateMenuItem(  ?name ' menuItem1   ?itemText "Item text 1"  ?callback "yourFunction1")

    menuItem2 = hiCreateMenuItem(  ?name ' menuItem2   ?itemText "Item text 2"  ?callback "yourFunction2")

    newADEMenu = hiCreatePulldownMenu(  'newADEMenu 

    "My Menu"  list( menuItem1 menuItem2  )  "" )

    procedure( newADEPostInstallTrigger( cellInfo )  

        hiInsertBannerMenu( hiGetCurrentWindow() newADEMenu hiGetNumMenus( cellInfo->window ))

    )

    deRegUserTriggers( "adexl" nil nil 'newADEPostInstallTrigger)

    Terry

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to TerryL

    Hi Terry,

    Actually you shouldn't use the post-install trigger to add menus. Instead you should use the user menu trigger (the third rather than the fourth argument to deRegUserTriggers) and your trigger function should return a list of pulldown menus. So you'd do something like:

    procedure(newADEMenuTrigger(cellInfo)
      list(newADEMenu)
    )

    deRegUserTriggers("adexl" nil 'newADEMenuTrigger)

    that way the Design Editor ("de") takes care of inserting the banner menus - you don't have to do it. If you use the post-install trigger, things can fight with each other, I've found.

    Essentially this was the approach I was suggesting in my reply 7 years ago - that pulldown menus are added with deRegUserTriggers.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TerryL
    TerryL over 6 years ago in reply to Andrew Beckett

    Hi Andrew:

       Thanks for the feedback.  Can you provide a simple example?  I'm struggling a bit, with getting that working.

    Terry

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TerryL
    TerryL over 6 years ago in reply to TerryL

    I got it working. 

    Thanks again for the feedback Andrew.

    Terry

    • 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