• 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 31991
  • 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
  • RFStuff
    RFStuff over 12 years ago

     Dear Andrew,

    rodID is SignalPath.

    But how can I get dbId ?

    My rodCreate() is as below.

    SignalPath=rodCreatePath(
       
        ?layer            layer
        ?pts              pts
        ?width            layerWidth
        ?justification    "center"
        ?cvId             cv
        ?offsetSubPath
        list(
             list(
                 ?layer           layer
                 ?justification    "left"
                 ?sep             layerSpace
                 ?width            layerWidth
             ) ;end subpath1
             list(
                 ?layer           layer
                 ?justification    "right"
                 ?sep             layerSpace
                 ?width            layerWidth
             ) ;end subpath2
                ) ;end list of lists
            ) ;end rodCreatePath

     Kind Regards,

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

    SignalPath~>dbId (as I said earlier)

    SignalPath~>? shows the list of attributes of the rod object, and SignalPath~>?? shows the attributes and their values. You can use this for most objects in Virtuoso. So you can do SignalPath~>dbId~>?? for example.

    Andrew.

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

     Dear Andrew,

    Thanks a lot.

    I am able to access the point list of a subpath.

    However is there any function  to modify the nth element of a list like an array.

    one can achieve by using setcar() but is there any simple way.

    Kind Regards,

     

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

    You can use setcar(nthcdr(N lst) newValue) to do this. Doesn't really need a specific function to do something so easy.

    In general however, using nth-type operators on lists is a bad way to do things. Lists are sequential data structures, and are not designed for random access operators (i.e. to be treated like arrays). Each time you ask for the Nth entry in a list, it has to start at the beginning and hop along N times until it reaches the entry.

    So, if you're doing a number of operations where you need access (read or write) to a numbered entry in the list, you may be better off doing:

    arr=listToVector(lst)
    arr[2]=56:23
    arr[6]=10:10
    ...
    lst=vectorToList(arr)

    In other words, converting the list into an array for the duration of your random access operations. For small lists, it's fine to use nth/nthcdr, but as soon as lists reach any kind of length, doing a repeated access by position can end up being very slow. The classic mistake I see people making is where they have a list and then want to (say) add up the values. They do:

    sum=0
    for(pos 0 length(lst)-1
      sum=sum+nth(pos lst)
    )

    That's OK if the list only has 5 entries, but if it had 1 million entries (say) it would take roughly half a billion list cell traversals (N(N+1)/2) whereas the correct way of doing it would be:

    sum=0
    foreach(val lst
      sum=sum+val
    )

    That's only a million list cell traversals - so half a million times fewer!

    Regards,

    Andrew.

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

    Dear Andrew,

    Thanks a lot for nicely explaining the concept of "list" and its access.

    Now I am able to do what I was intending to achieve.

    As you said, ROD is a container having objects inside it.

    Is it possible to do something, so that one can access/edit each object in the layout.

    For example, I created a bus of 5 subpaths in the layout. Suppose  in the layout I want to edit each path. How it can be done.

    Kind Regards,

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

    The only way to do this is to do something like:

    shapes=rodId~>subShapes

    and then:

    rodUnNameShape(rodId)

    and then modify the width of the individual paths (as stored in the list shapes). The rod object maintains the relationship between the member shapes and there are limited options to edit the sub shapes (or subParts). The rodUnNameShape destroys the container object and converts the member shapes into just convential shape objects.

    Regards,

    Andrew.

     

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

     Dear Andrew,

    Thanks a lot for your time and help.

    Kind Regards,

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

     Dear Andew,

    Thanks a lot for your reply.

    I treied to achieve the following:-

    I had an instance in another celview ( it is opened in another window). I want to position a copy of same object exactly with the same orientation in another cellview ( where I am currently editing).

    The instance property is as below.

     \i obj~>??
    \t (db:234826472 cellView db:234210348 objType "inst"
    \t     prop nil bBox
    \t     ((3267.184 621.047)
    \t     (3296.135 744.882)
    \t     ) children
    \t     nil groupMembers nil isAnyInst t
    \t     isShape nil matchPoints nil net
    \t     nil parent nil physConns nil
    \t     pin nil purpose "cell" textDisplays
    \t     nil assocTextDisplays nil baseName "I4"
    \t     cellName "SCAN_CHAIN_8b" instHeader db:234827644 instTerms
    \t     nil libName "SCAN_CHAIN_MANAS" master db:280855596
    \t     name "I4" numInst 1 viewName
    \t     "layout" conns nil mag 1.0
    \t     orient "MYR90" status "firm" transform
    \t     ((3293.85 742.03) "MYR90" 1.0) xy
    \t     (3293.85 742.03)
    \t )

     

    My code is as below:-

    procedure( position( libName cellName orient refpoint )
        cvId = geGetEditCellView()
        viaId = dbOpenCellViewByType(libName  cellName "layout" "maskLayout" "a")
                printf(" cell %s\n" ,  viaId~>cellName)        
                          schinst=dbCreateInst(cvId viaId nil list(0 0) "R0" 1)                
                         

        dbMoveFig(schinst cvId dbConcatTransform(list(-xCoord(lowerLeft(schinst~>bBox)):-yCoord(lowerLeft(schinst~>bBox)) "R0" 1) list(refpoint orient 1)))

    )
    ;load("~/SKILL/object_position.il")

     

    In CIW I typed the following :

     

     position( libName cellName "MYR90" b )

    Where,

    b= (3267.184 621.047) .

     

    This above did NOT work.

    Kidn Regards,

     

     

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

    The code doesn't seem to do what you describe. The code places an instance at the origin, and then moves it so that the instance's original lowerLeft is positioned at location b (but mirrored in Y and rotated by 90 degrees).

    That seems to be completely different from copying an instance from one window to another...

    So did you post the right code? I can't marry your description to the code - they seem to be two completely different things...

    Regards,

    Andrew.

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

     Dear Andrew,

    Ya, It is little bit awakward but this is how I think can be done to copy a object from one cellview window keeping the position intact. That is know the position and orientation of the object in the source cellview (i.e. information is given through 'b').  In the destination you take the instance from the library and place using informatio 'b'.

    May be I am thinking really complicated. It looks like there may be a simple solution.

    Kind Reagrds,

    • 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