• 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. Rename label and part of instance in multiple layouts

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 149
  • Views 18960
  • 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

Rename label and part of instance in multiple layouts

AnuJoamon
AnuJoamon over 16 years ago

I have many layout cells in my library in which I need to do two changes

  1. I want to replace label xxxABxxx with xxxCDxxx (in a specific layer say "m1" "dg")
  2. Replace instance yyyAByyy from library YYYY to instance zzzCDzzz from library ZZZZ.
  3. Check that there is no instance in the entire library coming either from the same library of one reference library (specified).

Anuj.

 

  • Cancel
Parents
  • AnuJoamon
    AnuJoamon over 16 years ago

    Thanks Derek. The examples provided by you have provided me clarity to proceed. But I am having some syntax problem while using the foreach ...

    procedure(checkWireCell(libname wireCellList)
        let((outfNameError outfError error libid cellList cellId cell cv inst)
       libid=ddGetObj(libname)
       foreach(cell wireCellList
          if(member("layout" dbAllCellViews(libid cell~>name)) then
              cv=dbOpenCellViewByType(libname cell~>name "layout" nil "r")
              if(length(cv~>instances)!=0
                  foreach(inst cv~>instances
                       if((inst~>libName!=libname && inst~>libName!="ALL_PARTS" ) then
                        fprintf(outfError "\nWARNING: INSTANCE  %s  Of Cell %s points to a different Library  (%s)" inst~>cellName cell~>name inst~>libName)
                        error = 1
                         )  ; if
                    )  ; foreach
                 ) ; if
              dbClose(cv)
          else
              fprintf(outfError "\nWARNING: Cell %s does not contain a layout view" cell~>name)
                           error = 1
          )
       )
     ) ; let
    ) ; proc

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • AnuJoamon
    AnuJoamon over 16 years ago

    Thanks Derek. The examples provided by you have provided me clarity to proceed. But I am having some syntax problem while using the foreach ...

    procedure(checkWireCell(libname wireCellList)
        let((outfNameError outfError error libid cellList cellId cell cv inst)
       libid=ddGetObj(libname)
       foreach(cell wireCellList
          if(member("layout" dbAllCellViews(libid cell~>name)) then
              cv=dbOpenCellViewByType(libname cell~>name "layout" nil "r")
              if(length(cv~>instances)!=0
                  foreach(inst cv~>instances
                       if((inst~>libName!=libname && inst~>libName!="ALL_PARTS" ) then
                        fprintf(outfError "\nWARNING: INSTANCE  %s  Of Cell %s points to a different Library  (%s)" inst~>cellName cell~>name inst~>libName)
                        error = 1
                         )  ; if
                    )  ; foreach
                 ) ; if
              dbClose(cv)
          else
              fprintf(outfError "\nWARNING: Cell %s does not contain a layout view" cell~>name)
                           error = 1
          )
       )
     ) ; let
    ) ; proc

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