Makefile 3.15 KB
#!smake -J 1
##########################################################
#
#  Run Qsim test(s) on overall RCP
#
##########################################################

# nls
#DOSIM_APP = 
#NLDIR     = $(ROOT)/PR/hw/chip/qsim/rcp/nlsdir
#NLNAME    = rcp_f_wst.nls

# nle worst
DOSIM_APP = _nle_wst
NLDIR     = $(ROOT)/PR/hw/chip/qsim/rcp/nledir
NLNAME    = rcp_f_wst.nle

# nle best
#DOSIM_APP = _nle_bst
#NLDIR     = $(ROOT)/PR/hw/chip/qsim/rcp/nledir
#NLNAME    = rcp_f_bst.nle

PRDEPTH = $(ROOT)/PR
include $(PRDEPTH)/PRdefs
include $(PRDEPTH)/PRrules

TABDIR = $(ROOT)/PR/hw/chip/qsim/rcp/tab_files

LDIRT = *.tab *.sim* *.trc* *.simlog*

TRC_FILES = test000.trc.Z test001.trc.Z test002.trc.Z test003.trc.Z \
            test004.trc.Z test005.trc.Z test006.trc.Z test007.trc.Z \
            test008.trc.Z test009.trc.Z test010.trc.Z test011.trc.Z \
            test012.trc.Z test013.trc.Z test014.trc.Z test015.trc.Z

SIM_FILES = $(TRC_FILES:.trc.Z=.sim)

#
#  Build all tests
#
default: $(TRC_FILES)

#
#  Individual test targets
#

test000.sim: $(TABDIR)/test000.tab.Z
test000.trc.Z: test000.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test001.sim: $(TABDIR)/test001.tab.Z
test001.trc.Z: test001.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test002.sim: $(TABDIR)/test002.tab.Z
test002.trc.Z: test002.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test003.sim: $(TABDIR)/test003.tab.Z
test003.trc.Z: test003.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test004.sim: $(TABDIR)/test004.tab.Z
test004.trc.Z: test004.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test005.sim: $(TABDIR)/test005.tab.Z
test005.trc.Z: test005.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test006.sim: $(TABDIR)/test006.tab.Z
test006.trc.Z: test006.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test007.sim: $(TABDIR)/test007.tab.Z
test007.trc.Z: test007.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test008.sim: $(TABDIR)/test008.tab.Z
test008.trc.Z: test008.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test009.sim: $(TABDIR)/test009.tab.Z
test009.trc.Z: test009.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test010.sim: $(TABDIR)/test010.tab.Z
test010.trc.Z: test010.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test011.sim: $(TABDIR)/test011.tab.Z
test011.trc.Z: test011.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test012.sim: $(TABDIR)/test012.tab.Z
test012.trc.Z: test012.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test013.sim: $(TABDIR)/test013.tab.Z
test013.trc.Z: test013.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test014.sim: $(TABDIR)/test014.tab.Z
test014.trc.Z: test014.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

test015.sim: $(TABDIR)/test015.tab.Z
test015.trc.Z: test015.sim do_sim$(DOSIM_APP) $(NLDIR)/$(NLNAME)

###########################################################
#
#  Suffix rules for tab file, sim file, and
#  running Qsim.
#
###########################################################

.SUFFIXES: .trc.Z .sim .tab .tab.Z

.tab.Z.sim:
	zcat $(>) | slowclk | $(PRDEPTH)/rdpsim/tools/tab2sim -t 380 -v -c | fix_sim > $@

.sim.trc.Z:
	./do_sim$(DOSIM_APP) $(@:R:R) | /usr/people/tonyd/bin/clean | tee $(@:R:R)$(DOSIM_APP).simlog
#	/usr/bin/rm -f $(@:R:R).sim
	compress -f $(@:R:R)$(DOSIM_APP).simlog
#	compress -f $(@:R:R)$(DOSIM_APP).trc