FILES    = testbench.v \
	   external_memory.v \
	   ../mem_restart_reg.v \
	   ../restart_reg.v \
	   ../dcache.v \
	   ../cache_control.v \
	   ../ex_struct.v \
	   ../tag_struct.v \
	   ../mem_struct.v \
	   ../../../proc/mainpipe/mdn_headline.v

LIB_OPTS = -y /home/tools/ibm_sa27e/current/synthesis/synopsys_dw/src_ver \
	   -y /home/tools2/ibm_sa27e/current/verilog \
	   -y ../../../../../../ibm_sa27e/verilog_wrapper \
	   -y ../../../../../../ibm_sa27e/sim \
	   -y ../../../../../components \
	   +incdir+../../../../../components \
	   +libext+.v

PLI_OPTS = -ld gcc -P ../../../../../../testing/get_stim/get_stim.tab \
	   ../../../../../../testing/get_stim/get_stim.c +acc \
	   -CC -I/home/tools/synopsys/vcs/sun_sparc_solaris_5.5.1/lib

all: dump xdump

dump:
	vcs -Mupdate -PP -R $(FILES) $(PLI_OPTS) $(LIB_OPTS) +define+USEVPD+ +vcsd \
	+nospecify +notimingchecks +no_notifier

xdump:
	vcs -RPP +vpdfile+vcdplus.vpd

simple:
	vcs -Mupdate $(FILES) $(PLI_OPTS) $(LIB_OPTS)

interactive:
	vcs -Mupdate -RI $(FILES) $(PLI_OPTS) $(LIB_OPTS)

clean:
	$(RM) -r csrc simv.daidir vcs.key simv vcdplus.vpd
