Home > Community > Forums > Functional Verification > reinvoking from the tcl shell

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

 reinvoking from the tcl shell 

Last post Mon, Oct 14 2013 8:37 AM by freitas. 2 replies.
Started by freitas 22 Sep 2013 12:31 PM. Topic has 2 replies and 4079 views
Page 1 of 1 (3 items)
Sort Posts:
  • Sun, Sep 22 2013 12:31 PM

    • freitas
    • Top 500 Contributor
    • Joined on Wed, Nov 23 2011
    • Posts 26
    • Points 340
    reinvoking from the tcl shell Reply

    Hello,

    I'd like to reinvoke the simulation using a tcl script. Is this possible? What's the tcl command to re-invoke the simulation?

    Actually, I would like a script that runs a preamble command to update the simulation options contained in the irun.f file before re-starting the simulation. That would allow me to re-start the simulation with new options without leaving simvision. 

    Is this feasible?

    thanks

     

    Filed under:
    • Post Points: 20
  • Mon, Sep 23 2013 4:50 AM

    • Doug Koslow
    • Top 500 Contributor
    • Joined on Mon, Aug 25 2008
    • Chelmsford, MA
    • Posts 18
    • Points 255
    Re: reinvoking from the tcl shell Reply

    Hi,

    Yes, this is possible.

    Since reinvoke is a SimVision operation, you need to execute SimVision commands in order
    to execute it. 

    Here is a set of commented SimVision commands to do this, including copying over
    a modified irun.f file.  You could define a custom toolbar button to invoke these commands.


    # Need to disable opening the reinvoke dialog when reinvoking via a script.
    preferences set prompt-on-reinvoke 0

    # Replace these file names with yours.
    set from_file "irun_mod.f"
    set to_file "irun.f"
    exec cp -f $from_file $to_file

    # reinvoke via the Design Browser.  (Assumes this window is still available.)
    window invoke "Design Browser 1" Simulation>ReinvokeSimulator

    # Set the preference back.
    preferences set prompt-on-reinvoke 1


    Good luck...

    - Doug

    • Post Points: 20
  • Mon, Oct 14 2013 8:37 AM

    • freitas
    • Top 500 Contributor
    • Joined on Wed, Nov 23 2011
    • Posts 26
    • Points 340
    Re: reinvoking from the tcl shell Reply
    It works as a charm! Thanks a lot!
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by freitas at 22 Sep 2013 12:31 PM. Topic has 2 replies.