Back ground info : Using Modelsim in Windows environment, using Verilog.
I'm trying to generate a random number that's different each time $random is called. Not knowing much about DOS/windows environment, I need help passing in wallclock information from the command line (in a does batch file).
Doing
dos prompt> vsim +SEED='time' ...
and using in the testbench
if (!($value$plusargs("SEED=%d", rand_seed)) ...
doesn't work because the wallclock time isn't passed in correctly. I don't want to use the same starting seed each time the simulation is run, either. I'll, of course, save the seed so that I can reproduce the bugs.
How do I get around this problem? How do you use random data pattern in your test bench?
I don't have an option of using unix (or unix-like shell in windows)...
Thanks in advance.