• 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. Tree structure

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14046
  • 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

Tree structure

huqy
huqy over 6 years ago

As the picture above,How can I get the every instance'path.  for example: A/B/E/L/Inst1 A/B/F/Inst2  A/C/H/Inst3  A/D/J/Inst4.

the alphabet represents instancename in schematic.

How can I print the every instance'path to CIW.

in my code,I already realized find the inst,but cannot get it's path.

can anybody help me?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    Something like this simple recursive code:

    procedure(CCFsimpleTree(cv @key 
        (viewList "schematic symbol") (excludePins t) (hierPath "/") )
      let((master)
        foreach(inst cv~>instances
          master=inst~>master
          unless(excludePins && inst~>pin
            when(master~>cellViewType=="schematicSymbol"
              master=dbGetAnyInstSwitchMaster(inst viewList)
            )
            printf("%s\n" strcat(hierPath inst~>name))
            when(master
              CCFsimpleTree(
                master
                ?viewList viewList 
                ?hierPath strcat(hierPath inst~>name "/")
              )
            )
          )
        )
        t
      )
    )
          
    
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • huqy
    huqy over 6 years ago in reply to Andrew Beckett

    thank you very much.

    • 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