• 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. Help on pin name conversion for whole library

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 12846
  • 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

Help on pin name conversion for whole library

Sarvani
Sarvani over 13 years ago
Hi all,
1)        I have wrote below code for conversion of pin names from "Z" to"ZN".

procedure(loopCells(libName @optional (viewList list("symbol")))
  let((libId cvId v points)
    libId = ddGetObj(libName)
    foreach(cell libId~>cells
        foreach(viewName cell~>views~>name
            when(member(viewName viewList)
                when(cvId = dbOpenCellViewByType(libId cell~>name viewName nil "a")

;schCreateSymbolLabel(cvId points "analog instance label" "cdsName()" "lowerCenter" "R0" "roman" 0.5 "NLPLabel")
;schCreateSymbolLabel(cvId points1 "instance label" "[@instanceName]" "lowerCenter" "R0" "roman" 0.5 "NLPLabel")
labels1=setof(x cvId~>shapes x~>objType=="label" )  
labels=setof(x labels1 x~>theLabel=="Z" )
foreach(x labels
x~>theLabel="ZN"
)
pins1=setof(x cvId~>shapes x~>pin)
 pins=setof(x pins1 x~>net~>name == "Z")

foreach(x pins
x~>net~>name="ZN"
)

schVIC(cvId)
dbSave(cvId)
dbClose(cvId)

))))
t
);let
);procedure

ERROR:

*Error* setSGq: (DB-370034): dbSetq: Cannot set attribute - name

2)I need to copy "symbol" to "auLVS", "auCdl" for every cell in library. Is there any code or reference code for doing this function.
 
Thank you,
venu
  • Cancel
  • Sarvani
    Sarvani over 13 years ago
    I have solved this problem. The exact code is:

    procedure(loopCells(libName @optional (viewList list("symbol")))
      let((libId cvId v points)
        libId = ddGetObj(libName)
        foreach(cell libId~>cells
            foreach(viewName cell~>views~>name
                when(member(viewName viewList)
                    when(cvId = dbOpenCellViewByType(libId cell~>name viewName nil "a")

    ;schCreateSymbolLabel(cvId points "analog instance label" "cdsName()" "lowerCenter" "R0" "roman" 0.5 "NLPLabel")
    ;schCreateSymbolLabel(cvId points1 "instance label" "[@instanceName]" "lowerCenter" "R0" "roman" 0.5 "NLPLabel")

    pins1=setof(x cvId~>shapes x~>pin)
     pins=setof(x pins1 x~>pin~>term~>name == "Z")

    foreach(x pins
    x~>pin~>term~>name="ZN"
    )
    labels1=setof(x cvId~>shapes x~>objType=="label" )
    labels=setof(x labels1 x~>theLabel=="Z" )
    foreach(x labels
    x~>theLabel="ZN"
    )
    schVIC(cvId)
    dbSave(cvId)
    dbClose(cvId)

    ))))
    t
    );let

    Thank you,
    sarvani
    );procedure
    • 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