assign netname while using "dbCreatePath"

Discussion in 'Cadence' started by sudhasubramaniam, Mar 11, 2009.

  1. Hi,

    Is it possible to assign net name for a path while drawing path using
    dbCreatePath()
     
    sudhasubramaniam, Mar 11, 2009
    #1
  2. dbAddFigToNet() should do what you want.

    Yours,
     
    Jean-Marc Bourguet, Mar 11, 2009
    #2
  3. can you please quote me with example?
     
    sudhasubramaniam, Mar 12, 2009
    #3
  4. sudhasubramaniam

    Riad KACED Guest

    Hi Sudha,

    The dbAddFigToNet() is documented in the The Cadence® Design Framework
    II SKILL Functions Reference
    UNIX> acroread $CDSHOME/doc/skdfref/skdfref.pdf

    You could get a quick reference to this function from the Finder tool
    as well, here is what it returns:

    dbAddFigToNet(
    d_figId
    d_netId
    )
    => t / nil

    Assigns the given figure object to a specified net object. If the
    figure is already associated with a different net, the figure will be
    detached from that net before being assigned to the given net object.

    Basically, you need to fetch the ID a a figure (i.e the id of the
    created path) and the Id of a net you want to add the path into.
    Simple as that !

    Regards,
    Riad.
     
    Riad KACED, Mar 12, 2009
    #4
  5. sudhasubramaniam

    Riad KACED Guest

    Hi Sudha,
    The dbAddFigToNet() is documented in the The Cadence® Design Framework
    II SKILL Functions Reference
    UNIX> acroread $CDSHOME/doc/skdfref/skdfref.pdf

    You could get a quick reference to this function from the Finder tool
    as well, here is what it returns:
    dbAddFigToNet(
    d_figId
    d_netId
    )
    => t / nil

    Assigns the given figure object to a specified net object. If the
    figure is already associated with a different net, the figure will be
    detached from that net before being assigned to the given net object.

    Basically, you need to fetch the ID a a figure (i.e the id of the
    created path) and the Id of a net you want to add the path into.
    Simple as that !

    This is a quick example as requested to Jean-Marc:
    ;
    myCv=geGetEditCellView()
    myPath = dbCreatePath(myCv list("metal1" "drawing") list(0:0 0:2 2:2
    2:0) 0.5 "extendExtend")
    myNet = dbCreateNet(myCv "MYNET")
    dbAddFigToNet(myPath myNet)
    ;

    You could then check the path in question is added to the net either
    by checking the connectivity information of the path (Edit Properties
    GUI) or by skill using:
    myNet~>figs.

    Hope it is clear in your mind now !
    Regards,
    Riad.
     
    Riad KACED, Mar 12, 2009
    #5
  6. Riad KACED wrote, on 03/12/09 22:32:
    The other thing you could do is use rodCreatePath() which allows you to attach
    the newly created path(s) to a specified net name as you create it.
    rodCreatePath is essentially a higher level function, and can be used for
    multi-part paths as well as single paths.

    Regards,

    Andrew.
     
    Andrew Beckett, Mar 15, 2009
    #6
  7. Hey Andrew,

    I suppose that netnames can be assigned to the individual nets with
    the ROD Connectivity Arguments. I have made use of rodCreatePath()
    funtion. I need to add that functionality. Here is what I have done :

    ;; Create a shielded path
    procedure( shield()
    errset(
    (let (cv layer purpose list_draw_layer tech width1 tfId)
    cv= geGetEditCellView()
    layer = car(leGetEntryLayer()) ;displays layer on LSW is taken
    purpose = cadr(leGetEntryLayer()); displays drawing or pin on the
    selected lsw
    list_draw_layer =list(layer purpose)
    tech = techGetTechFile(geGetWindowCellView()); rule deck file id is
    stored in tech
    width1 = techGetSpacingRule(tech "minWidth" layer) ; the minimum width
    is stored in width1
    rodCreatePath(
    ?name "shield"
    ?layer list( layer purpose )
    ?pts list(2:-15 2:-5 15:-5 15:-15)
    ?width .8
    ?justification "center"
    ?cvId cv
    ?offsetSubPath
    list(
    list(
    ?layer list( layer purpose )
    ?justification "left"
    ?sep 1
    ?width .4
    ) ;end of offset sublist1
    list(
    ?layer list( layer purpose )
    ?justification "right"
    ?sep 1
    ?width .4
    ) ;end of offset sublist2
    ) ;end of offset list of lists
    ) ;end of rodCreatePath
    ) ; end of let
    t
    ) ; end of errset
    ) ; end of procedure
     
    Pranjal_Wipro, Mar 16, 2009
    #7
  8. Pranjal_Wipro wrote, on 03/16/09 05:55:
    Was there a question in there? I couldn't see one...

    Andrew.
     
    Andrew Beckett, Mar 16, 2009
    #8
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.