• 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. Extract hierarchy tree data into csv file

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 142
  • Views 5072
  • 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

Extract hierarchy tree data into csv file

Vascocsav
Vascocsav over 1 year ago

Hi to all,

My programing language skills are very limited so I wander if there is any way to retrieve the hierarchy tree data from a schematic or layout and save it as a csv file ?

thank you and best regards

Vasco

  • Cancel
  • RobMan
    RobMan over 1 year ago

    Edit -> Hierarchy -> Tree

    Valid for both schematic and layout. It's note a csv but you can probably postprocess or import into a spreadsheet to convert.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • AurelBuche
    AurelBuche over 1 year ago

    Hi Vasco,

    If you use the script from my answer in Cadence Community - Custom IC SKILL - Skill code to Get all the lib and views used in cell from top to bottom hierarchy

    You can then use the following function : 

    (defun cst_print_hierarchy_to_csv ( @key  (cv  (geGetEditCellView))
                                              (csv "/tmp/$USER.example.csv")
                                        @rest _)
      "Print CV hierarchy to CSV"
      ;; Support variables and relative paths in csv
      (setq csv (simplifyFilename csv))
      ;; Properly open and close port
      (let ((port (outfile csv)))
        (unwindProtect
          ;; Print each line
          (foreach lcv (cst_flatten_hierarchy cv)
            (destructuringBind (lib cell view) lcv
              (fprintf port "%s,%s,%s\n" lib cell view)
              ))
          (close port)
          ))
      ;; Open csv in text viewer
      (view csv)
      ;; Return path of generated csv
      csv)

    Cheers,
    Aurélien

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