rsprules 3.84 KB
PRDEPTH = $(ROOT)/PR
include $(PRDEPTH)/PRdefs
include $(PRDEPTH)/PRrules

.SUFFIXES: .vec .tog

.vec.tog:
	tdx_lsim $(MODEL) -vector_file $(ATTESTDIR)/$*.vec -log_file $*.lsimlog \
		-outmodel $* -init_file ../../rcp_inner.tdxinit

ATTESTDIR    = /hosts/rayden/e/fault/vec/rsp
MODEL        = /hosts/rayden/e/fault/vec/rcp_inner

LDIRT        = ./*.rdram ./*.log

TSTDIR       = $(ROOT)/PR/iosim/test
VECTOR_DIR   = $(ROOT)/PR/hw2/chip/vector

SUDIR        = $(VECTOR_DIR)/rsp/su
TESTDIR      = $(VECTOR_DIR)/rsp
BINDIR       = $(ROOT)/PR/rspsim/vuregre/bin
REGRESSION   = $(BINDIR)/reality_rsp_regression 

SLOWDIR      = /hosts/rayden/e/fault/tssi_slow
HPDIR        = /hosts/rayden/e/fault/tssi_hp

IOSIM        = $(ROOT)/PR/iosim/src/iosim
TSSI2J971    = /hosts/sonya/d/tonyd/tssi_slow/tssi2j971
LVM_COMPRESS = /hosts/sonya/d/tonyd/tssi_slow/lvm_compress

COMPACT      = $(TSSI2J971) $(@:.Z=);                                       \
     	       compress -f $(@:.Z=);                                        \
	       $(LVM_COMPRESS) $(@:.slf.Z=.lvmadr);                         \
	       rm $(@:.slf.Z=.lvmadr);                                      \
	       compress -f $(@:.slf.Z=C.lvmadr)

TESTDPDS     = $(BINDIR)/reality_rsp_regression $(TESTDIR)/rsp_tests.list

SLOWEXECS    = - cd $(TESTDIR);                                             \
	     $(REGRESSION) -nocompile                                       \
	                   +rcp_test_tssi                                   \
	 		   +tssi_name=$(@:.Z=)                              \
			   `echo LIST | sed -e 's/+/ +/g'`;                 \
             sleep 200;                                                     \
	     mv $(TESTDIR)/,out $(@:.slf.Z=).out;                           \
	     mv $(TESTDIR)/regression.log $(@:.slf.Z=).log;                 \
	     $(COMPACT)

HPEXECS    = - cd $(TESTDIR);                                               \
	     $(REGRESSION) -nocompile                                       \
	                   +rcp_hp330_tssi                                  \
	 		   +tssi_name=$(@:.Z=)                              \
			   `echo LIST | sed -e 's/+/ +/g'`;                 \
             sleep 200;                                                     \
	     mv $(TESTDIR)/,out $(@:.slf.Z=).out;                           \
	     mv $(TESTDIR)/regression.log $(@:.slf.Z=).log;                 \
     	     compress -f $(@:.Z=);                                          

NHPEXECS    = - cd $(TESTDIR);                                              \
	     $(REGRESSION) -nocompile                                       \
	                   +rcp_hp330_tssi                                  \
	 		   +tssi_name=$(@:.Z=)                              \
			   `cat LIST | sed -e 's/+/ +/g'`;                  \
             sleep 200;                                                     \
	     mv $(TESTDIR)/,out $(@:.slf.Z=).out;                           \
	     mv $(TESTDIR)/regression.log $(@:.slf.Z=).log;                 \
     	     compress -f $(@:.Z=);                                          

DHPEXECS    = - cd $(TESTDIR);                                              \
             $(REGRESSION) -nocompile                                       \
			   +dumpvars					    \
                           +rcp_hp330_tssi                                  \
                           +tssi_name=$(@:.Z=)                              \
                           `cat LIST | sed -e 's/+/ +/g'`;                  \
             sleep 200;                                                     \
             mv $(TESTDIR)/,out $(@:.slf.Z=).out;                           \
             mv $(TESTDIR)/regression.log $(@:.slf.Z=).log;                 \
             compress -f $(@:.Z=);                                          




$(TESTDIR)/rsp_tests.list: $(_FORCE)
	- cd $(TESTDIR); $(BINDIR)/reality_rsp_regression -norun