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:
./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
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?
Forgot to mention that "virtuoso" supports the -load and -replay command line options.
In reply to skillUser:
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...
In reply to jaleco:
Ok, I got it to work from the command line -
dbAccess -load myfile.il
I was thinking that dbAccess was a skill command!