• 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 all labels of an instance in a schematic

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 9425
  • 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 all labels of an instance in a schematic

multiverse
multiverse over 3 years ago

Is it possible to change all label names of an instance using skill script?

For example, when I add instance in a schematic and hit "space" bar then it creates all the labels based on port name of an instance. I would like to add a suffix "_sv" to all these labels.

Is there an easy way to change all label names and add this common suffix to all labels?

Thanks.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    I quickly threw this together. Select the instances (which already have the wire stubs and labels) and then call CCFaddSuffixToWireLabels("_sv")

    procedure(CCFaddSuffixToWireLabels(suffix @optional (insts geGetSelSet()))
      let((pinBox wireShapes cv)
        cv=car(insts)~>cellView
        foreach(inst insts
          when(inst~>master
            foreach(term inst~>master~>terminals
              foreach(pin term~>pins
                foreach(fig pin~>figs
                  ;----------------------------------------------------------
                  ; Having iterated over terminals, pins and figures,
                  ; transform up to the parent cellView and find overlapping 
                  ; wires
                  ;----------------------------------------------------------
                  pinBox=dbTransformBBox(fig~>bBox inst~>transform)
                  wireShapes=dbShapeQuery(cv '("wire" "drawing") pinBox 0 0)
                  foreach(wire wireShapes
                    ;--------------------------------------------------------
                    ; Then look for any attached labels and add suffix
                    ;--------------------------------------------------------
                    foreach(label wire~>children
                      when(label~>objType=="label"
                        label~>theLabel=strcat(label~>theLabel suffix)
                      )
                    )
                  )
                )
              )
            )
          )
        )
        t
      )
    )
    • 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