• 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 Design
  3. How to create personalized menu in virtuoso layout edit...

Stats

  • Locked Locked
  • Replies 29
  • Subscribers 130
  • Views 34613
  • 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 create personalized menu in virtuoso layout editor

AmitBiswas
AmitBiswas over 14 years ago
Hi, I have written few scripts in skill language. I want group all the scripts together into a single menu in virtuoso layout editor. Like in the layout editor window there are several menus at the top containing multiple functions, I want to create my personalized menu in the layout editor window. I also want to put that script in the .cdsinit file, so that when cadence will be started the menus will be loaded automatically in the layout editor window like the other menus. Thanks in advance, Amit
  • Cancel
  • imagesensor123
    imagesensor123 over 14 years ago

     Thanks,

          yes, we can do that and i am sure  "maskLayout"  can be replaced by "schematic", and now , i want to add  a menu in analog environment , so which argument should i use?

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

    For ADE, you could use  "analogArtist-schematic", however this will only work when you start ADE from the schematic. If you open it from the CIW, or by loading a state directly (e.g. from the library manager), then it will not trigger. The issue is that ADE is not really an editor of a view in the same sense as maskLayout or schematics, and so the Design Editor (i.e. de) functionality doesn't come into play.

    The right way to do ADE customization is to use menus files. Here's one way:

    http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=11286092

    The other way to do it might be to use the sessInitTrigFunc cdsenv setting:

    http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=11524352

    This sessInitTrigFunc was added in IC5141 in 5.10.41.500.5.124 and is also in IC612 onwards (it was added in an IC611 hotfix, strictly speaking), in September 2008.

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imagesensor123
    imagesensor123 over 14 years ago

     Hi Andrew,

         why i can't login  the link you writed?

    Regards,

    zfeng

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

    Zfeng,

    You'll need a Cadence Online Support account (this requires you to be a customer with a maintenance contract). You can register via http://support.cadence.com - you'd need access to your License server hostid to do it (so that we can identify which customer you are). If you're at a European university and accessing your software via Europractice, you'd need to contact Europractice (I believe they have the means to create "light" accounts which allow read access to solutions etc, but not submit service requests - you have to do that via Europractice).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imagesensor123
    imagesensor123 over 14 years ago

     hi Andrew,

         thanks, have a good day!

    Regards,

    zfeng

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imagesensor123
    imagesensor123 over 14 years ago

     Hi Andrew,

         do you mean that we can't load the user defined menus in ADE by modifying the .cdsinit file directly?

    regards,

    zfeng

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

    Hi Zfeng,

    No, I didn't say that. You can either use a menus file (which wouldn't be done via the .cdsinit), or using:

     envSetVal("asimenv.startup" "sessInitTrigFunc" 'string "MYinitSession")

    which could be added  in your .cdsinit (along with a function defined MYinitSession which could add the menus, I guess).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imagesensor123
    imagesensor123 over 14 years ago

     Hi Andrew,

         I have found there are many *.menus in folder(tools/menus), but I think these are all system bulit in and only can be read, so if the user want to create their own menu file, where to loacate it? in the work directory ? which one is the best reference manul about this?

    Regards,

    zfeng 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 14 years ago

     Hi Zfeng,

    You can create a "menus" directory in your home directory, or current working directory, for example, and then have an appropriately named <tool>.menus file - this file can be used to reference the default menus file, for example load it in and then modify the structures in place, if you only needed a small alteration from the original.  Some menus are easier to do this way, in my opinion. Here is a brief example of changing the File->Exit item in the CIW menus using this method:


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

    ;; only when the ciwFilePulldown menu exists
    when(pairp(ciwFilePulldown)
    ;; create a local variable to store the Exit item
    let( ((exitItem assoc('ExitItem caddr(ciwFilePulldown))))
    ;; replace the callback on the Exit item to be MYexit()
    ;; if the correct menu structure is found

    when(and(exitItem cddr(exitItem))
    setcar(cddr(exitItem) "MYexit()")
    )
    )
    )

    The file would be called "ciw.menus" and be in the menus directory as mentioned above.  This modifies the menu callback of the existing File -> Exit menu item such that the function "MYexit()" is called instead of the default callback.

    I hope that this is helpful.

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imagesensor123
    imagesensor123 over 14 years ago

     Hi Lawrence,

         I have got the brief idea, and i am still confused about some tips

    1, you just modify an exit function in the user "ciw.menus" in the above example, i want to know if the other functions will be saved/reserved as the default function in the ciw menus.

    2. Can  the "MYexit()" function be defined in other file skill file?

    3.how to check wether user's menus(xxx.menus) is working well, i mean that check it in CIW 

    4. i want to add a user menu in analogArtist simulation window, but i'm not clear about which viewType should i use to register my menu trigger deRegUserTriggers()

    5. if i change the analogArtist menu by modifying the simui.menus(is it the menus for analogArtist simulation window), i want to add a menu item under the Tools menu(below the parametric analysis), what i need to do is just add my menu item name and callback function in the Tools section in the simui.menus. by the way, do i need to create this menu item before i add it or not?

    sorry for askiing so many question!

    Regards,

    zfeng

     

    • 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