libInit with multiple files

Discussion in 'Cadence' started by rick, Jul 9, 2010.

  1. rick

    rick Guest

    What is the syntax of the libInit file when loading multiple files.

    Thanks
     
    rick, Jul 9, 2010
    #1
  2. rick

    I-F AB Guest

    Get a list of files in a directory with getDirFiles() then use loadi()
    on each file like normal.
     
    I-F AB, Jul 9, 2010
    #2
  3. rick

    rick Guest

    any chance you can post an example?

    Thanks
     
    rick, Jul 9, 2010
    #3
  4. rick wrote, on 07/09/10 15:52:
    libInit.il is just a SKILL file. I don't see why it's any different from loading
    multiple files anywhere else.

    If you have (say) a "SKILL" directory within your library, you could do:

    let((libDir)
    libDir=ddGetObj("myLibName")~>readPath
    foreach(file rexMatchList("\.il$" getDirFiles(strcat(libDir "/SKILL")))
    loadi(strcat(libDir "/SKILL/" file)
    )
    )

    Note this is not tested - off the top of my head. Hopefully it's enough of a
    pointer.

    Andrew.
     
    Andrew Beckett, Jul 9, 2010
    #4
  5. rick

    rick Guest


    my apologies for being syntax-ically challenged!!! Can I just have a
    loadi for each file? BTW, this is
    for Assura

    Thanks

    Rick
     
    rick, Jul 9, 2010
    #5
  6. rick

    I-F AB Guest

    Hi,

    Do you mean you want to read some rule files for Assura
    implementation?
    That should be controlled in the runset .rsf file.
    Of course for any normal SKILL file you can just use loadi() on each
    file.

    Best regards,
    I-FAB
     
    I-F AB, Jul 12, 2010
    #6
  7. I-F AB wrote, on 07/12/10 03:24:
    My guess is that that is "for Assura" meaning that you want to ensure your pcell
    SKILL code is loaded? Anyway, yes, you can put explicit load() or loadi() calls
    in your libInit.il . It's just SKILL like anything else...

    Regards,

    Andrew.
     
    Andrew Beckett, Jul 12, 2010
    #7
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.