• 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. Positioning the instances in Layout editor by using SKI...

Stats

  • Locked Locked
  • Replies 34
  • Subscribers 126
  • Views 31986
  • 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

Positioning the instances in Layout editor by using SKILL

RFStuff
RFStuff over 12 years ago

 Dear All,

I am trying to place copies of an instance/object ( say a simple via ) with 'x' distance separation in X-direction.

Is there any in-built feature already available in IC5141 ?

Otherwise, is there any solution ( SKILL script) already posted in the forum ? I searched but couldn't find so.

The code needs three functions:

1) Find the cordianate of the OBJECT/INSTANCE ( this I have already found in the Forum)

2) Copy the object. For this what is the SKILL function ?

3) Paste the desired distance separation ( For palcing wht is the simple SKILL function)

Couls anybody please tell regarding this.

Kind Regards,

 

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    I didn't search to see if there was any code that does what  you want, but it's trivial to write. 

    If you have the pitch in a variable dx, and the number of copies in numX, and the instance in instId, and cellView in cvId :

    for(x 1 numX
      dbCopyFig(instId cvId list(x*dx:0 "R0" 1))
    )

    So not hard...

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 12 years ago

     Dear Andrew,

    Thanks a lot.

    The dbCopyFig(), copy the figure at the relative offset with respect to the Lower Left corner of the bBox of the original object.

    Is it possible to place/copy the object to a given arbitrary coordinate.

    Also is it possible to make the relative movemt with respect to some other coordinate of the bBox.

    Of courseone can write a script and do the manipulation to achieve the same. However I believe there may be way to do it by a single command.

    Kind Regards,

     

     

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

    To copy to an absolute coordinate, you need to produce a concatenated transformation which moves back to the origin, then to the location you want. So for example, if you want to copy the lowerLeft of your object to a location xy, you'd do:

    dbCopyFig(instId cvId dbConcatTransform(list(-xCoord(lowerLeft(instId~>bBox)):-yCoord(lowerLeft(instId~>bBox)) "R0" 1) list(xy "R0" 1)))

    I don't really understand your second question, since a relative movement doesn't matter which coordinate it is with respect to - all coordinates in the bBox will move by the same relative amount.  Maybe you're talking about an absolute move - in which case something like my suggestion above would make sense - you just compute the first transformation using a different coordinate on the shape (such as the upperRight rather than the lowerLeft).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 12 years ago

     Dear Andrew,

    Thanks a lot.

    Yes, what you have mentioned, I want exactly that.

    One can copy and place by using dbCopyFig(),

    I actullay want something as follow:-

               I have a PATH running in MEx

              I want to run PATHs of different metal  undeneath/over it. The PATH may be of a) same width or b) different width

             For Same width:-

             obj=car(geGetSelSet())

              newPath=dbCopyFig(obj obj->cellView list(0:0 "R0" ))

              newPath~>layerName=sprintf(nil "ME%d",val)   

           It works fine.

             For different widh:-

             I think oneway is to change the bBox property  of the copied PATH.

            With this line of thought I did as follows:-

              newPath=dbCopyFig(obj obj->cellView list(0:0 "R0" ))

             bBoxNew=list(a:b c:d) % please note a,b,c,d are floating point desired co-ordinates

              newPath~>bBox=bBoxNew.

              However the above DID NOT WORK.

            Could you please tell what is the issue.

    Kind Regards,

           

     

                         

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

    You cannot change the bBox of a path (or pathSeg) as it is a derived parameter. You can change the ~>points to alter the points in the path, or the ~>width to change the width.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 12 years ago

    O I forgot, that PATH has width property and one can assign new width to the existing width property.

    newPath~>width=newWidth.

    Indeed worked.

    But why bBox is not working.

    Also I want to run a prallael path on both side of the MAIN path ( the PATH has multiple bends) . What should be done. Basically I want to make a shiled around the PATH

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

    As I said, changing the bBox makes no sense for a path, because it is computed from the width/points of the shape, and so is a derived parameter rather than something that defines the shape.

    If you want to offset from an existing path, you would probably be better off using rodCreatePath to do it. I suggest you read the documentation for this function (as it is quite powerful and has a lot of options, and there's no point me repeating the documentation in the forum when you can read the details yourself). This would allow you to create a path separated from the original path, which follows the bends of the original path correctly.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 12 years ago

     Dear Andrew,

    Thanks a lot  for your reply.

    I actaully had posted my previous query before I saw your post so did not get the fact that bBox is a derived property for PATH.

    I will see rodCreatePath() in the ROD document.

    Again thans a lot.

    Kind Regards,

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 12 years ago

    Dear Andrew,

    I used rodCreatpath().

     I drew the shielded path by doing

    SignalPath=rodCreatePath(..... 

           .........  
            ) ;end rodCreatePath

     but SignalPath~>points is giving "nil" though SignalPath is showing ROD object ID

     

    Could you please tell why it is showing like this.

    What canbe done to access  the attributes of the rodObject ?

    Kind Regards,

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

    Because the rod object is a container object which contains some additional information and handles on top of the database id. So you'd use:

    rodId~>dbId~>points

    to get the point list.

    Andrew.

    • 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