Jump to content

[UVM Regression] How to assign different seed of each run? (single compile)


Recommended Posts

Hi all,

As title. Is assigning a seed something related to methodology or simulator? I did not find something related in the uvm user guide so I tried some simulation option, the results are as follows.

1. when irun, -seed $seed // works

2. when vcs, +ntb_random_seed=$seed // did not work

any good suggestion is welcome and thanks!

Link to comment
Share on other sites

Hi all,

As title. Is assigning a seed something related to methodology or simulator? I did not find something related in the uvm user guide so I tried some simulation option, the results are as follows.

1. when irun, -seed $seed // works

2. when vcs, +ntb_random_seed=$seed // did not work

any good suggestion is welcome and thanks!

choosing the simulator root seed is simulator specific and has nothing todo with methodology.

however your commandline suggests that you do choose the seed outside of the simulator call. normally i would use "-seed random" which picks a seed value automatically so you can use the very same command to create different scenarios. ONLY in case of a failing simulation i take the seed value and supply it to "recreate" that particular failing scenario "-seed <somefailingseed>".

it doesnt make sense to:

- choose a particular seed. its impossible to know the scenario created by a seed in advance. (it only makes sense to recreate a scenario using a known seed IF the context has not changed)

- to store/save seeds in order to create particular scenarios AND change the TB/design. The seed might not recreate the same scenario when parts of TB/ENV change. UVM tries to preserve the scenario as long as possible but there is no indication that a scenario is changing. normally you should create a cover point for the required scenario and monitor this as metric of completion.

- carry seeds from one simulator to another. a particular seed generates different scenarios on each simulator (due to different constraint solvers etc)

regards

/uwe

Edited by uwes
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...