• 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. Hierarchy Tree Output to a file

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 16563
  • 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

Hierarchy Tree Output to a file

LakshmanQual
LakshmanQual over 6 years ago

Hi all,

I am trying to send a tree output to a file with the below code with the default option 'Current to stop level'.

But i am seeing the GUI asking for the hierarchy options 'Current to stop level' or 'Top to Current' or 'Top to Stop level'.

I want to print them with default option 'Current to stop level' without any GUI in between.

If i run the below code, I am seeing my given input file with blank and Tree output even i cancel the GUI.

Could anyone please help me in sending the output to the file mentioned?

procedure(TreeOut(@key (cv geGetEditCellView()) fileName)

if(stringp(fileName) then
port=outfile(fileName)
else
port=poport
)
leHiTree()
leTreeForm->treeOption->value="Current to stop level"
fprintf(port "%L\n" hiFormDone(leTreeForm))

when(stringp(fileName)
close(port)
)

view("./TreeOuput.txt")
)

hiSetBindKey("Layout" "Ctrl Shift <key> v" "TreeOut(?fileName \"./TreeOutput.txt\")")

  • Cancel
Parents
  • RiadKaced
    RiadKaced over 6 years ago

    Hi Lakshman,

    I would recommend using SKILL CCSschTree(), it is available here. You can run the function from the CIW as follows:

    ;; First of all load the code in CIW:
    load("CCSschTree.il")
    
    ;; For printing schematic hierarchy of top cell of library ether type in CIW:
    schcv=dbOpenCellViewByType("ether" "top" "schematic" "schematic" "r")
    CCSschTree(?cellView schcv ?port op=outfile("top_sch.txt"))
    close(op)
    ;; For printing layout hierarchy of top cell of library ether type in CIW:
    laycv=dbOpenCellViewByType("ether" "top" "layout" "maskLayout" "r")
    dbOpenHier(laycv 32)
    CCSschTree(?cellView laycv ?useViewSwitching nil ?port op=outfile("top_lay.txt"))
    close(op)
    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • LakshmanQual
    LakshmanQual over 5 years ago in reply to RiadKaced

    Hi RiadKaced,

    The mentioned "CCSschTree.il" code should be copied local and run the further commands or can i find that file from any cadence built in paths??

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

    You have to download it from the link that Riad provided (I wrote the SKILL code...). There's an equivalent code (called abSchTree - I tended to rename the functions to follow the "Cadence Customer Support" prefix convention in the past) in this post.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to LakshmanQual

    You have to download it from the link that Riad provided (I wrote the SKILL code...). There's an equivalent code (called abSchTree - I tended to rename the functions to follow the "Cadence Customer Support" prefix convention in the past) in this post.

    Andrew

    • Cancel
    • Vote Up +1 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