1
0
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:
Andreas Olofsson 2015-11-17 17:10:57 -05:00
parent 673fba168d
commit e94acceaa0
3 changed files with 13 additions and 10 deletions

View File

@ -1,14 +1,10 @@
#!/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
iverilog -g2005 -DTARGET_SIM=1 -DTARGET_XILINX=1 $top dut_${dut}.v -f ../../common/dv/libs.cmd -o ${dut}.vvp
#-Wtimescale
#PUT TARGET_SIM

8
elink/dv/gen_random.sh Executable file
View 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

View File

@ -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)