Home > Community > Forums > Custom IC SKILL > accessing db and executing SKILL from the Unix shell

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 accessing db and executing SKILL from the Unix shell 

Last post Wed, Sep 25 2013 6:03 PM by jaleco. 4 replies.
Started by jaleco 25 Sep 2013 02:37 PM. Topic has 4 replies and 790 views
Page 1 of 1 (5 items)
Sort Posts:
  • Wed, Sep 25 2013 2:37 PM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Albuquerque, NM
    • Posts 74
    • Points 1,060
    accessing db and executing SKILL from the Unix shell Reply

    I am trying to run some skill code to access db information from a bash script, but cannot get the script to run successfully.  Can anyone describe the proper way to perform a simple db access from a shell?

    My attempt was somthing like this:

    #!/bin/bash

    ./start_cadence_virtuoso -nograph < find_coords.il

    (or alternatively include the skill code in the bash script, but neither format seems to work)

    A simple find_coords.il skill script might look like this:

    cv=dbOpenCellViewByType("mylib" "mycell" "layout")

    foreach( inst cv~>instances

    if(inst~>cellName == "specific_cell" then

    printf("%L\n" inst~>xy) ; this would be printed to an output file or as needed once the script was functional

    ); if

    ); foreach

    dbClose(cv)

    exit

    • Post Points: 35
  • Wed, Sep 25 2013 2:48 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,599
    • Points 16,080
    Re: accessing db and executing SKILL from the Unix shell Reply

    Hi,

    You can use "dbAccess" if you only need to use database level functions (i.e. no sch.* or le.* etc.) and you can use the -load argument to load and run a SKILL script.  By the way, dbAccess is now documented, albeit a little lightly, in ISR17 of IC615 and other recent releases.  It is similar to running virtuoso -nograph but has a smaller footprint since it only contains core SKILL plus db functions (similar to the SKILL that is supported for use in PCells).

    Hopefully this is what you are looking for?

    Best regards,

    Lawrence.

    • Post Points: 5
  • Wed, Sep 25 2013 2:49 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,599
    • Points 16,080
    Re: accessing db and executing SKILL from the Unix shell Reply

    Forgot to mention that "virtuoso" supports the -load and -replay command line options.

    Regards,

    Lawrence.

    • Post Points: 20
  • Wed, Sep 25 2013 5:23 PM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Albuquerque, NM
    • Posts 74
    • Points 1,060
    Re: accessing db and executing SKILL from the Unix shell Reply

    Thanks for your response Lawrence,

    I am using v5.1.41.

    Can you provide me an example?  Finder does not come up with anything for dbAccess...

    • Post Points: 5
  • Wed, Sep 25 2013 6:03 PM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Albuquerque, NM
    • Posts 74
    • Points 1,060
    Re: accessing db and executing SKILL from the Unix shell Reply

    Ok, I got it to work from the command line -

    dbAccess -load myfile.il

    I was thinking that dbAccess was a skill command!

    Thanks again

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by jaleco at 25 Sep 2013 02:37 PM. Topic has 4 replies.