From fc7dc0e70a96e8c4ba6a9b45381a589a2816b3f5 Mon Sep 17 00:00:00 2001 From: Andreas Olofsson Date: Wed, 24 Feb 2016 14:21:04 -0500 Subject: [PATCH] Adding "SEED" as basic parameter -making randomness clocks a first class citizen -Verilog doesn't have a seed, need to drive it from the shell -a must for async clocks, useful for many things -does not preclude randomization externally as well --- common/dv/run.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/common/dv/run.sh b/common/dv/run.sh index 9fb3e0a..5539e42 100755 --- a/common/dv/run.sh +++ b/common/dv/run.sh @@ -1,5 +1,13 @@ #!/bin/bash +#ARGUMENTS +#$1=name of "dut*.bin" to simulate +#$2=path to test to run + +#Uses BASH $RANDOM variable to set seed + rm test_0.emf ln -s $2 test_0.emf -./$1 +./$1 +SEED=$RANDOM + +