Home > Community > Forums > Functional Verification > passing IRUN command-line arguments into vsif file?

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

 passing IRUN command-line arguments into vsif file? 

Last post Tue, Jan 21 2014 6:58 AM by moogydmaxim. 3 replies.
Started by xzhao 08 Sep 2010 06:00 AM. Topic has 3 replies and 7641 views
Page 1 of 1 (4 items)
Sort Posts:
  • Wed, Sep 8 2010 6:00 AM

    • xzhao
    • Not Ranked
    • Joined on Mon, Dec 7 2009
    • Jaerfaella, Sweden
    • Posts 1
    • Points 20
    passing IRUN command-line arguments into vsif file? Reply

    Hi,

    I use command-line arguments in my script and it looks like this

    irun ... +define+MY_ARG ...

    I can run stand-alone simulation with different MY_ARG to different tests.

    How can I reuse my script in a vsif to launch regression of all tests? Is there a way to define an attribute so I can specify MY_ARG in vsif, for example

    ...

    test my_test1 { my_arg_attr : 2};

    test my_test2 {my_arg_attr : 3};

    ... 

    Thanks for help.

    Xing 

    • Post Points: 20
  • Tue, Jan 14 2014 3:10 AM

    Re: passing IRUN command-line arguments into vsif file? Reply

    Hi Xing,

    Did you work out how to do this - I want to do the same thing - basically pass testname to my run_sim script.

    Thanks,

    Steven

    • Post Points: 20
  • Fri, Jan 17 2014 4:00 AM

    • StephenH
    • Top 25 Contributor
    • Joined on Tue, Sep 2 2008
    • Bristol, Avon
    • Posts 278
    • Points 4,450
    Re: passing IRUN command-line arguments into vsif file? Reply

    You can pass attribute valuesto your run script using the $ATTR(<name>) or $RUN_ENV(<envvarname>) in theVSIF.

    Look in the cdnshelp tool for more information about attributes, how to deine them and pass them around.
    Here's a small example from the SoC Verification Kit labs that ship with Incisive:

    group apb_ss_tests {
      run_script: "irun -R -nclibdirname $DIR(chain)/INCA_libs +UVM_TESTNAME=$ATTR(test_name)_test -covtest $ATTR(test_name)";
      scan_script: "vm_scan.pl shell.flt uvm.flt ius.flt";
     
      count : 5;              // Default run count
      sv_seed: random;       // Random seed selection

      test apb_subsystem { };
      test apb_gpio_simple { };
      test apb_spi_simple {  };
      test apb_uart_simple { };
    };
     

    Steve Hobbs / Applications Engineer / Cadence Functional Verification
    Filed under: ,
    • Post Points: 20
  • Tue, Jan 21 2014 6:58 AM

    Re: passing IRUN command-line arguments into vsif file? Reply

     Hi Stephen,

     Thanks -exactly what I was looking for.

    Steven

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by xzhao at 08 Sep 2010 06:00 AM. Topic has 3 replies.