SeanChou Posted January 17, 2011 Report Share Posted January 17, 2011 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! Quote Link to comment Share on other sites More sharing options...
SeanChou Posted January 18, 2011 Author Report Share Posted January 18, 2011 1. vcs actually works fine with the switch after double check, please forget the previous wrong results. 2. it should be the correct way to assign initail seed with simulator options. this issue is nothing related to methodology. sorry for the disturbance. Quote Link to comment Share on other sites More sharing options...
uwes Posted January 18, 2011 Report Share Posted January 18, 2011 (edited) 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 January 18, 2011 by uwes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.