• 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. convert "<>" into "[]" in pin names

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 1756
  • 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

convert "<>" into "[]" in pin names

GiriBabu
GiriBabu over 13 years ago

 hi all,

I need to change the pin's name to the "[]" instead of "<>". For example, trim<3> into trim [3]. So please help me to do this

Thank you

venu

 

  • Cancel
Parents
  • GiriBabu
    GiriBabu over 13 years ago

    hi all,

    I found above code in cadence library. The actual code is below.  It converts label "Aenu<23>" into "Aenu<23>[23]". But i need to convert label  "Aenu<23>" into "Aenu[23]".

     

    ;*Title:       ; How to change Pin labels from "<>" to "["
    ; Name: CCSchangeLabelDelimiter.il
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Save this code to a file such as CCSchangeLabelDelimiter.il
    ; and then load in CIW as
    ; load("CCSchangeLabelDelimiter.il").
    ; Then type CCSchangeLabelDelimiter() in CIW.
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    procedure(CCSchangeLabelDelimiter()
     let( (cv mylabels myUniquelabels tmpcv labelText name
          index newlab)
          ;;cv = geGetEditCellView()
          cv = dbOpenCellViewByType("venu" "practice"
          "layout" nil "a")
          ;;search the cell hierarchy for labels that start
          ;with "A" and end with ">"
          ;;The third argument defines the number of hierarchy
             ;levels you wish to search
             mylabels=leSearchHierarchy( cv cv~>bBox 32
             "label"
             list( list( "text" "==" "^A" ) list("text"
             "==" ">$"))
             )
          ;;create a list of unique labels
             myUniquelabels = nil
             foreach(x mylabels
             unless(member(x myUniquelabels)
             myUniquelabels = cons(x
             myUniquelabels)
             )
             )
             foreach(lab myUniquelabels
             labelText =
             lab~>theLabel
             name =
             car(parseString(labelText
             "["))
             index=
             car(parseString(cadr(parseString(labelText
             "<")) ">"))
             newlab=
             buildString(list(buildString(list(name
             index ) "[") "]") "")
             printf("Original Label was %s\n"
             labelText)
             printf("The new Label would be
             %s\n" newlab)
             ;;if label is not in top level, we need to
             ;open the instance master in edit
             ;;mode to modify the label
             if(lab~>cellView~>cellName !=
             cv~>cellName then
             tmpcv =
             dbOpenCellViewByType(lab~>cellView~>libName
             lab~>cellView~>cellName
             lab~>cellView~>viewName
             nil "a")
             ;;println(lab~>name)
             lab~>theLabel = newlab
             dbSave(tmpcv)
             dbClose(tmpcv)
             )
             ;; for top level labels
             ;;println(lab~>name)
             lab~>theLabel = newlab
             )
             dbSave(cv)
             dbClose(cv)
             );let
             );procedure
    ;
    ; Save this code to a file such as CCSchangeLabelDelimiter.il
    ; Load in the Virtuoso CIW using load("CCSchangeLabelDelimiter.il")
    ; Then type CCSchangeLabelDelimiter() in the CIW.
    ;
    ;; End of CCSchangeLabelDelimiter.il
     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • GiriBabu
    GiriBabu over 13 years ago

    hi all,

    I found above code in cadence library. The actual code is below.  It converts label "Aenu<23>" into "Aenu<23>[23]". But i need to convert label  "Aenu<23>" into "Aenu[23]".

     

    ;*Title:       ; How to change Pin labels from "<>" to "["
    ; Name: CCSchangeLabelDelimiter.il
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Save this code to a file such as CCSchangeLabelDelimiter.il
    ; and then load in CIW as
    ; load("CCSchangeLabelDelimiter.il").
    ; Then type CCSchangeLabelDelimiter() in CIW.
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    procedure(CCSchangeLabelDelimiter()
     let( (cv mylabels myUniquelabels tmpcv labelText name
          index newlab)
          ;;cv = geGetEditCellView()
          cv = dbOpenCellViewByType("venu" "practice"
          "layout" nil "a")
          ;;search the cell hierarchy for labels that start
          ;with "A" and end with ">"
          ;;The third argument defines the number of hierarchy
             ;levels you wish to search
             mylabels=leSearchHierarchy( cv cv~>bBox 32
             "label"
             list( list( "text" "==" "^A" ) list("text"
             "==" ">$"))
             )
          ;;create a list of unique labels
             myUniquelabels = nil
             foreach(x mylabels
             unless(member(x myUniquelabels)
             myUniquelabels = cons(x
             myUniquelabels)
             )
             )
             foreach(lab myUniquelabels
             labelText =
             lab~>theLabel
             name =
             car(parseString(labelText
             "["))
             index=
             car(parseString(cadr(parseString(labelText
             "<")) ">"))
             newlab=
             buildString(list(buildString(list(name
             index ) "[") "]") "")
             printf("Original Label was %s\n"
             labelText)
             printf("The new Label would be
             %s\n" newlab)
             ;;if label is not in top level, we need to
             ;open the instance master in edit
             ;;mode to modify the label
             if(lab~>cellView~>cellName !=
             cv~>cellName then
             tmpcv =
             dbOpenCellViewByType(lab~>cellView~>libName
             lab~>cellView~>cellName
             lab~>cellView~>viewName
             nil "a")
             ;;println(lab~>name)
             lab~>theLabel = newlab
             dbSave(tmpcv)
             dbClose(tmpcv)
             )
             ;; for top level labels
             ;;println(lab~>name)
             lab~>theLabel = newlab
             )
             dbSave(cv)
             dbClose(cv)
             );let
             );procedure
    ;
    ; Save this code to a file such as CCSchangeLabelDelimiter.il
    ; Load in the Virtuoso CIW using load("CCSchangeLabelDelimiter.il")
    ; Then type CCSchangeLabelDelimiter() in the CIW.
    ;
    ;; End of CCSchangeLabelDelimiter.il
     

    • 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