• 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. How to access all elements of tabView of config view by...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 8803
  • 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 access all elements of tabView of config view by a simple method because hdbTraverse.il is too complex

zsummer
zsummer over 3 years ago

Hi, all,

The config view content is shown in below.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Table View | Tree View |

Library    | Cell                     | View Found | View to Use | Inherited View List

a             | b                         | schematic   |                      | spectre cmos_sch cmos.sch schematic veriloga ahdl pspice dspf

a             | and_or_inv          | schematic  |                      | spectre cmos_sch cmos.sch schematic veriloga ahdl pspice dspf

a             | inv                       | schematic  |                      | spectre cmos_sch cmos.sch schematic veriloga ahdl pspice dspf

tsmcNxx | inv_svt_mac        | schematic |                       | spectre cmos_sch cmos.sch schematic veriloga ahdl pspice dspf

tsmcNxx | nand2_svt_mac  | schematic |                        | spectre cmos_sch cmos.sch schematic veriloga ahdl pspice dspf

tsmcNxx | nor2_svt_mac     | schematic |                        | spectre cmos_sch cmos.sch schematic veriloga ahdl pspice dspf

tsmcNxx | nch_svt_mac       | schematic |                        | spectre cmos_sch cmos.sch schematic veriloga ahdl pspice dspf

tsmcNxx | pch_svt_mac       | schematic |                        | spectre cmos_sch cmos.sch schematic veriloga ahdl pspice dspf

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I want to get all elements of tabView of config view by an easy method, like as hiGetCurrentForm() or hiGetCurrentWindow(),
but hiGetCurrentWindow()~>?? cannot access 'Library', 'Cell', 'View Found', 'View to Use', ‘Inherited View List’.
This should have actually like using GUI command: "File -> Save Cell Table Data -> HE_lib_cell_config.csv".


1. is there any skill function to do "File -> Save Cell Table Data -> HE_lib_cell_config.csv"?
2. I know there are a $CDSHOME/tools/hdb/examples/hdbTraverse.il to call hdbOpen(), hdbBind()... to do it.
but it has about 812 lines, I cannot spend too much time to understand it.
Whether there is an more easy, simple, fast method to access 'Library', 'Cell', 'View Found', 'View to Use', ‘Inherited View List’ info from config view window?
such as hiGetCurrentWindow()~>?? or hiGetCurrentForm()~>??
3. support.cadence.com/.../ArticleAttachmentPortal has a bit simple example to get top level 'instance,matserlib,mastercell,masterview' of the schematic view,
but cannot list top-1, top-2...bottom level 'instance,matserlib,mastercell,masterview'.
How to list top-1, top-2...bottom level 'instance,matserlib,mastercell,masterview'?
4. support.cadence.com/.../ArticleAttachmentPortal use 'hedConfigTraverse libName.cellName:viewName -output myfile' to do it.
hedConfigTraverse is a unix utility, we can use system("hedConfigTraverse...") to use it.
but I still wonder that how to access all elements of 'Table View' of config view directly by use hiGetCurrentWindow()~>??

Thanks in advance

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    You can just use File->Save Cell Table Data to save the information into a CSV file.

    If you want to do this entirely from SKILL without using the hierarchy editor interface, it needs something to traverse the hierarchy. I've written the code in this example post  RE: Config View Assignment which utilises my "abSchTree" code (in the same post) which handles the complexity of the traversal and then just adds the additional information to collect the data. The abCollectCellViewsInConfig.il code collects this data, but excludes the stopping views; I think you should be able to easily alter it to capture all views in the cell table by changing the condition (removing the isStoppingView part) in abSchTreeOutputElement in that file.

    Traversing the hierarchy with a config is a little complex, so you don't need to worry about the full complexity necessarily. Hopefully the built-in menu in the hierarchy editor does what you want anyway!

    Andrew

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

    I should have also explicitly answered your question:

    zsummer said:
    Whether there is an more easy, simple, fast method to access 'Library', 'Cell', 'View Found', 'View to Use', ‘Inherited View List’ info from config view window?
    such as hiGetCurrentWindow()~>?? or hiGetCurrentForm()~>??

    The answer to that is "no".

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • zsummer
    zsummer over 3 years ago in reply to Andrew Beckett

    Hi Andrew, 

    Thanks for your explanation and instruction.

    one more question: is there any skill function or method to simulate mouse click 'OK'  button event  when  small window popup  after 'File->Save Cell Table Data'.

    Thanks in advance.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to zsummer

    Not really. The expression for the OK button is generated based on the window, and is private. Even if I try to enqueue it after launching the private function to invoke the save cell table date form, it doesn't work. So this isn't a supported approach. Why do you need to do it from SKILL if this is a UI feature of the hierarchy editor?

    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