Makefile.bowtie
4.79 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
#!smake -k -J 3
#
# Force smake to only batch three rules at a time; any more on a memory
# constricted system, and the iosim jobs will run out of swap space.
#
#
# This makefile is used for running tests for the bow-tie fix.
#
#
COMMONPREF=RDPSIM
PRDEPTH = ../../..
ATTDEPTH = $(PRDEPTH)/apps/rdpatt/InData
COVDEPTH = $(PRDEPTH)/apps/rdpcov/InData
EWDEPTH = $(PRDEPTH)/apps/rdpew/InData
TEXDEPTH = $(PRDEPTH)/apps/rdptex/InData
MSDEPTH = $(PRDEPTH)/apps/rdpms/InData
include $(PRDEPTH)/PRdefs
include $(ROOT)/usr/include/make/ismcommondefs
DUMPDIR = "./"
#
# User should set this
#
# SIMVDIR = "$(ROOT)/PR/hw2/chip/sim"
#
# 21600 = 6 hours
#
TIMELIMIT = 21600
#
# Tools
#
HW = $(PRDEPTH)/hw/chip/rcp
HWLIB = $(PRDEPTH)/hw/chip/lib/verilog
TOOLS = $(PRDEPTH)/rdpsim/tools
FILTER = $(ROOT)/PR/rdpsim/backend/filter
RDRAM2RDP = $(TOOLS)/rdram2rdp
#
# User should set SIMVDIR
#
TESTIT = RDP_OPTS="$(RDP_OPTS)" ./testit -a
#
# Set RDP_OPTS on the command line to make if you want to provide a temporary
# override for the simulators, or put it in your environment as a shell
# variable. For example, both of the following achieve the same desired
# result (getting the simulation to terminate in a hundred clocks):
#
# make OutData/test014_att_cf_0.rgb "RDP_OPTS= -c 100"
#
# or
#
# setenv RDP_OPTS = "-c 100"; make OutData/test014_att_cf_0.rgb
#
RDP_C = LD_LIBRARY_PATH=$(PRDEPTH)/lib/libimage rdp_c $(RDP_OPTS)
RDP_CV = LD_LIBRARY_PATH=$(VCSDIR)/lib:$(PRDEPTH)/lib/libimage \
rdp_cv $(RDP_OPTS)
#
# Directories
#
SIMLIB = $(PRDEPTH)/rdpsim/simlib
SRC = $(PRDEPTH)/rdpsim/src
HDR = $(PRDEPTH)/rdpsim/hdr
INCLUDE = $(PRDEPTH)/include
WIR = Wir
TMEM = TmemData
INDATA = InData
OUTDATA = OutData
SUBDIRS = Wir InData OutData
APP_RDPTEX = $(PRDEPTH)/apps/rdptex/InData
APP_RDPATT = $(PRDEPTH)/apps/rdpatt/InData
#
# Check for objects in this directory
#
VPATH = $(SRC)
#
# C Sources
#
#
# Object Files
#
#
# Header file Directories
#
#
# Linker Directories and Options
#
#
# VCS options
#
TARGETS = testit touch_tests
LDIRT = $(BOWTIE_RDP_IO) $(BOWTIE_RDP_GATE)
default exports: $(TARGETS)
install : default
$(INSTALL) -m 555 -F /usr/sbin $(INST_TARGETS)
$(COMMONTARGS): $(COMMONPREF)$$@
$(SUBDIRS_MAKERULE)
#
# SGI Common Rules
#
include $(PRDEPTH)/PRrules
#
# Make testit script executable
#
testit: $(_FORCE)
chmod 555 testit
################################################################################
#
# Test Cases for Bow Tie Regression
#
#
################################################################################
BOWTIE_REGRESSION_TESTS = \
OutData/test_io_200 \
OutData/test_io_201 \
OutData/test_io_202 \
OutData/test_io_203 \
OutData/test_io_204 \
OutData/test_io_205 \
\
OutData/test_io_500 \
OutData/test_io_501 \
OutData/test_io_502 \
OutData/test_io_503 \
OutData/test_io_504 \
OutData/test_io_505 \
OutData/test_io_506 \
OutData/test_io_507 \
OutData/test_io_508 \
OutData/test_io_509 \
OutData/test_io_510 \
OutData/test_io_511 \
OutData/test_io_512 \
OutData/test_io_513 \
\
OutData/test_io_600 \
OutData/test_io_601 \
OutData/test_io_602 \
OutData/test_io_603 \
OutData/test_io_604 \
OutData/test_io_605 \
OutData/test_io_606 \
OutData/test_io_607 \
OutData/test_io_608 \
OutData/test_io_609 \
OutData/test_io_610 \
OutData/test_io_611 \
OutData/test_io_612 \
OutData/test_io_613 \
\
OutData/test_io_700 \
OutData/test_io_701 \
OutData/test_io_702 \
OutData/test_io_703 \
OutData/test_io_704 \
OutData/test_io_705 \
OutData/test_io_706 \
OutData/test_io_707 \
OutData/test_io_708 \
OutData/test_io_709 \
OutData/test_io_710 \
OutData/test_io_711 \
OutData/test_io_712 \
OutData/test_io_713
BOWTIE_RDP_IO = ${BOWTIE_REGRESSION_TESTS}
BOWTIE_RDP_GATE = ${BOWTIE_REGRESSION_TESTS:S/_io_/_gate_/g}
################################################################################
#
# Only checkin archive versions of the simulator output files on a periodic,
# on-demand basis (e.g. whenever an RSP simulator/ucode or RDP simulator change
# affects the output files mumble.rgb or mumble.cvg).
#
# Otherwise we'll pollute the source tree with unnecessary copies
# of these data files. The intent is to give us a gold file to compare with.
#
################################################################################
touch_tests: $(_FORCE)
touch $(BOWTIE_RDP_IO)
touch $(BOWTIE_RDP_GATE)
bowtie_rdp_io: $(BOWTIE_RDP_IO)
bowtie_rdp_gate: $(BOWTIE_RDP_GATE)
################################################################################
#
# T e s t T a r g e t s
#
################################################################################
OutData/test_io_*::
$(TESTIT) -n $(@:T:S/test//:S/_io_//) -t ew -s io
OutData/test_gate_*::
$(TESTIT) -n $(@:T:S/test//:S/_gate_//) -t ew -s gate