TIME = $(shell date +%s | cut -c2-10)
CPU = $(shell data +%N)
DEV = $(shell head -200 /dev/urandom | chsum | cut -f1 -d"" | cut -c1-8 )
UUID = $(shell cat/proc/sys/kernel/random/uuid | cksum | cut -f1 -d"" | cut -c1-8 )
SEED = $(shell expr $(TIME) + $(CPU) + $(DEV) + $(UUID))
TESTNAME = test_$*
WAVE = ON
ifeq ($(WAVE), ON)
WAVEON= -define WAVEON
else
WAVEON =
endif
DEBUG = 0
ifeq ($(DEBUG), 1)
DEBUG = 1
endif
N = 300;
ST = 10000
test_%:
@mkdir -p work; cd work; mkdir -p $(TESTNAME) ; cd $(TESTNAME); mkdir -p $(SEED)
@irun -64 -sv -access +r $(SVTB) $(RTL) -incdir .. +TESTNAME=$(TESTNAME) -svseed $(SEED) -define DEBUG=$(DEBUG) -define ST=$(ST) -define PKT_NUM=$(N) $(WAVEON) -incdirpath ./work/$(TESTNAME)/$(SEED)
@ mv *fsdb *.log ./work/$(TESTNAME)/$(SEED)