Home > Community > Forums > Custom IC SKILL > perform SKILL functions in command line mode

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: *

 perform SKILL functions in command line mode 

Last post Tue, Aug 27 2013 1:29 PM by Andrew Beckett. 12 replies.
Started by cici 20 Oct 2009 07:20 PM. Topic has 12 replies and 5468 views
Page 1 of 1 (13 items)
Sort Posts:
  • Tue, Oct 20 2009 7:20 PM

    • cici
    • Not Ranked
    • Joined on Wed, Oct 21 2009
    • Posts 1
    • Points 50
    perform SKILL functions in command line mode Reply

     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!

    • Post Points: 50
  • Tue, Oct 20 2009 7:29 PM

    • kbhow
    • Top 50 Contributor
    • Joined on Thu, May 7 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: perform SKILL functions in command line mode Reply

    Hi cici,

    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")

           

     db

     
    • Post Points: 5
  • Tue, Oct 20 2009 7:29 PM

    • kbhow
    • Top 50 Contributor
    • Joined on Thu, May 7 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: perform SKILL functions in command line mode Reply

    Hi cici,

    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")

           

     db

     
    • Post Points: 5
  • Tue, Oct 20 2009 7:29 PM

    • kbhow
    • Top 50 Contributor
    • Joined on Thu, May 7 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: perform SKILL functions in command line mode Reply

    Hi cici,

    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")

           

     db

    • Post Points: 5
  • Tue, Oct 20 2009 7:36 PM

    • kbhow
    • Top 50 Contributor
    • Joined on Thu, May 7 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: perform SKILL functions in command line mode Reply

    Hi Cici,

    Sorry i mis-click the 'Post' button before finishing my reply. =D

    Hi cici,

    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")

            ..........

            dbSave(cv)

            exit ;This is important in order to close your virtuoso

    2. Invoke virtuoso in nograph mode with replay file

            virtuoso -nograph -replay function.replay

    3. Done

     

    How

    • Post Points: 20
  • Tue, Oct 20 2009 9:55 PM

    Re: perform SKILL functions in command line mode Reply
    I tend to suggest using -restore rather than -replay as it is more like doing a load(), whereas replay is more like typing each command in the CIW. With interactive things there is a difference in behaviour with regards to whether functions are "blocking" or not.

    Best Regards,

    Andrew
    • Post Points: 20
  • Tue, Nov 13 2012 9:21 PM

    • jorenrefuerzo
    • Not Ranked
    • Joined on Mon, Oct 1 2012
    • Manila, Philippines
    • Posts 11
    • Points 275
    Re: perform SKILL functions in command line mode Reply

     Hi Andrew, 

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

     

    Thanks

    • Post Points: 5
  • Wed, Nov 14 2012 9:05 PM

    • jorenrefuerzo
    • Not Ranked
    • Joined on Mon, Oct 1 2012
    • Manila, Philippines
    • Posts 11
    • Points 275
    Re: perform SKILL functions in command line mode Reply

     is there anyone who can help?.. thanks...

    • Post Points: 20
  • Thu, Nov 15 2012 5:39 AM

    • TeeBro
    • Not Ranked
    • Joined on Thu, Mar 1 2012
    • Posts 12
    • Points 240
    Re: perform SKILL functions in command line mode Reply

    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:

    load("/lsc/projects/eda/jrefuerz/CAD/scripts/OpenLayout.il")

    OpenLayout("mylib" "mycell" )

    Then you would run virtuoso with the following commandline:

    virtuoso -nograph -replay commands.txt -log logko.log

     

    • Post Points: 20
  • Thu, Nov 15 2012 6:39 AM

    Re: perform SKILL functions in command line mode Reply

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

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Nov 15 2012 10:18 PM

    • jorenrefuerzo
    • Not Ranked
    • Joined on Mon, Oct 1 2012
    • Manila, Philippines
    • Posts 11
    • Points 275
    Re: perform SKILL functions in command line mode Reply

    problem solved!!...
    thanks Teebro and Andrew for the help...

    • Post Points: 20
  • Wed, Aug 14 2013 2:57 AM

    • lc2710
    • Not Ranked
    • Joined on Wed, Aug 14 2013
    • Posts 3
    • Points 60
    Re: perform SKILL functions in command line mode Reply

     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?

    • Post Points: 20
  • Tue, Aug 27 2013 1:29 PM

    Re: perform SKILL functions in command line mode Reply

    I won't answer this here as I see you then did the right thing and posted a new thread.

    Andrew.

    • Post Points: 5
Page 1 of 1 (13 items)
Sort Posts:
Started by cici at 20 Oct 2009 07:20 PM. Topic has 12 replies.