• 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. some thing about the user menus in ADE!(complete!)

Stats

  • Locked Locked
  • Replies 16
  • Subscribers 145
  • Views 8657
  • 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

some thing about the user menus in ADE!(complete!)

imagesensor123
imagesensor123 over 14 years ago

 Hi,

    After refering to the analogartist reference, i have copie the simui.menus to my home directory( or work directory), and modify it to add a menu in Tools by add this line ("mytool" ?callback()) in the Tools section of the simui.menus file, but this menu did not turn up when the analogArtist stratup. it seems that the default menus are loaded in ADE. Does anyone know the reason? when i use the command ddGetStartupAll("menus"), the result shows ("~/menu"), i think it is the menu folder which i placed in my home folder. i got quite confused about how to add a user menu in ADE, thanks for explaining this method to me.

         by the way, i have load this menu by adding this line "load("~/menu/simui.menus")" in my .cdsinit.

Regards,

zfeng

  • Cancel
  • NcfC
    NcfC over 12 years ago
    Hi, I tried to run the code tyanata first posted but I got the following error:
    *Error* sevAddMenuItemLists: too many arguments (1 expected, 2 given) - (funobj@0x20d5d6bc 2)
    Could you help me?

    Thanks,

    Best regards,
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    I just tried that code in IC5141 (the menus file looks as if it was written for IC5141) and it worked fine. It suggests to me that you've altered the code in some way, because it shows that sevAddMenuItemLists has two arguments, the second of which is the number 2. That's not in the code anywhere, so presumably something got changed when you cut and pasted it?

    Which version of Virtuoso are you trying to use?

    Andrew.

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

     Hello Andrew,

     

    Yes the code was written for IC5, for IC6 we use the same approach but some of the names of the default menu items are changed, so the script is little bit modified.

     

    Best regards,

    Stoyan

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Based on an email message sent to me by  NcfC (not sure why that user didn't post here, since they posted before) - the email was a bit scramble, but it said

    NcfC said:
    When I load the above code into CIW, I don't get any error nor warning messages, but I don't see the added menu entry in the ADE window.Could you help me?Thank you very much in advance.Best regards,Noel Carneiro

    Well, you're not supposed to load the code into the CIW. You're supposed to create a file called spectre.menus in a subdirectory called menus (e.g. as a subdirectory of your working dir or home dir).

    Regards,

    Andrew.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • NcfC
    NcfC over 12 years ago

    hi, Andrew.

    I'm using version 5.10.41.500.6.132. I don't know what got changed when I copy and paste the code but I re-pasted it and, although I got no warnings, I don't see the new menu/item anywhere in the ADE window.

    If I load the following code in the .cdsinit,

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

    procedure(CustomMenu( _args )

    let( (item1 item2)

    ;; create a couple of menu items

    item1 = hiCreateMenuItem( ?name 'item1 ?itemText "Item 1" ?callback "FunctionOne()" )

    item2 = hiCreateMenuItem( ?name 'item2 ?itemText "Item 2" ?callback "FunctionTwo()" )

    ;; create a menu that includes the menu items and return a list of the

    ;; pulldown menus

    list( hiCreatePulldownMenu( 'CustomMenu "Custom Menu" list( item1 item2 ) ) )

    );let

    ); procedure

    ;; create a userMenuTrigger trigger that automatically adds the menu

    deRegUserTriggers( "schematic" nil 'CustomMenu )

    I can see the newly created menus in the schematic but I could make it work with ADE.
     
    Regards
     
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Well, that will never work. The code above is mixing two different methodologies - you're loading the menus file at the top (which shouldn't be loaded from the .cdsinit - it's for menus files only), and the de user menu trigger mechanism...

    So there's no need to have the load() line at the top.

    It doesn't work for ADE because ADE is not a Design Editor application, and so de triggers are not called.

    Regards,

    Andrew.

    • 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