• 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 Design
  3. How to change pin size in an existing symbol?

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 125
  • Views 12376
  • 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

How to change pin size in an existing symbol?

StephanWeber
StephanWeber over 3 years ago

Hi,

in all my symbols, and also in analogLib, we have pins drawn as a small red rectangle. However, a more beautiful solution would be to have even smaller rectangles, like 25% of the standard size. By experimenting I was able on the placement of a pin to get indeed (and surprisingly) a very small circular pin, which looks very nice. However, I was not able to now modify all my existing pins to get exactly this better style. In the Edit Property dialog I found no way to do it. Is there a hidden trick?

Bye Stephan

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Stephan,

    The edit properties doesn't have a way to change the pin shape from one to another, but it can be easily achieved with SKILL. Not sure this would particularly help you with analogLib since that's a library shipped with Virtuoso, but anyway here's some code I just threw together to change all the pins in a symbol from square to the small round pins you liked.

    Regards,

    Andrew

    /* abChangeSymbolPinsToRound.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Apr 13, 2022 
    Modified   
    By         
    
    Function to change all pins on a symbol to be round
    rather than the usual square pins
    
    abChangeSymbolPinsToRound()
    
    ***************************************************
    
    SCCS Info: @(#) abChangeSymbolPinsToRound.il 04/13/22.20:40:56 1.1
    
    */
    
    /***************************************************************
    *                                                              *
    *    abChangeSymbolPinsToRound([?cvId geGetEditCellView()]     *
    *                      [?radius 0.00625])                      *
    *                                                              *
    *  Change all rectangular/square pins on a symbol to be round  *
    *   pins. Both the cvId and radius can be passed as keyword    *
    *              arguments to override the default.              *
    *                                                              *
    ***************************************************************/
    
    procedure(abChangeSymbolPinsToRound(@key (cvId geGetEditCellView()) 
        (radius 0.00625))
      let((newPinFig)
        foreach(term cvId~>terminals
          foreach(pin term~>pins
            foreach(fig pin~>figs
              when(fig~>objType=="rect"
                destructuringBind((x y) centerBox(fig~>bBox)
                  newPinFig=dbCreateEllipse(
                    cvId fig~>lpp list(x-radius:y-radius x+radius:y+radius)
                  )
                  dbAddFigToPin(pin newPinFig)
                  foreach(child fig~>children
                    child~>parent=newPinFig
                  )
                  dbDeleteObject(fig)
                )
              )
            )
          )
        )
        t
      )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephanWeber
    StephanWeber over 3 years ago in reply to Andrew Beckett

    Hi Andrew,

    many thanks for this code, it works fine!

    I only tried to make an extension to run this on a whole library:


    procedure(changeSymbolPinSizeLib(libN)
    let((libId cvId)
    libId = ddGetObj(libN)

    foreach(cellN libId~>cells~>name
    when(dbOpenCellView( libN cellN "symbol")
    cvId = dbOpenCellViewByType( libN cellN "symbol" "" "a")

    abChangeSymbolPinsToRound()

    dbSave(cvId)
    dbClose(cvId)
    ); ** when **
    ); ** foreach cell **

    )
    )

    Unfortunately I do not see that it works. It loops across all cells, but gives error messages, so that the old big pins are still present.

    Do you see a mistake in the code?

    Bye Stephan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to StephanWeber
    StephanWeber said:

    Do you see a mistake in the code?

    Yes, you are not passing the cellView id to abChangeSymbolPinsToRound(), so it would be always editing whatever cellView is in the current window. You would need to call:

    abChangeSymbolPinsToRound(cvId)

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephanWeber
    StephanWeber over 3 years ago in reply to Andrew Beckett

    Thanks, again, Andrew! But I still fail with this code:


    procedure(changeSymbolPinSizeLib(libN)
    let((libId cvId)
    libId = ddGetObj(libN)

    foreach(cellN libId~>cells~>name
    when(dbOpenCellView( libN cellN "symbol")
    cvId = dbOpenCellViewByType( libN cellN "symbol" "" "a")
    abChangeSymbolPinsToRound(cvId)
    dbSave(cvId)
    dbClose(cvId)
    ); ** when **
    ); ** foreach cell **

    )
    )

    I get this:

    *Error* abChangeSymbolPinsToRound: extra arguments or keyword missing - (db:0x8c8e4f9a)

    Do you see again, what is wrong?

    Bye Stephan 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to StephanWeber

    Stephan,

    My mistake. I didn't read my own code. The argument is a keyword rather than positional argument. The line should be:

    abChangeSymbolPinsToRound(?cvId cvId)

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to StephanWeber

    Stephan,

    My mistake. I didn't read my own code. The argument is a keyword rather than positional argument. The line should be:

    abChangeSymbolPinsToRound(?cvId cvId)

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • StephanWeber
    StephanWeber over 3 years ago in reply to Andrew Beckett

    Many thanks, Andrew. Now it works fine.

    • 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