• 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. How to call my own procedure which defined in custom .il...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 142
  • Views 3248
  • 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

How to call my own procedure which defined in custom .il ,in command line without GUI

Zest
Zest over 6 years ago

Hi

I have a MyTodo.il which define a  MyTodo procedure like this:

/* MyTodo.il */

procedure(MyTodo(LIB CELL VIEW)

...

)

/* End MyTodo.il */

I can load this .il as Andrew mentioned under topic "Running a SKILL script from Command Line" :

"virtuoso -nocdsinit -nograph -restore  MyTodo.il"

How can I call MyTodo() under the same no-GUI virtuoso?

I haved tried "virtuoso -nocdsinit -nograph -restore  MyTodo(Lib_Zest Cell_Zest View_Zest)", but failed    :(

  • Cancel
  • mbracht
    mbracht over 6 years ago

    Well if you want this procedure to be called as part of the virtuoso start process why don't you just put the call of MyTodo() at the end of MyTodo.il?
    Other than that you can just manually type it at the command prompt which you get. Or maybe I'am just misunderstanding what you want to do???

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Zest
    Zest over 6 years ago in reply to mbracht

    I want parallel run multiple simulations on LSF, so need recall MyTodo() procedure many times

    pseudocode maybe like this:

    ParallelSim.sh:

    loop(VIEWLIST

        bsub "cmd_sim.sh $VIEW $CELL $LIB "

    )

    cmd_sim.sh :

    virtuoso -nograph -restore MyTodo($1 $2 $3) 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to Zest

    The -restore takes a filename, not a function call.

    So, in your "cmd_sim.sh" I would do:

    export CMDLIB=$3
    export CMDCELL=$2
    export CMDVIEW=$1

    and then have the call to MyTodo in the bottom of MyTodo.il as:

    MyTodo(getShellEnvVar("CMDVIEW") getShellEnvVar("CMDCELL") getShellEnvVar("CMDLIB"))

    I kept your back to front order of the arguments (normal convention would be to supply lib/cell/view rather than view/cell/lib), but hopefully you get the idea.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Zest
    Zest over 6 years ago in reply to Andrew Beckett

    Thank you Andrew, this will do my job.

    The original purpose of this cmd_sim.sh is that we find VERIFIER get stuck when submit >100 implementation simulations, even under batch mode.

    BTW ,is there any better/smarter way to accelerate VERIFIER  submit  multiple simulations ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to Zest

    Are you using Verifier in IC617? There was a major architectural change made in IC618 to address performance limitations of Verifier, so I would strongly recommend you move to IC618 (or ICADVM181) to use Verifier with a lot of simulations. Then you may not need to bother with this workaround.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Zest
    Zest over 6 years ago in reply to Andrew Beckett

    Hi Andrew

    We have already used IC618.Especilly the new feature BATCH MODE(dedicated to submit multiple simulation).

    Unfortunately even under BATCH MODE ONLY start up a single no-graph virtuoso thread at backgound,

    when 100+ maestros submitted by 1 single virtuoso,stuck still happens,while post-simulation generates nestlist, even worse.

    • 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