Hi, I have a question on how to perform SKILL functions in command line mode. Can anyone help?
What I want to do is to
(1) start cadence with no GUI (I heard the -nog option but I cannot find any example)
(2) perform a series of SKILL function (defined in a do file) such as making a copy of cells in a given library
(3) quit cadence
Thanks for your time and help!
To run Virtuoso in no GUI mode, you can use "virtuoso -nograph " mode, so that it will run the virtuoso at the background. For your case, you need to create a replay file (eg: skillfunction.replay) which include all skill function that you wih to perform such as open cell view, copy, paste and etc in a single file. Please take note that, you must write exit at the end of the code in order for virtuoso to exit. Then invoke virtuoso in nograph mode together with the replay file, the virtuoso will execute the function in the replay file accordingly.
Clear step by step
1. Create a replay file with skill function ( function.replay)
cv = dbOpenCellViewByType("Lib" "Cell" "View" "" "a")
In reply to kbhow:
Sorry i mis-click the 'Post' button before finishing my reply. =D
exit ;This is important in order to close your virtuoso
2. Invoke virtuoso in nograph mode with replay file
virtuoso -nograph -replay function.replay
In reply to Andrew Beckett:
may i also ask more info about the -replay option in virtuoso?. or where can i get more informaiton?...i'm also looking for a way which is also to perform Skill function in command line... yuove mentioned that " replay is more like typing each command in the CIW" ..i tried this command :
"virtuoso -nograph -replay /lsc/projects/eda/jrefuerz/CAD/scripts/OpenLayout.il -log logko.log"
> this is to load the OpenLayout.il skill script that i made.. the second step is to type the function with argument... so basing from your desctiption of -replay.. i did this :
"virtuoso -nograph -replay OpenLayout ( "mylib" "mycell" )"but this one doesnt work. the error says "Badly placed()'s".
In reply to jorenrefuerzo:
is there anyone who can help?.. thanks...
I believe the "-replay" commandline options argument is a file that contains the commands that you would type into the CIW. So in your example you would have a file (lets say it's named commands.txt) that would contain:
OpenLayout("mylib" "mycell" )
Then you would run virtuoso with the following commandline:
virtuoso -nograph -replay commands.txt -log logko.log
In reply to TeeBro:
Indeed - giving commands on the command line directly is not what it does (I never said that). Personally I tend to use -replay for replaying CDS.log files, and use -restore for loading SKILL code (-restore is more like doing a load() in the CIW after starting).
problem solved!!...thanks Teebro and Andrew for the help...
Hi, is it possible to select all the instances in a cellview opened in this manner, i.e without opening the cellview in a window?
In reply to lc2710:
I won't answer this here as I see you then did the right thing and posted a new thread.
I'd like some help with an ocean script. I want to perform monteCarlo simulation, put an horizontal marker in the graph generated and perform the procedure: Marker-> Show Table -> (save values displayed in the table in a file).
So far I can already put the horizontal marker in the graph, but couldn't find in Ocean manual a way to perform the last procedure. What is the command for this task?
Below you can find part of my script.
newWindow()addTitle( "WindowsTitle")plot(v("OUT1"))plot(v("OUT2"));Insert horizontal markers in voltage 1.65VawvPlaceYMarker(currentWindow() 1.65)
In reply to Morris Howell: