How to Create Skill Pcell

Discussion in 'Cadence' started by vtcad, Nov 30, 2007.

  1. vtcad

    vtcad Guest

    I'm attempting to learn how to build a pcell using skill, I've put
    together the following code, but need some ideas on how to add drain/
    source contacts and make the device multiple fingers. Any examples of
    code would be greatly appreciated.

    pcDefinePCell(
    list(ddGetObj("roland_pcells") "mpbl" "layout")
    (
    (width float 1.4)
    (length float 0.6)
    )

    pact = rodCreateRect(
    ?name "pact"
    ?cvId pcCellView
    ?layer "pact"
    ?bBox list(0:0 length+4:width)
    );end rod



    pgate = rodCreateRect(
    ?name "pgate"
    ?cvId pcCellView
    ?layer "pgate"
    ?bBox list(2:-.6 2+length:width+.6)
    );end rod



    rodAssignHandleToParameter(
    ?parameter "width"
    ?rodObj pact
    ?handleName list("upperCenter")
    ?displayName "width"
    ?stretchDir "y"
    ?stretchType "relative"
    ?moveOrigin t
    ) ; end rodAssignHandleToParameter

    rodAssignHandleToParameter(
    ?parameter "length"
    ?rodObj pgate
    ?handleName list("lowerRight")
    ?displayName "length"
    ?stretchDir "x"
    ?stretchType "relative"
    ?moveOrigin t
    ) ; end rodAssignHandleToParameter

    t
    )
     
    vtcad, Nov 30, 2007
    #1
  2. vtcad

    jayl-news Guest

    At least as of 5141, you get pretty substantial sample pcell code
    from CDNS:

    ..../tools/dfII/samples/ROD/rodPcells

    It's probably more of an example than you were looking
    for (500+ lines of simple_mos.il), but it certainly works,
    and you should already have it.

    -Jay-
     
    jayl-news, Nov 30, 2007
    #2
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.