Home > Community > Forums > Custom IC SKILL > Moving Pins

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Moving Pins 

Last post Fri, Aug 21 2009 1:05 AM by Philey. 4 replies.
Started by Philey 19 Aug 2009 11:31 AM. Topic has 4 replies and 1237 views
Page 1 of 1 (5 items)
Sort Posts:
  • Wed, Aug 19 2009 11:31 AM

    • Philey
    • Not Ranked
    • Joined on Wed, Aug 19 2009
    • Posts 3
    • Points 45
    Moving Pins Reply

     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 

    • Post Points: 20
  • Wed, Aug 19 2009 11:40 AM

    Re: Moving Pins Reply
    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
    • Post Points: 20
  • Wed, Aug 19 2009 12:52 PM

    • Philey
    • Not Ranked
    • Joined on Wed, Aug 19 2009
    • Posts 3
    • Points 45
    Re: Moving Pins Reply

     Hi,

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

    Rgrds

    Philey

    • Post Points: 20
  • Thu, Aug 20 2009 4:17 AM

    Re: Moving Pins Reply

    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.

    • Post Points: 20
  • Fri, Aug 21 2009 1:05 AM

    • Philey
    • Not Ranked
    • Joined on Wed, Aug 19 2009
    • Posts 3
    • Points 45
    Re: Moving Pins Reply

     Thanks

    Philey

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by Philey at 19 Aug 2009 11:31 AM. Topic has 4 replies.