SKILL script to convert rectangular metal layers to path

Discussion in 'Cadence' started by techsan, Nov 23, 2011.

  1. techsan

    techsan Guest

    Hi guys...kindly help me with this..

    I need a SKILL script to convert rectangular metal layers to path
    across the layout block but condtion is that it

    should not lose its existing netname after conversion.




    mail:

    thx,
    Sandeep
     
    techsan, Nov 23, 2011
    #1
  2. techsan

    I-F AB Guest

    Hi,

    I don't have time for a complete solution but below is a script just
    to create
    path shapes in Virtuoso based on rectangular shapes.
    I haven't found the command to remove shapes since I don't have time.
    Also haven't had time to try net property creation.

    Layer has to be specified beforehand.

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;; specify layer first
    LYR = "MET1"

    CV = geGetEditCellView()
    Rects = setof(x CV~>shapes x~>objType=="rect")

    foreach( y Rects

    ;;;;;;;;;;;;;;;; get net property of 'y' here
    ;;;;;;;;;;;;;;;; maybe use 'NET = y~>net'

    MIDY = 0.5*(topEdge(y)+bottomEdge(y))
    W = topEdge(y)-bottomEdge(y)
    PATH = dbCreatePath(CV LYR list( leftEdge(y):MIDY
    rightEdge(y):MIDY ) W)

    ;;;;;;;;;;;;;;;;; set net of 'PATH' here
    ;;;;;;;;;;;;;;;; maybe use 'PATH~>net = y~>net'

    ;;;;;;;;;;;;;;;; delete 'y' object here
    ;;;;;;;;;;;;;;;; ???

    ) ;end foreach loop
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



    Best Regards,
    I-FAB
     
    I-F AB, Nov 25, 2011
    #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.