• 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. I cannot run a .il script automatically in linux termin...

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 143
  • Views 11079
  • 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

I cannot run a .il script automatically in linux terminal

lingtao jiang
lingtao jiang over 3 years ago

I want to run a mycode.il script in linux ternimal by running a .sh file which is ended by "virtuoso -nograph -load mycode.il". However this command only opens virtuoso but not run mycode.il. Is there anyway to open the virtuoso and also run the mycode.il automatically in the terminal? Thanks.

  • Cancel
  • AurelBuche
    AurelBuche over 3 years ago

    Hi,

    You can add a command to load your file in your .cdsinit
    Otherwise you can use the -replay argument

    The following example loads only your file without any .cdsinit (but you can remove the -nocdsinit if you need it)

    virtuoso -64 -nograph -nocdsinit -log CDS.log -replay mycode.il

    Cheers
    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to AurelBuche

    I always use -restore for this. This is effectively using a side benefit of the capability to restore the session window positions (from Options->Save Session, which is not that well supported any more as not all applications are honoured), because the -restore is effectively just doing a load() after start. -replay is different because that's more like pasting each line into the CIW - so you get the return values of each statement in the file appearing in the CDS.log, and I don't like that - I'd sooner have load() semantics most of the time.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lingtao jiang
    lingtao jiang over 3 years ago in reply to AurelBuche

    Hello Aurelien,

    I've tried to use "virtuoso -64 -nograph -nocdsinit -log CDS.log -replay mycode.il" to replace my code "virtuoso -nograph -load mycode.il" in the .sh file. But it can still only open the virtuoso and do not run mycode.il automatically.

    Regards,

    Lingtao

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to lingtao jiang

    Lingtao,

    This works for me. Maybe your "virtuoso" is a wrapper around the Cadence executable and so is not passing through all the arguments? For me, that creates a log file (CDS.log) in the working directory and anything I print within mycode.il certainly appears in that log.

    What does "which virtuoso" return? Is it pointing at the actual Cadence installation?

    Regards,

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lingtao jiang
    lingtao jiang over 3 years ago in reply to Andrew Beckett

    Hello Andrew,

    I use IC617 for my project. The return of "which virtuoso" is "/etc/env/virtuoso". It seems that virtuoso and cadence are both in the root directory. But cadnece should be installed in "/opt/IC617". Thank you.

    Regards,

    Lingtao

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to lingtao jiang

    Hi Lingtao,

    OK, that suggests that somebody at your site has created a wrapper script which launches virtuoso - that's not directly launching virtuoso. So you should speak to whoever has set up that wrapper because it seems likely that it's not passing through all the arguments to the real virtuoso.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lingtao jiang
    lingtao jiang over 3 years ago in reply to Andrew Beckett

    Hello Andrew

    Thank you for your patience and help. So I should delete the wrapper script and use the real virtuoso, is that true?

    Regards,

    Lingtao

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to lingtao jiang

    Lingtao,

    I wouldn't go as far as saying you should delete anything. I have no idea what this wrapper script is there for - it might be something necessary in your environment to work. Only you can decide that!

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lingtao jiang
    lingtao jiang over 3 years ago in reply to Andrew Beckett

    Hello Andrew,

    Ok I got it. Thank you so much for your help.

    Regards,

    Lingtao

    • 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