mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-17 20:02:53 +08:00
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
This commit is contained in:
parent
bb4a602f7f
commit
fc7dc0e70a
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user