• 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. Functional Verification
  3. problem with random seed in vmanager

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 65
  • Views 15645
  • 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

problem with random seed in vmanager

buddi
buddi over 14 years ago

Hi

i have written vmanager regression scrip

For every regression run i observed that it is taking same seed (default seed of specmen tool 1 is taking).

 my reg scrip is

group small_test {
  sve_name: "" ;
  run_script: "" ;
  scan_script: "vm_scan.pl shell.flt ius.flt" ;
   test test1 {
  count : 2;
    run_script: "irun -ovm -COVDUT <<all related files included>> -timescale 1ns/10ps -access +rwc -messages +OVM_TESTNAME=test1";
  };

can you please help me on this

  • Cancel
  • tpylant
    tpylant over 14 years ago
    Add “seed: random” to your group/test.

    Tim
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 14 years ago

    You do need to pass the seed to irun.

         run_script: "irun -ovm -COVDUT <<all related files included>> -timescale 1ns/10ps -access +rwc -messages +OVM_TESTNAME=test1 -svseed $RUN_ENV(BRUN_SV_SEED)";

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • buddi
    buddi over 14 years ago
    1) can i pass seed value like below. "run_script: "irun -ovm -COVDUT <> -timescale 1ns/10ps -access +rwc -messages +OVM_TESTNAME=test1 -svseed $RUN_ENV(BRUN_SV_SEED) -seed $RUN_ENV(BRUN_SEED)" 2) how i can pass random seed for every test in the regression group and for every count.. Is there any syntax for defining in group. ( i am using specmen tool) 3) Actually i saw in xmanager manual that 'if we have not defined any seed value in the group, by default it will create random seed for every run. " what is the difference between BUN_SV_SEED and "sv_seed: random "(defining in group)
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 14 years ago

    Try moving the run_script to the group instead of the test. Please check the TEST_NAME syntax as I am telling you that from memory! Also please do look in the docs, as the VSIF syntax is fully explained for stuff like this. Run "vm_help.sh" from the UNIX prompt.

     

    group small_test {
      sve_name: "" ;
      run_script: "" ;
      scan_script: "vm_scan.pl shell.flt ius.flt" ;

        run_script: "irun -ovm -COVDUT <<all related files included>> -timescale 1ns/10ps -access +rwc -messages +OVM_TESTNAME=$ATTR(TEST_NAME) -seed $RUN_ENV(BRUN_SEED)";


       test test1 {
      count : 2;

      };

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • buddi
    buddi over 14 years ago

    Thanks Stephen. $RUN_ENV instruction working.

    • 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