• 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. Need a script where traversing can be stopped based on level...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 4817
  • 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

Need a script where traversing can be stopped based on level in layout.

BabaiVLSI
BabaiVLSI over 2 years ago

Hello All,

I need to develop a script where net with specific name or instance with specific cell name in down the hierarchy will get highlighted. I need to stop searching based on level of hierarchy (suppose I shall do the search execution till level 2, then it will not search below level 2).

I got a great help from following script given by Andrew Beckett, where I can't think of implementing stop level in this script. Please help me.

community.cadence.com/.../finding-of-polygons-skill

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    In the context of the code in that example script, you could do this by adding an additional argument in the function definition (differences in red):

    procedure(CCFoutputPolygonCentres(cvId myPort @key 
      (objType "polygon") (layerName "metal1")
      (transform list(0:0 "R0" 1)) (stopLevel 32)
      )
    

    Then around each of the recursive calls to CCFoutputPolygonCentres you'd do something like this:

      foreach(inst cvId~>instances
        when(inst~>objType=="inst" && stopLevel>0
          CCFoutputPolygonCentres(inst~>master myPort
            ?objType objType ?layerName layerName ?stopLevel stopLevel-1
            ?transform dbConcatTransform(inst~>transform transform)
          )
        )
      )

    (the second recursive call is in the mosaic loop further down, and a similar condition would be needed there)

    Now when you call CCFoutputPolygonCentres() yourself, you could call it with ?stopLevel 2 (for example).

    Regards,

    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