• 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. skill command to get the current library name

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 126
  • Views 17044
  • 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

skill command to get the current library name

Meny Lea
Meny Lea over 13 years ago

Hi,

 

Im looking for a  skill command that can return the current library name that appear on the library manager

top left field - "Library".

without open any schematic/layout window ...

 

thx

 

meny

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Hi Meny,

    There are two issues:

    1. The code needs to be loaded in two different places. The lmgr calls (the bit at the top of your code) needs to be in cdsLibMgr.il, whereas the two functions sort_by_date and MLsort need to be loaded from the .cdsinit. This is because the menu customization needs to be in the separate library manager process, whereas the callbacks are called in the main virtuoso process.
    2. The sort_by_date callback function needs to be written to expect 6 arguments - see the examples in the documentation (actually written by me from an application note I wrote on this back in IC441/IC442 timeframe!)

    Here's the modified sort_by_date function - if I did the separation of the code as above, and modified the function this way, it brings up the form and seeds the library based on the selected library:

    procedure( sort_by_date(menuName lib cell view file category)
      MLsort()
      printf("yes\n")
      unless(blankstrp(lib)
        ADsort->srcLib->value=lib
      )
      hiDisplayForm(ADsort)
    )

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Hi Meny,

    There are two issues:

    1. The code needs to be loaded in two different places. The lmgr calls (the bit at the top of your code) needs to be in cdsLibMgr.il, whereas the two functions sort_by_date and MLsort need to be loaded from the .cdsinit. This is because the menu customization needs to be in the separate library manager process, whereas the callbacks are called in the main virtuoso process.
    2. The sort_by_date callback function needs to be written to expect 6 arguments - see the examples in the documentation (actually written by me from an application note I wrote on this back in IC441/IC442 timeframe!)

    Here's the modified sort_by_date function - if I did the separation of the code as above, and modified the function this way, it brings up the form and seeds the library based on the selected library:

    procedure( sort_by_date(menuName lib cell view file category)
      MLsort()
      printf("yes\n")
      unless(blankstrp(lib)
        ADsort->srcLib->value=lib
      )
      hiDisplayForm(ADsort)
    )

    Regards,

    Andrew.

    • 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