rsp_regression.makefile
2.83 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
#!smake
#
# This makefile has rules for making both the executables
# which make up the simulator, and for running test cases.
#
# $Revision: 1.4 $
#
COMMONPREF=rcp
PRDEPTH = $(ROOT)/PR
REGRESSION = $(PRDEPTH)/rspsim/vuregre/regression2
RSPDIR = $(PRDEPTH)/hw2/chip/rcp/rsp/src
VCSDIR = /ecad/vcs/intel_i686_linux_2.2
include $(PRDEPTH)/PRdefs
#
# Directory to store verilog output files (simv, simv.daidir, csrc)
# All *.o and *.c files will be placed in $(SIMVDIR)
# User can overide this variable on make command line (i.e. make SIMVDIR=/tmp)
#
SIMVDIR = ./designc
#
# Tools
#
SIMV = LD_LIBRARY_PATH=$(VCSDIR)/lib $(SIMVDIR)/simv -q
#
# Directories
#
#
# C Sources
#
# Header file Directories
#
LCINCS =
GCINCS =
#
# Compiler options
#
OPTIMIZER = -g
LCOPTS = -fullwarn
#
# Verilog compiler options
#
# override GVCSOPTS
#
GVCSOPTS = -l vcs.log -M -Mupdate \
-CC "-Wab,-big_got -Wab,-dwalign" -V \
VSYNPATH = $(PRDEPTH)/hw2/chip/rcp/rsp/vsyn
GATE_FILES = \
$(VSYNPATH)/divctl.vsyn \
$(VSYNPATH)/io_cmd_dma.vsyn \
$(VSYNPATH)/io_mem_dma.vsyn \
$(VSYNPATH)/ls.vsyn \
$(VSYNPATH)/rspbusses.vsyn \
$(VSYNPATH)/su.vsyn \
$(VSYNPATH)/vu.vsyn \
$(VSYNPATH)/vusl.vsyn \
LVCSOPTS = -y . \
-P $(PRDEPTH)/lib/librcppli/rcppli.tab $(PRDEPTH)/lib/librcppli/librcppli.a \
-y $(PRDEPTH)/hw2/chip/rcp/su/src \
-y $(PRDEPTH)/hw2/chip/rcp/su/fixes \
-y $(PRDEPTH)/hw2/chip/rcp/vu/src \
-y $(PRDEPTH)/hw2/chip/rcp/ls/src \
-y $(PRDEPTH)/hw2/chip/rcp/sb/src \
-y $(PRDEPTH)/hw2/chip/rcp/dm/src \
-y $(PRDEPTH)/hw2/chip/rcp/rsp/src \
-y $(PRDEPTH)/hw2/chip/rcp/io/src \
-y $(PRDEPTH)/hw2/chip/lib/verilog/ram \
-y $(PRDEPTH)/hw2/chip/lib/verilog/dp \
-y $(PRDEPTH)/hw2/chip/lib/verilog/stdcell \
-y $(PRDEPTH)/hw2/chip/lib/verilog/user \
+libext+.v+.vmd+ \
+incdir+$(PRDEPTH)/hw2/chip/rcp/rsp/lib \
+incdir+$(PRDEPTH)/hw2/chip/rcp/su/src \
+incdir+$(PRDEPTH)/hw2/chip/rcp/vu/src \
+incdir+$(PRDEPTH)/hw2/chip/rcp/inc \
+incdir+$(REGRESSION) \
-Mdir=$(SIMVDIR) \
# Default Targets
#
TESTS = simv
default install: $(TESTS)
$(COMMONTARGS): $(COMMONPREF)$$@
$(SUBDIRS_MAKERULE)
#
# SGI/Project Reality Common Rules
#
include $(PRDEPTH)/PRrules
#
# Compile Verilog processes
#
simv: $(RSPDIR)/rspWrap_regression.v $(_FORCE)
# VCS_RUNTIME=$(VCSDIR)/lib/libvcs.a
$(VCS) $(VCSOPTS) -o $(SIMVDIR)/$@ \
$(RSPDIR)/rspWrap_regression.v \
$(REGRESSION)/rsp_ctrace.v \
$(REGRESSION)/rsp_random_dma.v \
./rsp_tests.v \
simv_gate: $(RSPDIR)/rspWrap_regression.v $(_FORCE)
# VCS_RUNTIME=$(VCSDIR)/lib/libvcs.so
$(VCS) +define+RSP_GATE $(VCSOPTS) -o $(SIMVDIR)/$@ \
$(RSPDIR)/rspWrap_regression.v \
$(GATE_FILES) \
$(REGRESSION)/rsp_ctrace.v \
$(REGRESSION)/rsp_random_dma.v \
./rsp_tests.v