Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

System Verilog Random Seed Variation

Status
Not open for further replies.

spartanthewarrior

Full Member level 2
Joined
Jun 13, 2007
Messages
122
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,142
verilog random seed

Hi All,

Can any body tell How to vary Seed Value in System Verilog.

I am working on Synopsys VMM Methodology.
 

systemverilog random seed

srandom(int seed) is the key to have manual seed....

class packet;
rand bit [7:0] header;

function new(int seed);
this.srandom(seed);
endfunction
endclass

initial begin
packet p=new;
p.new(33);
end
 

random seed verilog

spartanthewarrior said:
Hi All,

Can any body tell How to vary Seed Value in System Verilog.

I am working on Synopsys VMM Methodology.

I highly recommend to use:

simv +ntb_random_seed = <val>

One can quickly build a random seed gen in Perl/UNIX.

Ajeetha, CVC
www.noveldv.com
 

verilog seed

main() {
time_t *t;
srand(time(t));
printf("%d\n", rand());

exit(0);
}
and compile it use gcc. output named random.
Then use this option:
+vera_random_seed=`./random`
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top