• 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. Copy hierarchy with hierarchical rename

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 17118
  • 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

Copy hierarchy with hierarchical rename

blankman
blankman over 10 years ago

Hi,

 

I am looking to copy the hierarchy of a design, and rename each level of hierarchy to a new name, ie append with _v1, and then to have these new cells referenced in the new hierarchy. I’m wondering does this functionality exist already within virtuoso (IC6.1.6)? If not would this be possible to code in skill?

 

Thanks,

Brian.

  • Cancel
  • skillUser
    skillUser over 10 years ago

    Hi Brian,

    Yes, take a look at Solution Article 11807102, I think it does what you are asking.

    Regards,

    Lawrence. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • blankman
    blankman over 10 years ago

    Lawrence, great thanks! This copies and renames every cell below a specified cellview. Though what I'm looking for is to copy and rename only a certain number of hiearchical levels. Could this be implemented into this code? ie say adding a stopLevel argument.

    Brian.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 10 years ago

    Hi Brian,

    Not with that solution.  You could write something to traverse the hierarchy to a certain depth and perform the rename for each level (this could be very inefficient!) - I think you would need to do the rename using the ccp* functions...

    Bare bones structure, something like this:

    procedure( CCFtraverseHierSch( cv @optional (level 0) (maxDepth 32)) 
      when(level < maxDepth
        foreach(ih cv->instHeaders
          if( cview =  dbGetAnyInstSwitchMaster(car(ih~>instances) "schematic") then
            CCFtraverseHierSch(cview level+1 maxDepth)
          else
            ;; do the rename for this cell (instHeader) updating all instances of it
            ;; write this piece with ccpRename, based on the ccpCopy solution example
          ); if
        ); foreach
      ); when
    ); procedure CCFtraverseHierSch
    

    Hopefully this gives you an idea?

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • blankman
    blankman over 10 years ago
    Lawrence that's great thanks again. I should be able to string something together with this. Best, Brian.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • blankman
    blankman over 10 years ago

    Lawrence,

     

    Thinking more on this, what I’m actually looking to do, rather than set a stop level, is to be able to input a hierarchical route to which to apply the cell rename to. Ie Xi1/Xi0/Xi5/Xi13/Xi8. Does that make sense? Could it be implemented? If so would you have any suggestions on how to do so?

     

    Thanks,

    Brian.

    • 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