Home > Community > Forums > Functional Verification > arguments to tcl file with irun

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

 arguments to tcl file with irun 

Last post Wed, Nov 10 2010 9:48 PM by hrawal. 2 replies.
Started by hrawal 10 Nov 2010 12:47 AM. Topic has 2 replies and 3589 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Nov 10 2010 12:47 AM

    • hrawal
    • Not Ranked
    • Joined on Wed, Jul 7 2010
    • Pune, Maharashtra
    • Posts 4
    • Points 50
    arguments to tcl file with irun Reply

    Hi, 

     I have a requirement where I want to pass arguments to the TCL file used with the irun command for my functional simulation test. A sample example would be

    irun <options> -input myfile.tcl <tcl_file_arguments>

    I tried to add arguments to the command line, but the irun interprets the TCL arguments as irun arguments and flags out errors. Is there a particular manner in which to provide arguments to TCL on the irun command? 

    I tried searching thro the forum and the cdnshelp documentation, but I couldnt find any such usecase/example. If it is documented somewhere please point it out to me. 

    On a side note, does the tcl for IUS support the tcl cmdline package? 

    many thanks, Himanshu

     

     

     

    Filed under: , , ,
    • Post Points: 20
  • Wed, Nov 10 2010 8:03 AM

    • TAM1
    • Top 75 Contributor
    • Joined on Thu, Jul 17 2008
    • HOME, PA
    • Posts 83
    • Points 1,105
    Re: arguments to tcl file with irun Reply

    It is not easy to pass parameters to a TCL script from an irun command line. I've used the information from the support.cadence.com solution # 11275250, titled "How to pass arguments to tcl run scripts on the ncsim command line?" in the past. Basically you use multiple -input commands with the first ones setting TCL variable values and then the final one executing a TCL script that references the values of those variables.

    • Post Points: 20
  • Wed, Nov 10 2010 9:48 PM

    • hrawal
    • Not Ranked
    • Joined on Wed, Jul 7 2010
    • Pune, Maharashtra
    • Posts 4
    • Points 50
    Re: arguments to tcl file with irun Reply

    TAM1,

    many thanks.

    The pointer given by you suffices my needs at this time. Seems that I can take this limitation and build my script ahead.

    regards

    Himanshu

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by hrawal at 10 Nov 2010 12:47 AM. Topic has 2 replies.