mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Cleaning up random dv env
This commit is contained in:
parent
673fba168d
commit
e94acceaa0
@ -1,15 +1,11 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
dut="elink"
|
||||
top="../../common/dv/dv_top.v"
|
||||
iverilog -g2005 -DTARGET_SIM=1 -DTARGET_XILINX=1 $top dut_${dut}.v -f ../../common/dv/libs.cmd -o ${dut}.vvp
|
||||
|
||||
#-Wtimescale
|
||||
|
||||
#PUT TARGET_SIM
|
||||
|
||||
#-pfileline=1
|
||||
|
8
elink/dv/gen_random.sh
Executable file
8
elink/dv/gen_random.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
n=$1
|
||||
#generate test
|
||||
../../emesh/dv/egen.pl -rand -n $n > ./tmp.test
|
||||
#take split
|
||||
egrep "READ|WRITE" ./tmp.test > tests/test_random.memh
|
||||
egrep -v "READ|WRITE" ./tmp.test > tests/test_random.exp
|
||||
|
@ -2,11 +2,10 @@
|
||||
use Getopt::Long;
|
||||
$Usage =<<EOF;
|
||||
#######################################################
|
||||
Usage: erand.pl -rand <random-mode>
|
||||
Usage: egen.pl -rand <random-mode>
|
||||
-n <count>
|
||||
-mask <ID mask>
|
||||
Description: Epiphany random transaction generator
|
||||
|
||||
#######################################################
|
||||
#1.) Generates random writes(8,16,32,64)
|
||||
#2.) Random burst sizes (1-16)
|
||||
|
Loading…
x
Reference in New Issue
Block a user