rodCreatePath pts

Discussion in 'Cadence' started by rick, May 25, 2010.

  1. rick

    rick Guest

    I have a variable cellHeight and would like to create a straight path
    from source to
    to the top of the cell. Rl_fromObj does work but I get an "any angle"
    path and I need
    a straight path. The example below does work but isnt very elegant
    or flexible. Is there
    a way that specifies the "Y" point instead of a "add to"? The "X"
    position will vary

    foreach(ptran list(psourcel psourcer)
    rodCreatePath( ?cvId cv
    ?termName powerName
    ?layer list(metal1Layer "drawing")
    ?width getq(ptran width)
    ?pts list(getq(ptran lowerCenter)
    rodAddToY(getq(ptran upperCenter) cellHeight - 8.0)

    )
    )
    ); foreach
     
    rick, May 25, 2010
    #1
  2. rick

    lokesh Guest

    Hi rick,
    The following is what i understood from your querry. You are trying to
    draw an object(a metal layer or any path), which will be drawn in the
    boundary of a cell and the dimension of the path will vary according
    to the height of the cell.
    I have written the following code in which a "metal 1" path is drawn
    at the boundary of a MOSFET.

    ;;;;;;;;;;;;;Procedure defenition;;;;;;;;;;;;;
    procedure(getRODobj()
    cvId = deGetCellView()
    dbId = car(geGetSelectedSet(cvId))
    rodId = rodGetObj(dbId)
    );proc
    ;;;;;;;;;;;;;Procedure defenition;;;;;;;;;;;;;

    ;Select the object in the layout window and the execute the following
    code.
    obj1=getRODobj()
    obj1Height=obj1~>length;the height of the cell is got in this variable
    ;the following is to get the starting and ending point of the path
    list1=car(obj1~>dbId~>bBox);start point--the lower left edge of the
    cell
    list2=rodAddToY(car(obj1~>dbId~>bBox) obj1Height);end point
    NewList=list(list1 list2)
    rodCreatePath(
    ?layer "ME1"
    ?width 0.4
    ?pts NewList
    ?cvId deGetCellView()
    );rodCreatePath

    Hope that what you were looking for !! and it helps you:)
    Regards,
    Lokesh rajendran
     
    lokesh, May 27, 2010
    #2
  3. rick wrote, on 05/25/10 20:34:
    If the y location is fixed, but you just want to keep the x-coord, then you
    could use (instead of rodAddToY) :

    list(xCoord(ptran->upperCenter) MYyLocation)

    Regards,

    Andrew.
     
    Andrew Beckett, May 27, 2010
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.