• 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 1754
  • 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
  • Eduard Raines
    Eduard Raines over 13 years ago

    Hi Venu,

    Are you talking about schematic or layout?

    If it's layout ,how did you get layout pin names with "<>"?Did you import P&R gds  file?

    What version of Cadence are you using?

     

    Regards,

    Eduard Raines

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • venuuuuu
    venuuuuu over 13 years ago

     hi,

    Sorry for less  information. Iam talking about layout. We have top level layout that has pinNames ending with "[" like thi[1], vb[2],fg[3],..... I need to convert it into thi<1>,vb<2>,fg<3>....

    Iam using the version 5.1.4.1

    Thank you,

    venu

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • venuuuuu
    venuuuuu over 13 years ago

     hi all,

    I have a code  belongs to this topic. But it doesn't work properly. It convert Vreg[32], Vreg[31] into Vreg<32>, Vreg<32> . Can u verify it?

     

     ; *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" "mic2850_dig"
          "layout1" 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" "==" "" ) 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
    hiSetBindKey("Layout" "Ctrl<Key>5"     "CCSchangeLabelDelimiter()")
    ;
    ; 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

     If it works that enough to my expertetions.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • venuuuuu
    venuuuuu over 13 years ago

     hi guys.

    I done this script. It works good. Thank you very much.

    • 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