Copying cells from a lib to another one (SKILL)

Discussion in 'Cadence' started by camelot, Mar 12, 2010.

  1. camelot

    camelot Guest

    Hello,
    I need to copy several cells from a library to another.
    My idea was to use only integreted skill commands and not something
    like "system("cp ....)".
    I found the command ccpCopy and it seems to be fine but I had some
    problems in using it;
    I was not able to copy several cells at the same time...
    The code I'm using is this one:


    destList = gdmCreateSpecList()
    dest = gdmCreateSpec(dest_lib_name "" "" "" "CDBA")
    gdmAddSpecToSpecList(dest destList)

    foreach(cell_name all_cells
    srcList = gdmCreateSpecList()
    src = gdmCreateSpec(lib_name cell_name "" "" "CDBA")
    gdmAddSpecToSpecList(src srcList)
    res_copy = ccpCopy(srcList destList t 'CCP_EXPAND_ALL viewtypeList
    nil)
     
    camelot, Mar 12, 2010
    #1
  2. camelot wrote, on 03/12/10 10:26:
    Bit busy to debug this, but might it be because you're creating a new srcList
    for each and every copy - rather than having a single specList for the source,
    and then adding all the specs for each source cell to that, and finally doing a
    ccpCopy?

    Andrew.
     
    Andrew Beckett, Mar 25, 2010
    #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.