• 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. Moving Pins

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14799
  • 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

Moving Pins

Philey
Philey over 16 years ago

 Hi All,

I am completly new in SKILL programming and looking for a simple code to move automatically pins to instances (subblocks) generated in VXL.

 

Rgds

Philey 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago
    I think you'll need to describe in a bit more detail what you mean.

    You might be asking for a way to move top level pins to be over the pin on an instance to which that pin is connected (what happens if the pin is connected to more than one instance pin), or you might be asking something else.

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Philey
    Philey over 16 years ago

     Hi,

    it is exactly the case.For simplicity let's assume that pin is connected to one instance.

    Rgrds

    Philey

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    I was just looking at the SKILL code I have which does something similar. Unfortunately it contains a lot of things specific to the customer I wrote it for, as well as a whole bunch of other things which make the code too complex an example to post.

    And I don't have time for the next week or two to produce a cut down, simplified example.

    Perhaps somebody else can post something...

    The general idea is that you would do something like:

    foreach(term cv~>terminals
      ; iterate over all the pins for this terminal
      foreach(pin term~>pins
        pinFig=pin~>fig
        net=term~>net
        ; only do this if there aren't more than one inst term
        unless(cdr(net~>instTerms)
          instTerm=car(net~>instTerms)
          childTerm=instTerm~>terminal
          childPinFig=car(childTerm~>pins)~>fig
          ; location within the instance master
          location=centerBox(childPinFig~>bBox)
          ; transform to the top level coordinate system
          location=dbTransformPoint(location instTerm~>inst~>transform)
          pinFigLocation=centerBox(pinFig~>bBox)
          ; calculate the overall transform to move the pin to the new location
          transform=dbConcatTransform(list(-xCoord(pinFigLocation):-yCoord(pinFigLocation) "R0" 1) location)
          dbMoveFig(pinFig transform)
        )
      )
    )

    Note this is completely off the top of my head, with no testing.  Indentation may be a bit awry because I just typed it into the browser.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Philey
    Philey over 16 years ago

     Thanks

    Philey

    • 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