How to get a cell list of one library in skill?

Discussion in 'Cadence' started by tech11, Aug 16, 2006.

  1. tech11

    tech11 Guest

    Hi,

    I'm one novice to skill and wanna write one code to open the cells in some
    library one by one, but I don't know how to get a cell list.

    Firstly I get all the cell name in one file 'a1' and keep every one a line.
    This's my code below:

    inPort=infile("a1")
    when(inPort
    while(gets(oneline inPort)
    cvId=deOpenCellView("lib1" oneline "schematic" "" list(0:0 700:800) "r")
    hiCloseWindow(cvId1)
    )
    )
    close(inPort)

    My meaning is to open the cell one by one and check the warning to find the
    missing masters.

    But I get some output:
    *WARNING* ddGetObj: cell name 'test
    ' is not a legal cell name.

    Maybe it recognize the whole line as one item while including spaces. How
    should I do to check all the cells in one library as one list? either how to
    check if one library is clean, that is, there's no any missing cells used by
    the library.

    Have a good day!

    B.R.

    Joffre
     
    tech11, Aug 16, 2006
    #1
  2. Joffre,
    Unless you have any special reason to have the list of cell names in
    the text file, It is easier to loop through all the cells in a library
    this way:
    libName = "myLibName"

    foreach(cellId ddGetObj(libName)->cells
    foreach(viewId cellId->views
    ;Do processing here:
    ; cv = dbOpenCellViewByType(libName cellId->name viewId->name)
    printf("Processing %s %s %s\n" libName cellId->name viewId->name)
    )
    )

    regards,
     
    Suresh Jeevanandam, Aug 16, 2006
    #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.