SKILL: How to determine if a leyer purpose pair is empty?

Discussion in 'Cadence' started by Andrew Wilford, Jan 7, 2004.

  1. Hi,

    Does anyone know how to check, using SKILL, if a layer purpose pair is in
    use. ie. whether it contains any database objects or not?

    Thanks!
    Andrew Wilford
     
    Andrew Wilford, Jan 7, 2004
    #1
  2. Andrew Wilford

    gennari Guest

    I wrote a SKILL procedure that works on some examples that I tried it on. I
    think that if a LPP is in use in a database object then it should be in the
    cellview's lpps list, and if unused it should not appear there. Here it is:

    procedure(FGIsLPPUsed(lpp)
    prog(list(cv)

    cv=geGetWindowCellView()

    foreach(cvlpp cv~>lpps
    if((cvlpp~>layerName == car(lpp) && cvlpp~>purpose == cadr(lpp)) then
    return(t))
    )
    return(nil)
    )
    )

    I hope this works for you.

    Frank
     
    gennari, Jan 8, 2004
    #2
  3. Thank you Frank,

    I will give it a try.

    Andrew
     
    Andrew Wilford, Jan 8, 2004
    #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.