• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. accessing db and executing SKILL from the Unix shell

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 16070
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

accessing db and executing SKILL from the Unix shell

jaleco
jaleco over 12 years ago

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

  • Cancel
  • skillUser
    skillUser over 12 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 12 years ago

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

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jaleco
    jaleco over 12 years ago

    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...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jaleco
    jaleco over 12 years ago

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information