Send Skill command to CIW and get results back?

Discussion in 'Cadence' started by asif5426, May 21, 2009.

  1. asif5426

    asif5426 Guest

    Hello All,

    I would like to send skill expressions from my perl script to CIW
    and get the results back. For example, i would like to get all
    libraries (ddGetLibList() command) in my Cadence session and get the
    skill list that i can use in my Perl script.

    I can have CIW initiate a ipcSkillProcess but I want Perl script to
    initiate the command.

    Does anyone know how to do that? Any help would be appreciated.

    Thanks
     
    asif5426, May 21, 2009
    #1
  2. asif5426

    KB.How Guest

    Hi Asif,

    As what my understanding, you are trying to get the return value of
    CIW from perl script, so that you are able to grab the data/
    information.

    You can have a try on this (my answer in shell script):

    a. In your shell script, create a temporary file
    TmpFile="/tmp/SkillCode.txt"
    TmpOut="/tmp/CiwOut.txt"

    b. Then write the skill command into the temporary file
    echo "system(sprintf(nil \"echo %L > %s\" ddGetLibList() \
    $TmpOut\" ))" >> $TmpFile
    echo "exit()" >> $TmpFIle

    c. Invoke virtuoso nograph in shell script to get the return
    virtuoso -nograph -replay $TmpFile > /dev/null

    d. Get the result from TmpOut file
    LibList=`head -1 $TmpOut`

    Hoping this helps. =D


    Regards,
    How
     
    KB.How, May 22, 2009
    #2
  3. KB.How wrote, on 05/22/09 01:33:
    I also posted (some time ago) a Tcl example of doing something like this:

    http://tinyurl.com/ooksnd

    This post mentions a slight typo in the original:

    http://tinyurl.com/p2kafs

    Regards,

    Andrew.
     
    Andrew Beckett, May 27, 2009
    #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.