Makefile
3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!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